changeset 6533:52f8bde27fea

yvu9 & y8
author michael
date Sun, 23 Jun 2002 18:53:46 +0000
parents 9834d9980c45
children fce6f98eb72e
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Sun Jun 23 18:51:43 2002 +0000
+++ b/libmpcodecs/vf_scale.c	Sun Jun 23 18:53:46 2002 +0000
@@ -32,6 +32,9 @@
     IMGFMT_YV12,
     IMGFMT_I420,
     IMGFMT_IYUV,
+    IMGFMT_Y800,
+    IMGFMT_Y8,
+    IMGFMT_YVU9,
     0
 };
 
@@ -128,7 +131,6 @@
     dmpi=vf_get_image(vf->next,vf->priv->fmt,
 	MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 	vf->priv->w, vf->priv->h);
-    
     vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride);
     
     if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){
@@ -157,7 +159,10 @@
     case IMGFMT_BGR15:
     case IMGFMT_RGB32:
     case IMGFMT_RGB24:
-    case IMGFMT_Y800: {
+    case IMGFMT_Y800: 
+    case IMGFMT_Y8: 
+    case IMGFMT_YVU9: 
+    {
 	unsigned int best=find_best_out(vf);
 	int flags;
 	if(!best) return 0;	 // no matching out-fmt