[Mplayer-cvslog] CVS: main/Gui interface.c,1.22,1.23 interface.h,1.15,1.16

Zoltan Ponekker pontscho at mplayerhq.hu
Fri Jul 19 22:52:17 CEST 2002


Update of /cvsroot/mplayer/main/Gui
In directory mail:/var/tmp.root/cvs-serv27481/Gui

Modified Files:
	interface.c interface.h 
Log Message:


- 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 ... :)


Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- interface.c	12 Jul 2002 00:53:25 -0000	1.22
+++ interface.c	19 Jul 2002 20:51:44 -0000	1.23
@@ -90,6 +90,7 @@
 } tmp_sh_video_t;
 
 extern ao_functions_t * audio_out;
+extern vo_functions_t * video_out;
 
 void guiGetEvent( int type,char * arg )
 {
@@ -214,16 +215,6 @@
 	 btnModify( evSetBalance,guiIntfStruct.Balance );
 	}
 
-#if 0
-#warning video equalizer support disabled 
-	if ( gtkEnableVideoEqualizer )
-	 {
-	  gtkSet( gtkSetContrast,gtkContrast,NULL );
-	  gtkSet( gtkSetBrightness,gtkBrightness,NULL );
-	  gtkSet( gtkSetHue,gtkHue,NULL );
-	  gtkSet( gtkSetSaturation,gtkSaturation,NULL );
-	 }
-#endif
 	if ( gtkEnableAudioEqualizer )
 	 {
 	  equalizer_t eq;
@@ -266,7 +257,7 @@
 
 	if ( gtkEnableAudioEqualizer )
 	 {
-	  if ( ao_plugin_cfg.plugin_list ) { if ( !strstr( ao_plugin_cfg.plugin_list,"eq" ) )  gstrcat( &ao_plugin_cfg.plugin_list,"," ); }
+	  if ( ao_plugin_cfg.plugin_list ) { if ( !strstr( ao_plugin_cfg.plugin_list,"eq" ) )  gstrcat( &ao_plugin_cfg.plugin_list,",eq" ); }
 	    else gstrcat( &ao_plugin_cfg.plugin_list,"eq" );
 	 }
 	
@@ -282,16 +273,10 @@
  if ( !guiIntfStruct.Playing || guiIntfStruct.AudioOnly ) wsHandleEvents();
  gtkEventHandling();
  mplTimer=GetTimerMS() / 20;
-// if ( !( GetTimerMS()%2 ) ) 
 }
 
 // --- 
 
-float gtkContrast = 0.0f;
-float gtkBrightness = 0.0f;
-float gtkHue = 0.0f;
-float gtkSaturation = 0.0f;
-
 float gtkEquChannels[6][10];
 
 plItem * plCurrent = NULL;
@@ -323,7 +308,7 @@
  switch ( cmd )
   {
 // --- handle playlist
-   case gtkAddPlItem: // add item to platlist
+   case gtkAddPlItem: // add item to playlist
 	if ( plList )
 	 {
 	  plItem * next = plList;
@@ -384,19 +369,15 @@
 // --- set equalizers
    case gtkSetContrast:
 	mp_cmd->id=MP_CMD_CONTRAST;   mp_cmd->name=strdup( "contrast" );
-	gtkContrast=fparam;
 	break;
    case gtkSetBrightness:
 	mp_cmd->id=MP_CMD_BRIGHTNESS; mp_cmd->name=strdup( "brightness" );
-	gtkBrightness=fparam;
 	break;
    case gtkSetHue:
 	mp_cmd->id=MP_CMD_HUE;        mp_cmd->name=strdup( "hue" );
-	gtkHue=fparam;
 	break;
    case gtkSetSaturation:
 	mp_cmd->id=MP_CMD_SATURATION; mp_cmd->name=strdup( "saturation" );
-	gtkSaturation=fparam;
 	break;
    case gtkSetEqualizer:
         if ( eq )

Index: interface.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- interface.h	12 Jul 2002 00:53:25 -0000	1.15
+++ interface.h	19 Jul 2002 20:51:44 -0000	1.16
@@ -153,11 +153,6 @@
 #define gtkGetCurrPlItem 8
 #define gtkDelPl         9
 
-extern float gtkContrast;
-extern float gtkBrightness;
-extern float gtkHue;
-extern float gtkSaturation;
-
 extern float gtkEquChannels[6][10];
 
 extern void * gtkSet( int cmd,float param, void * vparam );




More information about the MPlayer-cvslog mailing list