changeset 9560:ae2ce6ebc1fa

Pass start slice to the vo it make dr + slice implemantation easier
author albeu
date Mon, 10 Mar 2003 00:03:46 +0000
parents 9883afd390dc
children 05c462fd6bff
files libmpcodecs/vf_vo.c libvo/video_out.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_vo.c	Mon Mar 10 00:01:03 2003 +0000
+++ b/libmpcodecs/vf_vo.c	Mon Mar 10 00:03:46 2003 +0000
@@ -110,6 +110,12 @@
   return 1;
 }
 
+static void start_slice(struct vf_instance_s* vf,
+		       mp_image_t *mpi) {
+    if(!vo_config_count) return; // vo not configured?
+    video_out->control(VOCTRL_START_SLICE,mpi);
+}
+
 static void draw_slice(struct vf_instance_s* vf,
         unsigned char** src, int* stride, int w,int h, int x, int y){
     if(!vo_config_count) return; // vo not configured?
@@ -125,6 +131,7 @@
     vf->get_image=get_image;
     vf->put_image=put_image;
     vf->draw_slice=draw_slice;
+    vf->start_slice=start_slice;
     vf->priv=(void*)args; // video_out
     if(!video_out) return 0; // no vo ?
 //    if(video_out->preinit(args)) return 0; // preinit failed
--- a/libvo/video_out.h	Mon Mar 10 00:01:03 2003 +0000
+++ b/libvo/video_out.h	Mon Mar 10 00:03:46 2003 +0000
@@ -53,6 +53,7 @@
 /* Frame duplication */
 #define VOCTRL_DUPLICATE_FRAME 20
 // ... 21
+#define VOCTRL_START_SLICE 21
 
 
 #define VO_TRUE		1