From a355761e8be12fdc803a3181fb3a8593dc7c1990 Mon Sep 17 00:00:00 2001 From: albeu Date: Thu, 11 Jul 2002 20:17:27 +0000 Subject: Add draw slice for the codecs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6710 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd.c | 6 ++++++ libmpcodecs/vd.h | 1 + 2 files changed, 7 insertions(+) (limited to 'libmpcodecs') 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 -- cgit v1.2.3