diff options
author | kmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-04 02:21:50 +0000 |
---|---|---|
committer | kmkaplan <kmkaplan@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-04 02:21:50 +0000 |
commit | 939d40dd788120d7ff0ef6dff51fdf40b188299e (patch) | |
tree | c85704db552b82edb318abcea2cb7d644f23a79b /libmpcodecs/dec_video.c | |
parent | 74b1680abf7466c34ac304c5bd2c3a95b96d8084 (diff) | |
download | mpv-939d40dd788120d7ff0ef6dff51fdf40b188299e.tar.bz2 mpv-939d40dd788120d7ff0ef6dff51fdf40b188299e.tar.xz |
Add the control VFCTRL_CHANGE_RECTANGLE
print the rectangle boundaries.
vf_rectangle accepts stride. Is this correct?
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6888 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/dec_video.c')
-rw-r--r-- | libmpcodecs/dec_video.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 7c867cf27d..84b652d8fc 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -118,6 +118,21 @@ int get_video_colors(sh_video_t *sh_video,char *item,int *value) return 0; } +int set_rectangle(sh_video_t *sh_video,int param,int value) +{ + vf_instance_t* vf=sh_video->vfilter; + int data[] = {param, value}; + + mp_dbg(MSGT_DECVIDEO,MSGL_V,"set rectangle \n"); + if (vf) + { + int ret = vf->control(vf, VFCTRL_CHANGE_RECTANGLE, data); + if (ret) + return(1); + } + return 0; +} + void uninit_video(sh_video_t *sh_video){ if(!sh_video->inited) return; mp_msg(MSGT_DECVIDEO,MSGL_V,"uninit video: %d \n",sh_video->codec->driver); |