[Mplayer-cvslog] CVS: main/libmpcodecs vf_rotate.c,1.5,1.6
Arpi of Ize
arpi at mplayerhq.hu
Fri Jan 3 22:55:12 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv19754
Modified Files:
vf_rotate.c
Log Message:
cannot rotate non-symmetric yuv pixel formats
bugrep. by Filip Kalinski <filon at pld.org.pl>
Index: vf_rotate.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_rotate.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vf_rotate.c 5 Dec 2002 00:22:37 -0000 1.5
+++ vf_rotate.c 3 Jan 2003 21:54:54 -0000 1.6
@@ -98,9 +98,27 @@
//===========================================================================//
+static int query_format(struct vf_instance_s* vf, unsigned int fmt){
+ if(IMGFMT_IS_RGB(fmt) || IMGFMT_IS_BGR(fmt)) return vf_next_query_format(vf, fmt);
+ // we can support only symmetric (chroma_x_shift==chroma_y_shift) YUV formats:
+ switch(fmt) {
+ case IMGFMT_YV12:
+ case IMGFMT_I420:
+ case IMGFMT_IYUV:
+ case IMGFMT_YVU9:
+// case IMGFMT_IF09:
+ case IMGFMT_Y8:
+ case IMGFMT_Y800:
+ case IMGFMT_444P:
+ return vf_next_query_format(vf, fmt);
+ }
+ return 0;
+}
+
static int open(vf_instance_t *vf, char* args){
vf->config=config;
vf->put_image=put_image;
+ vf->query_format=query_format;
vf->priv=malloc(sizeof(struct vf_priv_s));
vf->priv->direction=args?atoi(args):0;
return 1;
More information about the MPlayer-cvslog
mailing list