Mercurial > mplayer.hg
diff libmpcodecs/mp_image.c @ 34157:ab178e06077e
Support planar GBR24 decoding.
author | cehoyos |
---|---|
date | Sun, 23 Oct 2011 20:40:31 +0000 |
parents | cf2a4f4cac0e |
children | a93891202051 |
line wrap: on
line diff
--- a/libmpcodecs/mp_image.c Sun Oct 23 12:14:45 2011 +0000 +++ b/libmpcodecs/mp_image.c Sun Oct 23 20:40:31 2011 +0000 @@ -121,8 +121,13 @@ mpi->flags|=MP_IMGFLAG_SWAPPED; return; } + mpi->num_planes=3; + if (out_fmt == IMGFMT_GBR24P) { + mpi->bpp=24; + mpi->flags|=MP_IMGFLAG_PLANAR; + return; + } mpi->flags|=MP_IMGFLAG_YUV; - mpi->num_planes=3; if (mp_get_chroma_shift(out_fmt, NULL, NULL, NULL)) { mpi->flags|=MP_IMGFLAG_PLANAR; mpi->bpp = mp_get_chroma_shift(out_fmt, &mpi->chroma_x_shift, &mpi->chroma_y_shift, NULL);