diff options
-rw-r--r-- | libmpcodecs/vd.c | 6 | ||||
-rw-r--r-- | libmpcodecs/vd.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c index 4114522136..31a6cf68f4 100644 --- a/libmpcodecs/vd.c +++ b/libmpcodecs/vd.c @@ -277,3 +277,9 @@ mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, i return mpi; } +void mpcodecs_draw_slice(sh_video_t *sh, unsigned char* src, int* stride, int w,int h, int x, int y) { + struct vf_instance_s* vf = sh->vfilter; + + if(vf->draw_slice) + vf->draw_slice(vf,src,stride,w,h,x,y); +} diff --git a/libmpcodecs/vd.h b/libmpcodecs/vd.h index c0be79ace5..3cebebfb60 100644 --- a/libmpcodecs/vd.h +++ b/libmpcodecs/vd.h @@ -25,5 +25,6 @@ extern int vd_use_slices; // callbacks: int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt); mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h); +void mpcodecs_draw_slice(sh_video_t *sh, unsigned char* src, int* stride, int w,int h, int x, int y); #define VDFLAGS_DROPFRAME 3 |