[Mplayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.3,1.4

Arpi of Ize arpi at mplayer.dev.hu
Sun Apr 7 19:01:18 CEST 2002


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

Modified Files:
	vf_pp.c 
Log Message:
accept only 4:2:0 planar yuv formats

Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vf_pp.c	7 Apr 2002 03:32:36 -0000	1.3
+++ vf_pp.c	7 Apr 2002 17:01:15 -0000	1.4
@@ -5,6 +5,7 @@
 #include "../config.h"
 #include "../mp_msg.h"
 
+#include "../libvo/img_format.h"
 #include "../mp_image.h"
 #include "vf.h"
 
@@ -17,6 +18,16 @@
 
 //===========================================================================//
 
+static int query_format(struct vf_instance_s* vf, unsigned int fmt){
+    switch(fmt){
+    case IMGFMT_YV12:
+    case IMGFMT_I420:
+    case IMGFMT_IYUV:
+	return vf_next_query_format(vf,fmt);
+    }
+    return 0;
+}
+
 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
     if(vf->priv->pp&0xFFFF) return; // non-local filters enabled
     if((mpi->type==MP_IMGTYPE_IPB || vf->priv->pp) && 
@@ -62,6 +73,7 @@
 
 static int open(vf_instance_t *vf, char* args){
     char *endptr;
+    vf->query_format=query_format;
     vf->get_image=get_image;
     vf->put_image=put_image;
     vf->priv=malloc(sizeof(struct vf_priv_s));




More information about the MPlayer-cvslog mailing list