changeset 11069:71d1a2815e16

some missing formats
author alex
date Thu, 09 Oct 2003 22:32:30 +0000
parents f33f908ae085
children ede278d59026
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Thu Oct 09 22:25:53 2003 +0000
+++ b/libmpcodecs/vf_scale.c	Thu Oct 09 22:32:30 2003 +0000
@@ -129,6 +129,7 @@
     // calculate the missing parameters:
     switch(best) {
     case IMGFMT_YUY2:		/* YUY2 needs w rounded to 2 */
+    case IMGFMT_UYVY:
 	if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else
 	if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1;
 	if(vf->priv->w<0) vf->priv->w=width; else
@@ -137,6 +138,8 @@
 	if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width;
 	break;
     case IMGFMT_YV12:		/* YV12 needs w & h rounded to 2 */
+    case IMGFMT_I420:
+    case IMGFMT_IYUV:
 	if(vf->priv->w==-3) vf->priv->w=(vf->priv->h*width/height+1)&~1; else
 	if(vf->priv->w==-2) vf->priv->w=(vf->priv->h*d_width/d_height+1)&~1;
 	if(vf->priv->w<0) vf->priv->w=width; else