|
FFmpeg
|
#include <stdint.h>#include <stdbool.h>#include <math.h>#include "libavutil/attributes.h"#include "libavutil/common.h"#include "libavutil/csp.h"#include "libavutil/pixfmt.h"Go to the source code of this file.
Data Structures | |
| struct | SwsMatrix3x3 |
| struct | v3u8_t |
| struct | v2u16_t |
| struct | v3u16_t |
Macros | |
| #define | fmixf(a, b, x) ((b) * (x) + (a) * (1 - (x))) |
Enumerations | |
| enum | { PQ_LUT_SIZE = 1024 } |
Functions | |
| static float | smoothstepf (float edge0, float edge1, float x) |
| void | ff_sws_matrix3x3_mul (SwsMatrix3x3 *a, const SwsMatrix3x3 *b) |
| void | ff_sws_matrix3x3_invert (SwsMatrix3x3 *mat) |
| void | ff_sws_matrix3x3_apply (const SwsMatrix3x3 *mat, float vec[3]) |
| SwsMatrix3x3 | ff_sws_ipt_rgb2lms (const AVColorPrimariesDesc *prim) |
| SwsMatrix3x3 | ff_sws_ipt_lms2rgb (const AVColorPrimariesDesc *prim) |
| SwsMatrix3x3 | ff_sws_rgb2xyz (const AVColorPrimariesDesc *prim) |
| SwsMatrix3x3 | ff_sws_xyz2rgb (const AVColorPrimariesDesc *prim) |
| SwsMatrix3x3 | ff_sws_get_adaptation (const AVPrimaryCoefficients *prim, AVWhitepointCoefficients from, AVWhitepointCoefficients to) |
| static float | pq_eotf (float x) |
| static float | pq_oetf (float x) |
| bool | ff_prim_superset (const AVPrimaryCoefficients *a, const AVPrimaryCoefficients *b) |
| Returns true if 'b' is entirely contained in 'a'. More... | |
Variables | |
| static const float | PQ_M1 = 2610./4096 * 1./4 |
| static const float | PQ_M2 = 2523./4096 * 128 |
| static const float | PQ_C1 = 3424./4096 |
| static const float | PQ_C2 = 2413./4096 * 32 |
| static const float | PQ_C3 = 2392./4096 * 32 |
| const float | ff_pq_eotf_lut [PQ_LUT_SIZE+1] |
| anonymous enum |
| Enumerator | |
|---|---|
| PQ_LUT_SIZE | |
Definition at line 87 of file csputils.h.
Definition at line 37 of file csputils.h.
Referenced by perceptual(), and st2094_pick_knee().
| void ff_sws_matrix3x3_mul | ( | SwsMatrix3x3 * | a, |
| const SwsMatrix3x3 * | b | ||
| ) |
Definition at line 26 of file csputils.c.
Referenced by apply_chromatic_adaptation(), ff_sws_get_adaptation(), and ff_sws_ipt_rgb2lms().
| void ff_sws_matrix3x3_invert | ( | SwsMatrix3x3 * | mat | ) |
Definition at line 39 of file csputils.c.
Referenced by ff_sws_ipt_lms2rgb(), ff_sws_rgb2xyz(), and ff_sws_xyz2rgb().
| void ff_sws_matrix3x3_apply | ( | const SwsMatrix3x3 * | mat, |
| float | vec[3] | ||
| ) |
Definition at line 72 of file csputils.c.
Referenced by absolute().
| SwsMatrix3x3 ff_sws_ipt_rgb2lms | ( | const AVColorPrimariesDesc * | prim | ) |
Definition at line 219 of file csputils.c.
Referenced by ff_sws_ipt_lms2rgb(), and gamut_from_colorspace().
| SwsMatrix3x3 ff_sws_ipt_lms2rgb | ( | const AVColorPrimariesDesc * | prim | ) |
Definition at line 239 of file csputils.c.
Referenced by gamut_from_colorspace().
| SwsMatrix3x3 ff_sws_rgb2xyz | ( | const AVColorPrimariesDesc * | prim | ) |
Definition at line 92 of file csputils.c.
Referenced by ff_sws_get_adaptation(), ff_sws_ipt_rgb2lms(), and ff_sws_xyz2rgb().
| SwsMatrix3x3 ff_sws_xyz2rgb | ( | const AVColorPrimariesDesc * | prim | ) |
Definition at line 130 of file csputils.c.
Referenced by ff_sws_get_adaptation().
| SwsMatrix3x3 ff_sws_get_adaptation | ( | const AVPrimaryCoefficients * | prim, |
| AVWhitepointCoefficients | from, | ||
| AVWhitepointCoefficients | to | ||
| ) |
Definition at line 191 of file csputils.c.
Referenced by ff_sws_color_map_generate_dynamic().
Definition at line 90 of file csputils.h.
Definition at line 98 of file csputils.h.
Referenced by gamut_from_colorspace(), and rgb2ipt().
| bool ff_prim_superset | ( | const AVPrimaryCoefficients * | a, |
| const AVPrimaryCoefficients * | b | ||
| ) |
Returns true if 'b' is entirely contained in 'a'.
Useful for figuring out if colorimetric clipping will occur or not.
Definition at line 268 of file csputils.c.
Referenced by ff_sws_color_map_noop().
|
static |
Definition at line 81 of file csputils.h.
Referenced by pq_oetf().
|
static |
Definition at line 82 of file csputils.h.
Referenced by pq_oetf().
|
static |
Definition at line 83 of file csputils.h.
Referenced by pq_oetf().
|
static |
Definition at line 84 of file csputils.h.
Referenced by pq_oetf().
|
static |
Definition at line 85 of file csputils.h.
Referenced by pq_oetf().
| const float ff_pq_eotf_lut[PQ_LUT_SIZE+1] |
Definition at line 275 of file csputils.c.
Referenced by pq_eotf().
1.8.17