Go to the documentation of this file.
19 #ifndef AVFILTER_BLACKDETECT_H
20 #define AVFILTER_BLACKDETECT_H
38 unsigned int counter = 0;
40 for (
int x = 0; x <
width; x++)
41 counter +=
src[x] <= threshold;
51 unsigned int counter = 0;
53 const uint16_t *src16 = (
const uint16_t *)
src;
54 for (
int x = 0; x <
width; x++)
55 counter += src16[x] <= threshold;
68 #elif ARCH_X86 && HAVE_X86ASM
ff_blackdetect_fn ff_blackdetect_get_fn_riscv(int depth)
static unsigned count_pixels16_c(const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, unsigned threshold)
unsigned(* ff_blackdetect_fn)(const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, unsigned threshold)
static unsigned count_pixels8_c(const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, unsigned threshold)
static ff_blackdetect_fn ff_blackdetect_get_fn(int depth)
ff_blackdetect_fn ff_blackdetect_get_fn_x86(int depth)