# HG changeset patch # User michael # Date 1024858426 0 # Node ID 52f8bde27feae772c3cf88029f4faa45b90eccb4 # Parent 9834d9980c454ed7b6b51546c561f654299b5a7f yvu9 & y8 diff -r 9834d9980c45 -r 52f8bde27fea libmpcodecs/vf_scale.c --- 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