Go to the source code of this file.
◆ INPUT_MAIN
◆ INPUT_CLEANSRC
◆ OFFSET
◆ FLAGS
◆ CALC_DIFF
#define CALC_DIFF |
( |
|
nbits | ) |
|
Value: do { \
for (x = 0; x <
width; x += hblockx) { \
for (xl = x; xl < m; xl++) \
acc +=
abs(((
const uint##nbits##_t *)f1p)[xl] - \
((const uint##nbits##_t *)f2p)[xl]); \
bdiffs[ydest * dm->nxblocks + xdest] +=
acc; \
xdest++; \
} \
} while (0)
◆ PF_NOALPHA
#define PF_NOALPHA |
( |
|
suf | ) |
AV_PIX_FMT_YUV420##suf, AV_PIX_FMT_YUV422##suf, AV_PIX_FMT_YUV444##suf |
◆ PF_ALPHA
#define PF_ALPHA |
( |
|
suf | ) |
AV_PIX_FMT_YUVA420##suf, AV_PIX_FMT_YUVA422##suf, AV_PIX_FMT_YUVA444##suf |
◆ PF
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
decimate |
| ) |
|
◆ calc_diffs()
◆ filter_frame()
◆ activate()
◆ decimate_init()
◆ decimate_uninit()
◆ config_output()
◆ decimate_options
Initial value:= {
{
"blockx",
"set the size of the x-axis blocks used during metric calculations",
OFFSET(blockx),
AV_OPT_TYPE_INT, {.i64 = 32}, 4, 1<<9,
FLAGS },
{
"blocky",
"set the size of the y-axis blocks used during metric calculations",
OFFSET(blocky),
AV_OPT_TYPE_INT, {.i64 = 32}, 4, 1<<9,
FLAGS },
{
"ppsrc",
"mark main input as a pre-processed input and activate clean source input stream",
OFFSET(ppsrc),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1,
FLAGS },
{
"mixed",
"set whether or not the input only partially contains content to be decimated",
OFFSET(mixed),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1,
FLAGS },
}
Definition at line 74 of file vf_decimate.c.
◆ pix_fmts
Initial value:= {
#define PF_NOALPHA(suf)
#define PF_ALPHA(suf)
#define PF(suf)
}
Definition at line 368 of file vf_decimate.c.
◆ decimate_outputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 444 of file vf_decimate.c.
◆ ff_vf_decimate
Initial value:= {
.name = "decimate",
.priv_class = &decimate_class,
}
Definition at line 452 of file vf_decimate.c.
static enum AVPixelFormat pix_fmts[]
#define FILTER_PIXFMTS_ARRAY(array)
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
#define AV_PIX_FMT_GRAY16
#define AVFILTER_FLAG_DYNAMIC_INPUTS
The number of the filter inputs is not determined just by AVFilter.inputs.
static int activate(AVFilterContext *ctx)
@ AV_PIX_FMT_YUVJ411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples) full scale (JPEG), deprecated in favor ...
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
#define AV_PIX_FMT_GRAY14
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
#define AV_PIX_FMT_GRAY10
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
#define AV_PIX_FMT_YUV440P10
@ AV_PIX_FMT_GRAY8
Y , 8bpp.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_cold void decimate_uninit(AVFilterContext *ctx)
static av_cold int decimate_init(AVFilterContext *ctx)
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
static int config_output(AVFilterLink *outlink)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
#define AV_PIX_FMT_YUV440P12
#define AV_PIX_FMT_GRAY12
static const AVFilterPad decimate_outputs[]