[Mplayer-cvslog] CVS: main dec_video.c,1.48,1.49
Arpi of Ize
arpi at mplayer.dev.hu
Fri Oct 19 17:21:39 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv28762
Modified Files:
dec_video.c
Log Message:
divx4 brightness etc support patch by Adam Tla/lka
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- dec_video.c 19 Oct 2001 14:43:38 -0000 1.48
+++ dec_video.c 19 Oct 2001 15:21:36 -0000 1.49
@@ -174,10 +174,26 @@
int set_video_colors(sh_video_t *sh_video,char *item,int value){
#ifdef USE_DIRECTSHOW
- if(!strcmp(sh_video->codec->name,"divxds")){
+ if(sh_video->codec->driver==VFM_DSHOW){
DS_SetValue_DivX(item,value);
return 1;
}
+#endif
+#ifdef NEW_DECORE
+#ifdef DECORE_VERSION
+#if DECORE_VERSION >= 20011010
+ if(sh_video->codec->driver==VFM_DIVX4){
+ int option;
+ if(!strcmp(item,"Brightness")) option=DEC_GAMMA_BRIGHTNESS;
+ else if(!strcmp(item, "Contrast")) option=DEC_GAMMA_CONTRAST;
+ else if(!strcmp(item,"Saturation")) option=DEC_GAMMA_SATURATION;
+ else return 0;
+ value = (value * 256) / 100 - 128;
+ decore(0x123, DEC_OPT_GAMMA, (void *)option, (void *) value);
+ return 1;
+ }
+#endif
+#endif
#endif
return 0;
}
More information about the MPlayer-cvslog
mailing list