Avoid duplication of usePal() macro.
Originally committed as revision 30856 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
@@ -92,7 +92,6 @@ untested special converters
|
|||||||
|| (x)==PIX_FMT_UYVY422 \
|
|| (x)==PIX_FMT_UYVY422 \
|
||||||
|| isAnyRGB(x) \
|
|| isAnyRGB(x) \
|
||||||
)
|
)
|
||||||
#define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)
|
|
||||||
|
|
||||||
#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))
|
||||||
|
@@ -442,6 +442,7 @@ const char *sws_format_name(enum PixelFormat format);
|
|||||||
|| (x)==PIX_FMT_RGB32_1 \
|
|| (x)==PIX_FMT_RGB32_1 \
|
||||||
|| (x)==PIX_FMT_YUVA420P \
|
|| (x)==PIX_FMT_YUVA420P \
|
||||||
)
|
)
|
||||||
|
#define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)
|
||||||
|
|
||||||
extern const uint64_t ff_dither4[2];
|
extern const uint64_t ff_dither4[2];
|
||||||
extern const uint64_t ff_dither8[2];
|
extern const uint64_t ff_dither8[2];
|
||||||
|
@@ -150,8 +150,6 @@ int sws_isSupportedOutput(enum PixelFormat pix_fmt)
|
|||||||
return isSupportedOut(pix_fmt);
|
return isSupportedOut(pix_fmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define usePal(x) (av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)
|
|
||||||
|
|
||||||
extern const int32_t ff_yuv2rgb_coeffs[8][4];
|
extern const int32_t ff_yuv2rgb_coeffs[8][4];
|
||||||
|
|
||||||
const char *sws_format_name(enum PixelFormat format)
|
const char *sws_format_name(enum PixelFormat format)
|
||||||
|
Reference in New Issue
Block a user