FFmpeg
|
#include <float.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "internal.h"
#include "opencl.h"
#include "opencl_source.h"
#include "video.h"
#include "colorspace.h"
Go to the source code of this file.
Data Structures | |
struct | TonemapOpenCLContext |
Macros | |
#define | DETECTION_FRAMES 63 |
#define | OPENCL_SOURCE_NB 3 |
#define | OFFSET(x) offsetof(TonemapOpenCLContext, x) |
#define | FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) |
Functions | |
static int | get_rgb2rgb_matrix (enum AVColorPrimaries in, enum AVColorPrimaries out, double rgb2rgb[3][3]) |
static int | tonemap_opencl_init (AVFilterContext *avctx) |
static int | tonemap_opencl_config_output (AVFilterLink *outlink) |
static int | launch_kernel (AVFilterContext *avctx, cl_kernel kernel, AVFrame *output, AVFrame *input, float peak) |
static int | tonemap_opencl_filter_frame (AVFilterLink *inlink, AVFrame *input) |
static av_cold void | tonemap_opencl_uninit (AVFilterContext *avctx) |
AVFILTER_DEFINE_CLASS (tonemap_opencl) | |
Variables | |
static const char *const | linearize_funcs [AVCOL_TRC_NB] |
static const char *const | delinearize_funcs [AVCOL_TRC_NB] |
static const char *const | tonemap_func [TONEMAP_MAX] |
static const float | sdr_avg = 0.25f |
static const AVOption | tonemap_opencl_options [] |
static const AVFilterPad | tonemap_opencl_inputs [] |
static const AVFilterPad | tonemap_opencl_outputs [] |
const AVFilter | ff_vf_tonemap_opencl |
#define DETECTION_FRAMES 63 |
Definition at line 38 of file vf_tonemap_opencl.c.
#define OPENCL_SOURCE_NB 3 |
Definition at line 111 of file vf_tonemap_opencl.c.
#define OFFSET | ( | x | ) | offsetof(TonemapOpenCLContext, x) |
Definition at line 483 of file vf_tonemap_opencl.c.
#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM) |
Definition at line 484 of file vf_tonemap_opencl.c.
enum TonemapAlgorithm |
Definition at line 40 of file vf_tonemap_opencl.c.
|
static |
Definition at line 93 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_init().
|
static |
Definition at line 116 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_filter_frame().
|
static |
Definition at line 280 of file vf_tonemap_opencl.c.
|
static |
Definition at line 304 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_filter_frame().
|
static |
Definition at line 336 of file vf_tonemap_opencl.c.
|
static |
Definition at line 459 of file vf_tonemap_opencl.c.
AVFILTER_DEFINE_CLASS | ( | tonemap_opencl | ) |
|
static |
Definition at line 73 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_init().
|
static |
Definition at line 78 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_init().
|
static |
Definition at line 83 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_init().
Definition at line 114 of file vf_tonemap_opencl.c.
Referenced by tonemap_opencl_init().
|
static |
Definition at line 485 of file vf_tonemap_opencl.c.
|
static |
Definition at line 522 of file vf_tonemap_opencl.c.
|
static |
Definition at line 531 of file vf_tonemap_opencl.c.
const AVFilter ff_vf_tonemap_opencl |
Definition at line 539 of file vf_tonemap_opencl.c.