From 8cee0fd2910cbdafe45e1c5d43fa930d367cec47 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Fri, 22 Nov 2002 18:06:09 +0000 Subject: 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 --- src/xine-engine/vo_scale.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/vo_scale.h') 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 } -- cgit v1.2.3