FFmpeg
|
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | thumb_frame |
struct | ThumbContext |
Macros | |
#define | HIST_SIZE (3*256) |
#define | OFFSET(x) offsetof(ThumbContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (thumbnail) | |
static av_cold int | init (AVFilterContext *ctx) |
static double | frame_sum_square_err (const int *hist, const double *median) |
Compute Sum-square deviation to estimate "closeness". More... | |
static AVFrame * | get_best_frame (AVFilterContext *ctx) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | request_frame (AVFilterLink *link) |
static int | config_props (AVFilterLink *inlink) |
static int | query_formats (AVFilterContext *ctx) |
Variables | |
static const AVOption | thumbnail_options [] |
static const AVFilterPad | thumbnail_inputs [] |
static const AVFilterPad | thumbnail_outputs [] |
AVFilter | ff_vf_thumbnail |
Potential thumbnail lookup filter to reduce the risk of an inappropriate selection (such as a black frame) we could get with an absolute seek.
Simplified version of algorithm by Vadim Zaliva lord@. croc odile .org
Definition in file vf_thumbnail.c.
#define HIST_SIZE (3*256) |
Definition at line 35 of file vf_thumbnail.c.
#define OFFSET | ( | x | ) | offsetof(ThumbContext, x) |
Definition at line 53 of file vf_thumbnail.c.
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 54 of file vf_thumbnail.c.
AVFILTER_DEFINE_CLASS | ( | thumbnail | ) |
|
static |
Definition at line 63 of file vf_thumbnail.c.
|
static |
Compute Sum-square deviation to estimate "closeness".
hist | color distribution histogram |
median | average color distribution histogram |
Definition at line 83 of file vf_thumbnail.c.
Referenced by get_best_frame().
|
static |
Definition at line 95 of file vf_thumbnail.c.
Referenced by filter_frame(), and request_frame().
|
static |
Definition at line 135 of file vf_thumbnail.c.
|
static |
Definition at line 206 of file vf_thumbnail.c.
|
static |
Definition at line 215 of file vf_thumbnail.c.
|
static |
Definition at line 232 of file vf_thumbnail.c.
|
static |
Definition at line 247 of file vf_thumbnail.c.
|
static |
Definition at line 56 of file vf_thumbnail.c.
|
static |
Definition at line 271 of file vf_thumbnail.c.
|
static |
Definition at line 281 of file vf_thumbnail.c.
AVFilter ff_vf_thumbnail |
Definition at line 290 of file vf_thumbnail.c.