diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-10 00:03:46 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-10 00:03:46 +0000 |
commit | a714b417ecb2c1dda1d9388dd67ee34d6b6c62d1 (patch) | |
tree | cd753b79901dd7dcecaa649d74d7f28787ab5e98 | |
parent | 983de1ade3f2898bed93f4bf0856a09bc19744de (diff) | |
download | mpv-a714b417ecb2c1dda1d9388dd67ee34d6b6c62d1.tar.bz2 mpv-a714b417ecb2c1dda1d9388dd67ee34d6b6c62d1.tar.xz |
Pass start slice to the vo it make dr + slice implemantation easier
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9561 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vf_vo.c | 7 | ||||
-rw-r--r-- | libvo/video_out.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index a8fcb2fe2b..05f6511080 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -110,6 +110,12 @@ static int put_image(struct vf_instance_s* vf, 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 @@ static int open(vf_instance_t *vf, char* args){ 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 --git a/libvo/video_out.h b/libvo/video_out.h index 33cda1b1de..ca94f477a1 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -53,6 +53,7 @@ /* Frame duplication */ #define VOCTRL_DUPLICATE_FRAME 20 // ... 21 +#define VOCTRL_START_SLICE 21 #define VO_TRUE 1 |