diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-22 18:06:09 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-11-22 18:06:09 +0000 |
commit | 8cee0fd2910cbdafe45e1c5d43fa930d367cec47 (patch) | |
tree | ff10bebf427b3f9211e0a473ecc58b7eeb8b1c0f /src/xine-engine/vo_scale.h | |
parent | eef61f25b051865c9554514a66cb9b45c6a5f4bd (diff) | |
download | xine-lib-8cee0fd2910cbdafe45e1c5d43fa930d367cec47.tar.gz xine-lib-8cee0fd2910cbdafe45e1c5d43fa930d367cec47.tar.bz2 |
when the image does not fit the viewport and black bars need to be added, their
size ratio and therefore the position of the image is now configurable
(I remembered my arts lessons at school where the teacher told us that images
look more pleasing when the lower border is twice the size of the upper and set
the default accordingly. ;)
CVS patchset: 3337
CVS date: 2002/11/22 18:06:09
Diffstat (limited to 'src/xine-engine/vo_scale.h')
-rw-r--r-- | src/xine-engine/vo_scale.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/xine-engine/vo_scale.h b/src/xine-engine/vo_scale.h index 953134512..6cb2474cc 100644 --- a/src/xine-engine/vo_scale.h +++ b/src/xine-engine/vo_scale.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: vo_scale.h,v 1.4 2002/09/08 16:52:57 mroi Exp $ + * $Id: vo_scale.h,v 1.5 2002/11/22 18:06:14 mroi Exp $ * * vo_scale.h * @@ -104,6 +104,7 @@ struct vo_scale_s { int output_height; int output_xoffset; int output_yoffset; + /* */ int force_redraw; @@ -128,6 +129,14 @@ struct vo_scale_s { /* borders */ vo_scale_rect_t border[4]; + + /* + * border ratios to determine image position in the + * viewport; these are set by user config + */ + double output_horizontal_position; + double output_vertical_position; + }; typedef struct vo_scale_s vo_scale_t; @@ -172,7 +181,7 @@ char *vo_scale_aspect_ratio_name(int a); * initialize rescaling struct */ -void vo_scale_init(vo_scale_t *this, int support_zoom, int scaling_disabled ); +void vo_scale_init(vo_scale_t *this, int support_zoom, int scaling_disabled, config_values_t *config ); #ifdef __cplusplus } |