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 (ThumbnailCudaContext *s, CUfunction func, CUtexref tex, 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) |
|
#define HIST_SIZE (3*256) |
#define DIV_UP |
( |
|
a, |
|
|
|
b |
|
) |
| ( ((a) + (b) - 1) / (b) ) |
AVFILTER_DEFINE_CLASS |
( |
thumbnail_cuda |
| ) |
|
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().
Initial value:= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AV_PIX_FMT_YUV444P16
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition at line 38 of file vf_thumbnail_cuda.c.
Referenced by format_is_supported().
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static int config_props(AVFilterLink *inlink)
Definition at line 415 of file vf_thumbnail_cuda.c.
Initial value:= {
{
.name = "default",
},
}
static int request_frame(AVFilterLink *link)
Definition at line 425 of file vf_thumbnail_cuda.c.
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,
}
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
static const AVFilterPad thumbnail_cuda_inputs[]
#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)
static const AVFilterPad outputs[]
static av_cold void uninit(AVFilterContext *ctx)
static const AVFilterPad inputs[]
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad thumbnail_cuda_outputs[]
Definition at line 434 of file vf_thumbnail_cuda.c.