Revision 6af250ea postproc/swscale.c

View differences:

postproc/swscale.c
17 17
*/
18 18

  
19 19
/*
20
  supported Input formats: YV12, I420, IYUV, YUY2, BGR32, BGR24, RGB32, RGB24, Y8, Y800
20
  supported Input formats: YV12, I420, IYUV, YUY2, BGR32, BGR24, BGR16, RGB32, RGB24, Y8, Y800
21 21
  supported output formats: YV12, I420, IYUV, BGR15, BGR16, BGR24, BGR32 (grayscale soon too)
22 22
  BGR15/16 support dithering
23 23
  
......
87 87
#define isPacked(x)    ((x)==IMGFMT_YUY2 || ((x)&IMGFMT_BGR_MASK)==IMGFMT_BGR || ((x)&IMGFMT_RGB_MASK)==IMGFMT_RGB)
88 88
#define isGray(x)      ((x)==IMGFMT_Y800)
89 89
#define isSupportedIn(x)  ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 || (x)==IMGFMT_YUY2 \
90
			|| (x)==IMGFMT_BGR32|| (x)==IMGFMT_BGR24\
90
			|| (x)==IMGFMT_BGR32|| (x)==IMGFMT_BGR24|| (x)==IMGFMT_BGR16\
91 91
			|| (x)==IMGFMT_RGB32|| (x)==IMGFMT_RGB24\
92 92
			|| (x)==IMGFMT_Y800)
93 93
#define isSupportedOut(x) ((x)==IMGFMT_YV12 || (x)==IMGFMT_I420 \

Also available in: Unified diff