1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

sws/tests/pixdesc_query: remove func wrappers

This commit is contained in:
Clément Bœsch 2017-03-23 22:46:28 +01:00
parent bc7308aae8
commit 99dd6fe62c

View File

@ -20,52 +20,27 @@
#include "libswscale/swscale_internal.h" #include "libswscale/swscale_internal.h"
/* TODO: drop this wrapper when all the is*() becomes functions */
#define DECLARE_WRAPPER(macro) \
static int macro##_func(enum AVPixelFormat pix_fmt) \
{ \
return macro(pix_fmt); \
}
DECLARE_WRAPPER(is16BPS)
DECLARE_WRAPPER(isNBPS)
DECLARE_WRAPPER(isBE)
DECLARE_WRAPPER(isYUV)
DECLARE_WRAPPER(isPlanarYUV)
DECLARE_WRAPPER(isRGB)
DECLARE_WRAPPER(isGray)
DECLARE_WRAPPER(isRGBinInt)
DECLARE_WRAPPER(isBGRinInt)
DECLARE_WRAPPER(isBayer)
DECLARE_WRAPPER(isAnyRGB)
DECLARE_WRAPPER(isALPHA)
DECLARE_WRAPPER(isPacked)
DECLARE_WRAPPER(isPlanar)
DECLARE_WRAPPER(isPackedRGB)
DECLARE_WRAPPER(isPlanarRGB)
DECLARE_WRAPPER(usePal)
static const struct { static const struct {
const char *class; const char *class;
int (*cond)(enum AVPixelFormat pix_fmt); int (*cond)(enum AVPixelFormat pix_fmt);
} query_tab[] = { } query_tab[] = {
{"is16BPS", is16BPS_func}, {"is16BPS", is16BPS},
{"isNBPS", isNBPS_func}, {"isNBPS", isNBPS},
{"isBE", isBE_func}, {"isBE", isBE},
{"isYUV", isYUV_func}, {"isYUV", isYUV},
{"isPlanarYUV", isPlanarYUV_func}, {"isPlanarYUV", isPlanarYUV},
{"isRGB", isRGB_func}, {"isRGB", isRGB},
{"Gray", isGray_func}, {"Gray", isGray},
{"RGBinInt", isRGBinInt_func}, {"RGBinInt", isRGBinInt},
{"BGRinInt", isBGRinInt_func}, {"BGRinInt", isBGRinInt},
{"Bayer", isBayer_func}, {"Bayer", isBayer},
{"AnyRGB", isAnyRGB_func}, {"AnyRGB", isAnyRGB},
{"ALPHA", isALPHA_func}, {"ALPHA", isALPHA},
{"Packed", isPacked_func}, {"Packed", isPacked},
{"Planar", isPlanar_func}, {"Planar", isPlanar},
{"PackedRGB", isPackedRGB_func}, {"PackedRGB", isPackedRGB},
{"PlanarRGB", isPlanarRGB_func}, {"PlanarRGB", isPlanarRGB},
{"usePal", usePal_func}, {"usePal", usePal},
}; };
int main(void) int main(void)