diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 16:37:37 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 16:37:37 +0000 |
commit | aeab39c7e6a08ba3baa9f735c072e509996ee603 (patch) | |
tree | b54d1cf6f4429b060016755c13421520e8d24dee | |
parent | d546cf983fc755431b9381e5613e0b5143ce283b (diff) | |
download | mpv-aeab39c7e6a08ba3baa9f735c072e509996ee603.tar.bz2 mpv-aeab39c7e6a08ba3baa9f735c072e509996ee603.tar.xz |
yvu9 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6481 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_raw.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmpcodecs/vd_raw.c b/libmpcodecs/vd_raw.c index eb0d952fac..6597b772ce 100644 --- a/libmpcodecs/vd_raw.c +++ b/libmpcodecs/vd_raw.c @@ -67,6 +67,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ mpi->stride[0]=mpi->width; if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) { // Support for some common Planar YUV formats + /* YV12,I420,IYUV */ int cb=2, cr=1; if(mpi->flags&MP_IMGFLAG_SWAPPED) { cb=1; cr=2; @@ -76,6 +77,12 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ mpi->planes[cr]=data+5*mpi->width*mpi->height/4; mpi->stride[cr]=mpi->width/2; } + else if (mpi->bpp==9 && mpi->flags&MP_IMGFLAG_YUV) { + /* YVU9 ! */ + mpi->stride[1]=mpi->stride[2]=mpi->width/4; + mpi->planes[2]=mpi->planes[0]+mpi->width*mpi->height; + mpi->planes[1]=mpi->planes[2]+(mpi->width>>2)*(mpi->height>>2); + } } else { mpi->planes[0]=data; mpi->stride[0]=mpi->width*(mpi->bpp/8); |