1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

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
This commit is contained in:
albeu 2003-03-10 00:03:46 +00:00
parent 983de1ade3
commit a714b417ec
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -53,6 +53,7 @@
/* Frame duplication */
#define VOCTRL_DUPLICATE_FRAME 20
// ... 21
#define VOCTRL_START_SLICE 21
#define VO_TRUE 1