Mercurial > mplayer.hg
diff libmpcodecs/mp_image.h @ 9171:898e5270a46e
fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)
author | michael |
---|---|
date | Thu, 30 Jan 2003 09:15:09 +0000 |
parents | a57c1fc0c2fc |
children | 420640a0f6d0 |
line wrap: on
line diff
--- a/libmpcodecs/mp_image.h Wed Jan 29 23:28:55 2003 +0000 +++ b/libmpcodecs/mp_image.h Thu Jan 30 09:15:09 2003 +0000 @@ -96,14 +96,14 @@ } mpi->num_planes=1; if (IMGFMT_IS_RGB(out_fmt)) { - if (IMGFMT_RGB_DEPTH(out_fmt) < 8) + if (IMGFMT_RGB_DEPTH(out_fmt) < 8 && !(out_fmt&128)) mpi->bpp = IMGFMT_RGB_DEPTH(out_fmt); else mpi->bpp=(IMGFMT_RGB_DEPTH(out_fmt)+7)&(~7); return; } if (IMGFMT_IS_BGR(out_fmt)) { - if (IMGFMT_BGR_DEPTH(out_fmt) < 8) + if (IMGFMT_BGR_DEPTH(out_fmt) < 8 && !(out_fmt&128)) mpi->bpp = IMGFMT_BGR_DEPTH(out_fmt); else mpi->bpp=(IMGFMT_BGR_DEPTH(out_fmt)+7)&(~7);