FFmpeg
|
#include <stdlib.h>
#include "attributes.h"
#include "csp.h"
#include "pixfmt.h"
#include "rational.h"
Go to the source code of this file.
Macros | |
#define | AVR(d) { (int)(d * 100000 + 0.5), 100000 } |
#define | WP_D65 { AVR(0.3127), AVR(0.3290) } |
#define | WP_C { AVR(0.3100), AVR(0.3160) } |
#define | WP_DCI { AVR(0.3140), AVR(0.3510) } |
#define | WP_E { {1, 3}, {1, 3} } |
Functions | |
const struct AVLumaCoefficients * | av_csp_luma_coeffs_from_avcsp (enum AVColorSpace csp) |
Retrieves the Luma coefficients necessary to construct a conversion matrix from an enum constant describing the colorspace. More... | |
const AVColorPrimariesDesc * | av_csp_primaries_desc_from_id (enum AVColorPrimaries prm) |
Retrieves a complete gamut description from an enum constant describing the color primaries. More... | |
static av_always_inline AVRational | abs_sub_q (AVRational r1, AVRational r2) |
enum AVColorPrimaries | av_csp_primaries_id_from_desc (const AVColorPrimariesDesc *prm) |
Detects which enum AVColorPrimaries constant corresponds to the given complete gamut description. More... | |
Variables | |
static const struct AVLumaCoefficients | luma_coefficients [AVCOL_SPC_NB] |
static const AVColorPrimariesDesc | color_primaries [AVCOL_PRI_NB] |
|
static |
Definition at line 98 of file csp.c.
Referenced by av_csp_primaries_id_from_desc().
|
static |
Definition at line 41 of file csp.c.
Referenced by av_csp_luma_coeffs_from_avcsp().
|
static |
Definition at line 71 of file csp.c.
Referenced by av_csp_primaries_desc_from_id(), av_csp_primaries_id_from_desc(), color_config(), convert_primaries(), mov_read_colr(), mov_read_vpcc(), print_primaries(), scale_vaapi_init(), and tonemap_vaapi_init().