diff libmpcodecs/dec_video.c @ 6887:66427e850216

Add the control VFCTRL_CHANGE_RECTANGLE print the rectangle boundaries. vf_rectangle accepts stride. Is this correct?
author kmkaplan
date Sun, 04 Aug 2002 02:21:50 +0000
parents 54578e5a8050
children b2ba67f6203e
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Sun Aug 04 02:19:20 2002 +0000
+++ b/libmpcodecs/dec_video.c	Sun Aug 04 02:21:50 2002 +0000
@@ -118,6 +118,21 @@
     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);