# HG changeset patch # User albeu # Date 1047254626 0 # Node ID ae2ce6ebc1fa4d8f6d355caf76a554b87c80c2b7 # Parent 9883afd390dcb43739234fb7567f62c750aff3dc Pass start slice to the vo it make dr + slice implemantation easier diff -r 9883afd390dc -r ae2ce6ebc1fa libmpcodecs/vf_vo.c --- 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 diff -r 9883afd390dc -r ae2ce6ebc1fa libvo/video_out.h --- 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