Go to the documentation of this file.
46 static const int look_ahead = 17;
48 int i, x, y,
h, d1, d2;
56 uint8_t *blk2 , ptrdiff_t
stride,
59 if (test_func ==
NULL) {
72 h = 4 + ((
rnd() % (16 + 1 - 4)) & ~1);
80 printf(
"func: %s, x=%d y=%d h=%d, error: asm=%d c=%d\n",
name, x, y,
h, d1, d2);
90 #define ME_CMP_1D_ARRAYS(XX) \
125 memset(&me_ctx, 0,
sizeof(me_ctx));
132 snprintf(buf,
sizeof(buf),
"pix_abs_%d_%d",
i, j);
137 #define XX(me_cmp_array) \
138 for (int i = 0; i < FF_ARRAY_ELEMS(me_ctx.me_cmp_array); i++) { \
139 snprintf(buf, sizeof(buf), #me_cmp_array "_%d", i); \
140 test_motion(buf, me_ctx.me_cmp_array[i]); \
#define declare_func_emms(cpu_flags, ret,...)
#define ME_CMP_1D_ARRAYS(XX)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default minimum maximum flags name is the option name
static void test_motion(const char *name, me_cmp_func test_func)
#define check_func(func,...)
#define bit(string, value)
void checkasm_check_motion(void)
static const struct twinvq_data tab
av_cold void ff_me_cmp_init(MECmpContext *c, AVCodecContext *avctx)
#define FF_ARRAY_ELEMS(a)
#define LOCAL_ALIGNED_16(t, v,...)
static uint8_t img1[WIDTH *HEIGHT]
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
static void check_motion(void)
static void fill_random(uint8_t *tab, int size)
static uint8_t img2[WIDTH *HEIGHT]
printf("static const uint8_t my_array[100] = {\n")
me_cmp_func pix_abs[2][4]
#define i(width, name, range_min, range_max)
int(* me_cmp_func)(struct MpegEncContext *c, const uint8_t *blk1, const uint8_t *blk2, ptrdiff_t stride, int h)
#define AV_CPU_FLAG_MMX
standard MMX
main external API structure.
#define AV_CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).