mirror of https://github.com/mpv-player/mpv
10l...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4188 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
491a353915
commit
fb3522a8fa
|
@ -33,7 +33,7 @@ typedef struct mp_image_s {
|
||||||
#ifdef IMGFMT_YUY2
|
#ifdef IMGFMT_YUY2
|
||||||
static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
|
static inline void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){
|
||||||
mpi->flags&=~(MP_IMGFLAG_PLANAR|MP_IMGFLAG_YUV|MP_IMGFLAG_SWAPPED);
|
mpi->flags&=~(MP_IMGFLAG_PLANAR|MP_IMGFLAG_YUV|MP_IMGFLAG_SWAPPED);
|
||||||
mpi->out_fmt=out_fmt;
|
mpi->imgfmt=out_fmt;
|
||||||
if( (out_fmt&IMGFMT_RGB_MASK) == IMGFMT_RGB ){
|
if( (out_fmt&IMGFMT_RGB_MASK) == IMGFMT_RGB ){
|
||||||
mpi->bpp=((out_fmt&255)+7)&(~7);
|
mpi->bpp=((out_fmt&255)+7)&(~7);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue