Mercurial > mplayer.hg
comparison libmpcodecs/dec_video.c @ 4957:2826b2e5cbd3
new controls added for query/set pp level
author | arpi |
---|---|
date | Wed, 06 Mar 2002 22:02:51 +0000 |
parents | 45c51c7f7870 |
children | f88dfc3de52c |
comparison
equal
deleted
inserted
replaced
4956:84f465d2ff16 | 4957:2826b2e5cbd3 |
---|---|
60 int divx_quality=0; | 60 int divx_quality=0; |
61 | 61 |
62 static vd_functions_t* mpvdec=NULL; | 62 static vd_functions_t* mpvdec=NULL; |
63 | 63 |
64 int get_video_quality_max(sh_video_t *sh_video){ | 64 int get_video_quality_max(sh_video_t *sh_video){ |
65 // switch(sh_video->codec->driver){ | 65 if(mpvdec){ |
66 int ret=mpvdec->control(sh_video,VDCTRL_QUERY_MAX_PP_LEVEL); | |
67 if(ret>=0) return ret; | |
68 } | |
66 return 0; | 69 return 0; |
67 } | 70 } |
68 | 71 |
69 void set_video_quality(sh_video_t *sh_video,int quality){ | 72 void set_video_quality(sh_video_t *sh_video,int quality){ |
70 // switch(sh_video->codec->driver){ | 73 if(mpvdec) |
74 mpvdec->control(sh_video,VDCTRL_SET_PP_LEVEL, (void*)(&quality)); | |
71 } | 75 } |
72 | 76 |
73 int set_video_colors(sh_video_t *sh_video,char *item,int value) | 77 int set_video_colors(sh_video_t *sh_video,char *item,int value) |
74 { | 78 { |
75 if(vo_vaa.get_video_eq) | 79 if(vo_vaa.get_video_eq) |