Go to the documentation of this file.
28 #define SIZEOF_PIXEL ((bit_depth + 7) / 8)
30 #define randomize_buffers(bit_depth) \
32 if (bit_depth == 8) { \
33 for (int i = 0; i < 16*18*2; i++) \
34 src[i] = rnd() & 0x3; \
36 for (int i = 0; i < 16*18; i += 2) \
37 AV_WN16(&src[i], rnd() & 0xFF); \
49 ptrdiff_t
stride,
int h,
int x,
int y);
56 #define CHECK_CHROMA_MC(name) \
58 if (check_func(h.name## _pixels_tab[size], #name "_mc%d_%d", 1 << (3-size), bit_depth)) { \
59 for (int x = 0; x < 2; x++) { \
60 for (int y = 0; y < 2; y++) { \
61 memcpy(dst0, src, 16 * 18 * SIZEOF_PIXEL); \
62 memcpy(dst1, src, 16 * 18 * SIZEOF_PIXEL); \
63 call_ref(dst0, src, 16 * SIZEOF_PIXEL, 16, x, y); \
64 call_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y); \
65 if (memcmp(dst0, dst1, 16 * 16 * SIZEOF_PIXEL)) { \
66 fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \
69 bench_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y); \
#define declare_func_emms(cpu_flags, ret,...)
static void bit_depth(AudioStatsContext *s, const uint64_t *const mask, uint8_t *depth)
static void check_chroma_mc(void)
#define CHECK_CHROMA_MC(name)
void checkasm_check_h264chroma(void)
#define LOCAL_ALIGNED_32(t, v,...)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
#define randomize_buffers(bit_depth)
#define AV_CPU_FLAG_MMX
standard MMX
av_cold void ff_h264chroma_init(H264ChromaContext *c, int bit_depth)