summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-23 18:53:46 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-23 18:53:46 +0000
commit10456fb9479a68a99fb3f9ab2d552e5e17307b66 (patch)
tree62ce5b7c73594f91bffd56330a2aced13660352e /libmpcodecs
parent89b1dec5ffe38cb573e83c97a13da1b8006b2c82 (diff)
downloadmpv-10456fb9479a68a99fb3f9ab2d552e5e17307b66.tar.bz2
mpv-10456fb9479a68a99fb3f9ab2d552e5e17307b66.tar.xz
yvu9 & y8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6534 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_scale.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c
index 9b47fb8752..f857a8709d 100644
--- a/libmpcodecs/vf_scale.c
+++ b/libmpcodecs/vf_scale.c
@@ -32,6 +32,9 @@ static unsigned int outfmt_list[]={
IMGFMT_YV12,
IMGFMT_I420,
IMGFMT_IYUV,
+ IMGFMT_Y800,
+ IMGFMT_Y8,
+ IMGFMT_YVU9,
0
};
@@ -128,7 +131,6 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
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 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
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