# HG changeset patch # User albeu # Date 1026418647 0 # Node ID 3b20f07b2c169470e3b73cef4359edc01e4a0367 # Parent 8058078f1248b023c0aad25cdb9375adbc639487 Add draw slice for the codecs diff -r 8058078f1248 -r 3b20f07b2c16 libmpcodecs/vd.c --- a/libmpcodecs/vd.c Thu Jul 11 19:16:30 2002 +0000 +++ b/libmpcodecs/vd.c Thu Jul 11 20:17:27 2002 +0000 @@ -277,3 +277,9 @@ 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 -r 8058078f1248 -r 3b20f07b2c16 libmpcodecs/vd.h --- a/libmpcodecs/vd.h Thu Jul 11 19:16:30 2002 +0000 +++ b/libmpcodecs/vd.h Thu Jul 11 20:17:27 2002 +0000 @@ -25,5 +25,6 @@ // 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