summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-13 00:30:38 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-13 00:30:38 +0000
commitc7c35d3208aea945af7b45a119e2451663b7ed52 (patch)
tree4fd122da4836fbfe90166d03ff3b41d84a33604e /libmpcodecs
parente567bb25ae2453f17cd5f80d7021005344607d80 (diff)
downloadmpv-c7c35d3208aea945af7b45a119e2451663b7ed52.tar.bz2
mpv-c7c35d3208aea945af7b45a119e2451663b7ed52.tar.xz
yuy2 output support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7721 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_scale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c
index b958e515bf..321bf86bdc 100644
--- a/libmpcodecs/vf_scale.c
+++ b/libmpcodecs/vf_scale.c
@@ -53,6 +53,7 @@ static unsigned int outfmt_list[]={
IMGFMT_411P,
IMGFMT_Y800,
IMGFMT_Y8,
+ IMGFMT_YUY2,
0
};
@@ -176,7 +177,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_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){
// just conversion, no scaling -> keep postprocessing data
// this way we can apply pp filter to non-yv12 source using scaler