Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (mpdecimate) |
|
static int | diff_planes (AVFilterContext *ctx, uint8_t *cur, int cur_linesize, uint8_t *ref, int ref_linesize, int w, int h) |
| Return 1 if the two planes are different, 0 otherwise. More...
|
|
static int | decimate_frame (AVFilterContext *ctx, AVFrame *cur, AVFrame *ref) |
| Tell if the frame should be decimated, for example if it is no much different with respect to the reference frame ref. More...
|
|
static av_cold int | init (AVFilterContext *ctx) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static int | config_input (AVFilterLink *inlink) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *cur) |
|
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
mpdecimate |
| ) |
|
◆ diff_planes()
◆ decimate_frame()
Tell if the frame should be decimated, for example if it is no much different with respect to the reference frame ref.
Definition at line 113 of file vf_mpdecimate.c.
Referenced by filter_frame().
◆ init()
◆ uninit()
◆ config_input()
◆ filter_frame()
◆ mpdecimate_options
Initial value:= {
{ "max", "set the maximum number of consecutive dropped frames (positive), or the minimum interval between dropped frames (negative)",
{ "keep", "set the number of similar consecutive frames to be kept before starting to drop similar frames",
}
Definition at line 59 of file vf_mpdecimate.c.
◆ pix_fmts
◆ mpdecimate_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 231 of file vf_mpdecimate.c.
◆ ff_vf_mpdecimate
Initial value:= {
.name = "mpdecimate",
.priv_class = &mpdecimate_class,
}
Definition at line 240 of file vf_mpdecimate.c.
#define FILTER_PIXFMTS_ARRAY(array)
@ AV_PIX_FMT_YUV440P
planar YUV 4:4:0 (1 Cr & Cb sample per 1x2 Y samples)
static int config_input(AVFilterLink *inlink)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
static int filter_frame(AVFilterLink *inlink, AVFrame *cur)
@ AV_PIX_FMT_YUVJ422P
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV422P and setting col...
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
static enum AVPixelFormat pix_fmts[]
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_INPUTS(array)
@ AV_PIX_FMT_YUVJ444P
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV444P and setting col...
@ 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 NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static av_cold int init(AVFilterContext *ctx)
@ AV_PIX_FMT_YUVA444P
planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples)
@ AV_PIX_FMT_YUVJ440P
planar YUV 4:4:0 full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV440P and setting color_range
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUV411P
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
static const AVFilterPad mpdecimate_inputs[]
static av_cold void uninit(AVFilterContext *ctx)
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)