diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-09 19:18:46 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-09 19:18:46 +0000 |
commit | 154bbcd5b9fcb7bf8f0c96fd698e157b6d9c1106 (patch) | |
tree | ff8d24027e67adb840488c9a5aa489177e6fb2ef /libmpcodecs/vd_dshow.c | |
parent | 9caad2c29a0f617e25f90e12a7dcbefb4f762687 (diff) | |
download | mpv-154bbcd5b9fcb7bf8f0c96fd698e157b6d9c1106.tar.bz2 mpv-154bbcd5b9fcb7bf8f0c96fd698e157b6d9c1106.tar.xz |
divx_quality and equalizer support done
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5004 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_dshow.c')
-rw-r--r-- | libmpcodecs/vd_dshow.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libmpcodecs/vd_dshow.c b/libmpcodecs/vd_dshow.c index 7b87db0125..b7fa7306b6 100644 --- a/libmpcodecs/vd_dshow.c +++ b/libmpcodecs/vd_dshow.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <stdarg.h> #include "config.h" #ifdef USE_DIRECTSHOW @@ -32,9 +33,17 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){ DS_VideoDecoder_SetValue(sh->context,"Quality",*((int*)arg)); return CONTROL_OK; -// TODO: query/set video options (brightness contrast etc) -// DS_VideoDecoder_SetValue(ds_vdec,item,value); - + case VDCTRL_SET_EQUALIZER: { + va_list ap; + int value; + va_start(ap, arg); + value=va_arg(ap, int); + va_end(ap); + if(DS_VideoDecoder_SetValue(sh->context,arg,value)==0) + return CONTROL_OK; + return CONTROL_FALSE; + } + } return CONTROL_UNKNOWN; } @@ -61,6 +70,7 @@ static int init(sh_video_t *sh){ default: DS_VideoDecoder_SetDestFmt(sh->context,out_fmt&255,0); // RGB/BGR } + DS_SetAttr_DivX("Quality",divx_quality); DS_VideoDecoder_StartInternal(sh->context); mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: Win32/DShow video codec init OK!\n"); return 1; |