Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (thumbnail_cuda) |
|
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 | thumbnail_kernel (AVFilterContext *ctx, CUfunction func, int channels, int *histogram, uint8_t *src_dptr, int src_width, int src_height, int src_pitch, int pixel_size) |
|
static int | thumbnail (AVFilterContext *ctx, int *histogram, AVFrame *in) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static int | request_frame (AVFilterLink *link) |
|
static int | format_is_supported (enum AVPixelFormat fmt) |
|
static int | config_props (AVFilterLink *inlink) |
|
static int | query_formats (AVFilterContext *ctx) |
|
◆ CHECK_CU
◆ HIST_SIZE
#define HIST_SIZE (3*256) |
◆ DIV_UP
#define DIV_UP |
( |
|
a, |
|
|
|
b |
|
) |
| ( ((a) + (b) - 1) / (b) ) |
◆ BLOCKX
◆ BLOCKY
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
thumbnail_cuda |
| ) |
|
◆ init()
◆ frame_sum_square_err()
static double frame_sum_square_err |
( |
const int * |
hist, |
|
|
const double * |
median |
|
) |
| |
|
static |
Compute Sum-square deviation to estimate "closeness".
- Parameters
-
hist | color distribution histogram |
median | average color distribution histogram |
- Returns
- sum of squared errors
Definition at line 105 of file vf_thumbnail_cuda.c.
Referenced by get_best_frame().
◆ get_best_frame()
◆ thumbnail_kernel()
◆ thumbnail()
◆ filter_frame()
◆ uninit()
◆ request_frame()
◆ format_is_supported()
◆ config_props()
◆ query_formats()
◆ supported_formats
◆ thumbnail_cuda_options
◆ thumbnail_cuda_inputs
◆ thumbnail_cuda_outputs
◆ ff_vf_thumbnail_cuda
Initial value:= {
.name = "thumbnail_cuda",
.description =
NULL_IF_CONFIG_SMALL(
"Select the most representative frame in a given sequence of consecutive frames."),
.priv_class = &thumbnail_cuda_class,
}
Definition at line 443 of file vf_thumbnail_cuda.c.