mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-27 11:03:26 +08:00
Simplify usePal() macro, make it use av_pix_fmt_descriptors.
Originally committed as revision 30172 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
@ -188,13 +188,7 @@ const char * swscale_license(void)
|
|||||||
|| isRGB(x) \
|
|| isRGB(x) \
|
||||||
|| isBGR(x) \
|
|| isBGR(x) \
|
||||||
)
|
)
|
||||||
#define usePal(x) ( \
|
#define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)
|
||||||
(x)==PIX_FMT_PAL8 \
|
|
||||||
|| (x)==PIX_FMT_BGR4_BYTE \
|
|
||||||
|| (x)==PIX_FMT_RGB4_BYTE \
|
|
||||||
|| (x)==PIX_FMT_BGR8 \
|
|
||||||
|| (x)==PIX_FMT_RGB8 \
|
|
||||||
)
|
|
||||||
|
|
||||||
#define RGB2YUV_SHIFT 15
|
#define RGB2YUV_SHIFT 15
|
||||||
#define BY ( (int)(0.114*219/255*(1<<RGB2YUV_SHIFT)+0.5))
|
#define BY ( (int)(0.114*219/255*(1<<RGB2YUV_SHIFT)+0.5))
|
||||||
|
Reference in New Issue
Block a user