changeset 6709:3b20f07b2c16

Add draw slice for the codecs
author albeu
date Thu, 11 Jul 2002 20:17:27 +0000
parents 8058078f1248
children 8898dd6c0302
files libmpcodecs/vd.c libmpcodecs/vd.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
+}
--- 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