FFmpeg
|
#include "libavutil/frame.h"
#include "libavutil/mastering_display_metadata.h"
#include "libavutil/pixdesc.h"
#include "colorspace.h"
Go to the source code of this file.
Macros | |
#define | WP_D65 { 0.3127, 0.3290 } |
#define | WP_C { 0.3100, 0.3160 } |
#define | WP_DCI { 0.3140, 0.3510 } |
#define | WP_E { 1/3.0f, 1/3.0f } |
Functions | |
void | ff_matrix_invert_3x3 (const double in[3][3], double out[3][3]) |
void | ff_matrix_mul_3x3 (double dst[3][3], const double src1[3][3], const double src2[3][3]) |
void | ff_fill_rgb2xyz_table (const struct PrimaryCoefficients *coeffs, const struct WhitepointCoefficients *wp, double rgb2xyz[3][3]) |
const struct LumaCoefficients * | ff_get_luma_coefficients (enum AVColorSpace csp) |
const struct ColorPrimaries * | ff_get_color_primaries (enum AVColorPrimaries prm) |
enum AVColorPrimaries | ff_detect_color_primaries (const struct ColorPrimaries *prm) |
void | ff_fill_rgb2yuv_table (const struct LumaCoefficients *coeffs, double rgb2yuv[3][3]) |
double | ff_determine_signal_peak (AVFrame *in) |
void | ff_update_hdr_metadata (AVFrame *in, double peak) |
Variables | |
static const double | ycgco_matrix [3][3] |
static const double | gbr_matrix [3][3] |
static const struct LumaCoefficients | luma_coefficients [AVCOL_SPC_NB] |
static const struct ColorPrimaries | color_primaries [AVCOL_PRI_NB] |
#define WP_D65 { 0.3127, 0.3290 } |
Definition at line 141 of file colorspace.c.
#define WP_C { 0.3100, 0.3160 } |
Definition at line 142 of file colorspace.c.
#define WP_DCI { 0.3140, 0.3510 } |
Definition at line 143 of file colorspace.c.
#define WP_E { 1/3.0f, 1/3.0f } |
Definition at line 144 of file colorspace.c.
Definition at line 27 of file colorspace.c.
Referenced by create_filtergraph(), ff_fill_rgb2xyz_table(), fill_whitepoint_conv_table(), get_rgb2rgb_matrix(), and tonemap_opencl_init().
Definition at line 54 of file colorspace.c.
Referenced by create_filtergraph(), fill_whitepoint_conv_table(), and get_rgb2rgb_matrix().
void ff_fill_rgb2xyz_table | ( | const struct PrimaryCoefficients * | coeffs, |
const struct WhitepointCoefficients * | wp, | ||
double | rgb2xyz[3][3] | ||
) |
Definition at line 68 of file colorspace.c.
Referenced by create_filtergraph(), and get_rgb2rgb_matrix().
const struct LumaCoefficients* ff_get_luma_coefficients | ( | enum AVColorSpace | csp | ) |
Definition at line 128 of file colorspace.c.
Referenced by create_filtergraph(), init_filter(), and tonemap_opencl_init().
const struct ColorPrimaries* ff_get_color_primaries | ( | enum AVColorPrimaries | prm | ) |
Definition at line 160 of file colorspace.c.
Referenced by create_filtergraph(), and ff_icc_profile_generate().
enum AVColorPrimaries ff_detect_color_primaries | ( | const struct ColorPrimaries * | prm | ) |
Definition at line 173 of file colorspace.c.
Referenced by iccdetect_filter_frame().
void ff_fill_rgb2yuv_table | ( | const struct LumaCoefficients * | coeffs, |
double | rgb2yuv[3][3] | ||
) |
Definition at line 198 of file colorspace.c.
Referenced by create_filtergraph(), init_filter(), and tonemap_opencl_init().
Definition at line 225 of file colorspace.c.
Referenced by filter_frame(), and tonemap_opencl_filter_frame().
Definition at line 250 of file colorspace.c.
Referenced by filter_frame(), and tonemap_opencl_filter_frame().
|
static |
Definition at line 96 of file colorspace.c.
Referenced by ff_fill_rgb2yuv_table().
|
static |
Definition at line 103 of file colorspace.c.
Referenced by ff_fill_rgb2yuv_table().
|
static |
Definition at line 116 of file colorspace.c.
Referenced by ff_get_luma_coefficients().
|
static |
Definition at line 146 of file colorspace.c.
Referenced by color_config(), convert_primaries(), ff_detect_color_primaries(), ff_get_color_primaries(), mov_read_colr(), mov_read_vpcc(), print_primaries(), scale_vaapi_init(), and tonemap_vaapi_init().