From d05326c4bc7d26fbcf1c52a94f900a704026fc2a Mon Sep 17 00:00:00 2001 From: pontscho Date: Fri, 19 Jul 2002 20:51:48 +0000 Subject: - fix audio equalizer - rewrite video equalizer handling (i teszted with mga g400 [x]mga,xv,xvidix and radeon xv,xvidix ) - fix some small gtk bug - i dunno, i don't remember ... :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6756 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xvidix.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libvo/vo_xvidix.c') diff --git a/libvo/vo_xvidix.c b/libvo/vo_xvidix.c index 0ca814ba56..0127a78a76 100644 --- a/libvo/vo_xvidix.c +++ b/libvo/vo_xvidix.c @@ -73,6 +73,8 @@ static uint32_t window_width, window_height; static uint32_t drwX, drwY, drwWidth, drwHeight, drwBorderWidth, drwDepth, drwcX, drwcY, dwidth, dheight; +extern void set_video_eq( int cap ); + static void set_window(int force_update,const vo_tune_info_t *info) { Window mRoot; @@ -172,6 +174,13 @@ static void set_window(int force_update,const vo_tune_info_t *info) mp_msg(MSGT_VO, MSGL_V, "[xvidix] window properties: pos: %dx%d, size: %dx%d\n", vo_dx, vo_dy, window_width, window_height); + + { // á.c.s. technologies (C) Pontscho + vidix_video_eq_t eq; + vo_vaa_t vo_vaa; + if ( vidix_control( VOCTRL_QUERY_VAA,&vo_vaa) != VO_NOTIMPL ) + if ( vo_vaa.get_video_eq && vo_vaa.get_video_eq( &eq ) == 0 ) set_video_eq( eq.cap ); + } /* mDrawColorKey: */ @@ -332,6 +341,7 @@ else } set_window(1,info); + if(info) memcpy(&vtune,info,sizeof(vo_tune_info_t)); else memset(&vtune,0,sizeof(vo_tune_info_t)); XFlush(mDisplay); -- cgit v1.2.3