#include <stddef.h>
#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/pixfmt.h"
Go to the source code of this file.
◆ DECL_DETECT_RANGE_IMPL
| #define DECL_DETECT_RANGE_IMPL |
( |
| TYPE, |
|
|
| NAME ) |
Value:static inline int NAME(
const uint8_t*
data, ptrdiff_t
stride, \
int mpeg_min, int mpeg_max) \
{ \
av_assume(
min == mpeg_min); \
av_assume(
max == mpeg_max); \
\
for (
int x = 0; x <
width; x++) { \
} \
return 1; \
} \
\
return 0; \
}
static double val(void *priv, double ch)
int(* cond)(enum AVPixelFormat pix_fmt)
Definition at line 57 of file vf_colordetectdsp.h.
◆ DECL_DETECT_ALPHA_FULL_IMPL
| #define DECL_DETECT_ALPHA_FULL_IMPL |
( |
| TYPE, |
|
|
| INTER, |
|
|
| NAME ) |
Value:static inline int NAME(
const uint8_t*
color, ptrdiff_t color_stride, \
const uint8_t*
alpha, ptrdiff_t alpha_stride, \
{ \
av_assume(
max == alpha_max); \
(void) mpeg_range; \
\
uint8_t transparent = 0; \
uint8_t straight = 0; \
for (
int x = 0; x <
width; x++) { \
straight |= col[x] > alp[x] + off; \
transparent |= alp[x] !=
max; \
} \
if (straight) \
} \
}
static const int16_t alpha[]
@ FF_ALPHA_TRANSPARENT
alpha < alpha_max
@ FF_ALPHA_STRAIGHT
alpha < pixel
Definition at line 85 of file vf_colordetectdsp.h.
◆ DECL_DETECT_ALPHA_LIMITED_IMPL
| #define DECL_DETECT_ALPHA_LIMITED_IMPL |
( |
| TYPE, |
|
|
| INTER, |
|
|
| NAME ) |
Value:static inline int NAME(
const uint8_t*
color, ptrdiff_t color_stride, \
const uint8_t*
alpha, ptrdiff_t alpha_stride, \
{ \
const INTER
range = mpeg_range; \
av_assume(
max == alpha_max); \
av_assume(
range == mpeg_range); \
\
uint8_t transparent = 0; \
uint8_t straight = 0; \
for (
int x = 0; x <
width; x++) { \
straight |= (INTER)
max * col[x] - off >
range * alp[x]; \
transparent |= alp[x] !=
max; \
} \
if (straight) \
} \
}
Definition at line 117 of file vf_colordetectdsp.h.
◆ FFAlphaDetect
| Enumerator |
|---|
| FF_ALPHA_NONE | |
| FF_ALPHA_UNDETERMINED | |
| FF_ALPHA_TRANSPARENT | alpha < alpha_max
|
| FF_ALPHA_STRAIGHT | alpha < pixel
|
Definition at line 31 of file vf_colordetectdsp.h.
◆ ff_color_detect_dsp_init_aarch64()
◆ ff_color_detect_dsp_init_x86()
◆ ff_color_detect_dsp_init()