diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-27 17:35:37 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-27 17:35:37 +0000 |
commit | 05a053093a2ee5ba5b726511668b9fbb9ae2f063 (patch) | |
tree | 556ce9d6338043696c7de9c819b06569fdda06f3 /libmpcodecs/mp_image.h | |
parent | 2d77f658dd9b361cce2c5b395dd4d64d1a7a2bde (diff) | |
download | mpv-05a053093a2ee5ba5b726511668b9fbb9ae2f063.tar.bz2 mpv-05a053093a2ee5ba5b726511668b9fbb9ae2f063.tar.xz |
{RGB,BGR}{1,4}
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6577 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/mp_image.h')
-rw-r--r-- | libmpcodecs/mp_image.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/mp_image.h b/libmpcodecs/mp_image.h index b1fca0142b..d81b24c313 100644 --- a/libmpcodecs/mp_image.h +++ b/libmpcodecs/mp_image.h @@ -73,11 +73,13 @@ static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){ mpi->num_planes=1; if( (out_fmt&IMGFMT_RGB_MASK) == IMGFMT_RGB ){ mpi->bpp=((out_fmt&255)+7)&(~7); + if(out_fmt==IMGFMT_RGB1) mpi->bpp=1; return; } if( (out_fmt&IMGFMT_BGR_MASK) == IMGFMT_BGR ){ mpi->bpp=((out_fmt&255)+7)&(~7); mpi->flags|=MP_IMGFLAG_SWAPPED; + if(out_fmt==IMGFMT_BGR1) mpi->bpp=1; return; } mpi->flags|=MP_IMGFLAG_YUV; |