[Mplayer-cvslog] CVS: main/libmpcodecs dec_video.c,1.115,1.116 vd.h,1.2,1.3
Arpi of Ize
arpi at mplayer.dev.hu
Wed Mar 6 23:02:54 CET 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv20364
Modified Files:
dec_video.c vd.h
Log Message:
new controls added for query/set pp level
Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/dec_video.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- dec_video.c 6 Mar 2002 20:55:37 -0000 1.115
+++ dec_video.c 6 Mar 2002 22:02:51 -0000 1.116
@@ -62,12 +62,16 @@
static vd_functions_t* mpvdec=NULL;
int get_video_quality_max(sh_video_t *sh_video){
-// switch(sh_video->codec->driver){
+ if(mpvdec){
+ int ret=mpvdec->control(sh_video,VDCTRL_QUERY_MAX_PP_LEVEL);
+ if(ret>=0) return ret;
+ }
return 0;
}
void set_video_quality(sh_video_t *sh_video,int quality){
-// switch(sh_video->codec->driver){
+ if(mpvdec)
+ mpvdec->control(sh_video,VDCTRL_SET_PP_LEVEL, (void*)(&quality));
}
int set_video_colors(sh_video_t *sh_video,char *item,int value)
Index: vd.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vd.h 28 Feb 2002 01:41:49 -0000 1.2
+++ vd.h 6 Mar 2002 22:02:51 -0000 1.3
@@ -35,6 +35,8 @@
#define CONTROL_NA -3
#define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */
+#define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */
+#define VDCTRL_SET_PP_LEVEL 5 /* test for postprocessing support (max level) */
// callbacks:
int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt);
More information about the MPlayer-cvslog
mailing list