[Mplayer-cvslog] CVS: main/libmpcodecs vf.c,1.70,1.71 vf.h,1.16,1.17

Arpi of Ize arpi at mplayerhq.hu
Sun Feb 23 21:40:24 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv4053

Modified Files:
	vf.c vf.h 
Log Message:
start_slice() added - similar to get_image(), but is called when using slices


Index: vf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- vf.c	20 Feb 2003 04:57:37 -0000	1.70
+++ vf.c	23 Feb 2003 20:40:21 -0000	1.71
@@ -268,11 +268,14 @@
 	  mpi->flags|=MP_IMGFLAG_ALLOCATED;
         }
     }
+    if(mpi->flags&MP_IMGFLAG_DRAW_CALLBACK)
+	if(vf->start_slice) vf->start_slice(vf,mpi);
     if(!(mpi->flags&MP_IMGFLAG_TYPE_DISPLAYED)){
-	    mp_msg(MSGT_DECVIDEO,MSGL_V,"*** [%s] %s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n",
+	    mp_msg(MSGT_DECVIDEO,MSGL_V,"*** [%s] %s%s mp_image_t, %dx%dx%dbpp %s %s, %d bytes\n",
 		  vf->info->name,
 		  (mpi->type==MP_IMGTYPE_EXPORT)?"Exporting":
 	          ((mpi->flags&MP_IMGFLAG_DIRECT)?"Direct Rendering":"Allocating"),
+	          (mpi->flags&MP_IMGFLAG_DRAW_CALLBACK)?" (slices)":"",
 	          mpi->width,mpi->height,mpi->bpp,
 		  (mpi->flags&MP_IMGFLAG_YUV)?"YUV":((mpi->flags&MP_IMGFLAG_SWAPPED)?"BGR":"RGB"),
 		  (mpi->flags&MP_IMGFLAG_PLANAR)?"planar":"packed",

Index: vf.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- vf.h	5 Dec 2002 00:22:37 -0000	1.16
+++ vf.h	23 Feb 2003 20:40:21 -0000	1.17
@@ -31,6 +31,8 @@
         mp_image_t *mpi);
     int (*put_image)(struct vf_instance_s* vf,
         mp_image_t *mpi);
+    void (*start_slice)(struct vf_instance_s* vf,
+        mp_image_t *mpi);
     void (*draw_slice)(struct vf_instance_s* vf,
         unsigned char** src, int* stride, int w,int h, int x, int y);
     void (*uninit)(struct vf_instance_s* vf);



More information about the MPlayer-cvslog mailing list