Go to the documentation of this file.
46 static const int look_ahead = 17;
48 int i, x, y,
h, d1, d2;
56 const uint8_t *blk2 , ptrdiff_t
stride,
59 if (test_func ==
NULL) {
72 h = 4 + ((
rnd() % (16 + 1 - 4)) & ~1);
74 ptr = img2 + y *
WIDTH + x;
80 printf(
"func: %s, x=%d y=%d h=%d, error: asm=%d c=%d\n",
name, x, y,
h, d1, d2);
85 ptr = img2 + 3 *
WIDTH + 3;
90 #define ME_CMP_1D_ARRAYS(XX) \
123 snprintf(buf,
sizeof(buf),
"pix_abs_%d_%d",
i, j);
128 #define XX(me_cmp_array) \
129 for (int i = 0; i < FF_ARRAY_ELEMS(me_ctx.me_cmp_array); i++) { \
130 snprintf(buf, sizeof(buf), #me_cmp_array "_%d", i); \
131 test_motion(buf, me_ctx.me_cmp_array[i]); \
#define declare_func_emms(cpu_flags, ret,...)
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
__device__ int printf(const char *,...)
static void test_motion(const char *name, me_cmp_func test_func)
#define check_func(func,...)
#define ME_CMP_1D_ARRAYS(XX)
static void check_motion(void)
#define bit(string, value)
static const struct twinvq_data tab
av_cold void ff_me_cmp_init(MECmpContext *c, AVCodecContext *avctx)
#define FF_ARRAY_ELEMS(a)
int(* me_cmp_func)(MPVEncContext *c, const uint8_t *blk1, const uint8_t *blk2, ptrdiff_t stride, int h)
#define LOCAL_ALIGNED_16(t, v,...)
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
#define i(width, name, range_min, range_max)
void checkasm_check_motion(void)
me_cmp_func pix_abs[2][4]
#define AV_CPU_FLAG_MMX
standard MMX
main external API structure.
static void fill_random(uint8_t *tab, int size)
#define AV_CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).