Mercurial > mplayer.hg
changeset 6480:0dcaa477d200
yvu9 support
author | alex |
---|---|
date | Fri, 21 Jun 2002 16:37:37 +0000 |
parents | 45ec7f24de06 |
children | 24465b749d2a |
files | libmpcodecs/vd_raw.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_raw.c Fri Jun 21 16:26:40 2002 +0000 +++ b/libmpcodecs/vd_raw.c Fri Jun 21 16:37:37 2002 +0000 @@ -67,6 +67,7 @@ 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 @@ 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);