|
FFmpeg
|
tonemap algorithms More...
#include <float.h>#include <stdio.h>#include <string.h>#include "libavutil/imgutils.h"#include "libavutil/internal.h"#include "libavutil/intreadwrite.h"#include "libavutil/mastering_display_metadata.h"#include "libavutil/opt.h"#include "libavutil/pixdesc.h"#include "avfilter.h"#include "formats.h"#include "internal.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | LumaCoefficients |
| struct | TonemapContext |
Macros | |
| #define | REFERENCE_WHITE 100.0f |
| #define | MIX(x, y, a) (x) * (1 - (a)) + (y) * (a) |
| #define | OFFSET(x) offsetof(TonemapContext, x) |
| #define | FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
Enumerations | |
| enum | TonemapAlgorithm { TONEMAP_NONE, TONEMAP_LINEAR, TONEMAP_GAMMA, TONEMAP_CLIP, TONEMAP_REINHARD, TONEMAP_HABLE, TONEMAP_MOBIUS, TONEMAP_MAX } |
Functions | |
| static int | query_formats (AVFilterContext *ctx) |
| static av_cold int | init (AVFilterContext *ctx) |
| static double | determine_signal_peak (AVFrame *in) |
| static float | hable (float in) |
| static float | mobius (float in, float j, double peak) |
| static void | tonemap (TonemapContext *s, AVFrame *out, const AVFrame *in, const AVPixFmtDescriptor *desc, int x, int y, double peak) |
| static int | filter_frame (AVFilterLink *link, AVFrame *in) |
Variables | |
| static const struct LumaCoefficients | luma_coefficients [AVCOL_SPC_NB] |
| static enum AVPixelFormat | pix_fmts [] |
| static const AVOption | tonemap_options [] |
| static const AVClass | tonemap_class |
| static const AVFilterPad | tonemap_inputs [] |
| static const AVFilterPad | tonemap_outputs [] |
| AVFilter | ff_vf_tonemap |
tonemap algorithms
Definition in file vf_tonemap.c.
| #define REFERENCE_WHITE 100.0f |
Definition at line 42 of file vf_tonemap.c.
Referenced by determine_signal_peak().
Definition at line 161 of file vf_tonemap.c.
Referenced by tonemap().
| #define OFFSET | ( | x | ) | offsetof(TonemapContext, x) |
Definition at line 303 of file vf_tonemap.c.
| #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 304 of file vf_tonemap.c.
| enum TonemapAlgorithm |
| Enumerator | |
|---|---|
| TONEMAP_NONE | |
| TONEMAP_LINEAR | |
| TONEMAP_GAMMA | |
| TONEMAP_CLIP | |
| TONEMAP_REINHARD | |
| TONEMAP_HABLE | |
| TONEMAP_MOBIUS | |
| TONEMAP_MAX | |
Definition at line 44 of file vf_tonemap.c.
|
static |
Definition at line 87 of file vf_tonemap.c.
|
static |
Definition at line 92 of file vf_tonemap.c.
|
static |
Definition at line 117 of file vf_tonemap.c.
Referenced by filter_frame().
|
static |
Definition at line 142 of file vf_tonemap.c.
Referenced by tonemap().
|
static |
Definition at line 148 of file vf_tonemap.c.
Referenced by tonemap().
|
static |
Definition at line 162 of file vf_tonemap.c.
Referenced by filter_frame(), and register_all().
|
static |
Definition at line 226 of file vf_tonemap.c.
|
static |
Definition at line 60 of file vf_tonemap.c.
|
static |
Definition at line 81 of file vf_tonemap.c.
Referenced by query_formats().
|
static |
Definition at line 305 of file vf_tonemap.c.
|
static |
Definition at line 320 of file vf_tonemap.c.
|
static |
Definition at line 328 of file vf_tonemap.c.
|
static |
Definition at line 337 of file vf_tonemap.c.
| AVFilter ff_vf_tonemap |
Definition at line 345 of file vf_tonemap.c.
1.8.6