29#define PIXELS (WIDTH * HEIGHT)
31#define randomize_buffers(buf, size) \
34 uint8_t *tmp_buf = (uint8_t *)buf;\
35 for (j = 0; j< size; j++) \
36 tmp_buf[j] = rnd() & 0xFF; \
63 const uint8_t *
c[],
int peak,
int radius,
int dstride,
int stride,
int size);
72 memset(dst_ref, 0,
PIXELS);
73 memset(dst_new, 0,
PIXELS);
82 call_ref(dst_ref + yoff + xoff, sizew - 2 * radius,
85 call_new(dst_new + yoff + xoff, sizew - 2 * radius,
88 if (memcmp(dst_ref + yoff + xoff, dst_new + yoff + xoff,
slice_end - step))
90 bench_new(dst_new + yoff + xoff, sizew - 2 * radius,
103 report(
"convolution:sobel");
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Main libavfilter public API header.
static void ff_sobel_init(ConvolutionContext *s, int depth, int nb_planes)
static void scale(int *out, const int *in, const int w, const int h, const int shift)
#define LOCAL_ALIGNED_32(t, v,...)
static int slice_end(AVCodecContext *avctx, AVFrame *pict, int *got_output)
Handle slice ends.
void checkasm_check_vf_sobel(void)
#define randomize_buffers(buf, size)
static void check_sobel(const char *report_name)
static int slice_start(SliceContext *sc, VVCContext *s, VVCFrameContext *fc, const CodedBitstreamUnit *unit, const int is_first_slice)