Commit f95af42d authored by stefano's avatar stefano

Simplify usePal() macro, make it use av_pix_fmt_descriptors.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30172 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 1b99ee70
...@@ -188,13 +188,7 @@ const char * swscale_license(void) ...@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment