#include <stdlib.h>
#include <math.h>
#include "attributes.h"
#include "csp.h"
#include "pixfmt.h"
#include "rational.h"
#define AVR(d) …
static const struct AVLumaCoefficients luma_coefficients[AVCOL_SPC_NB] = …;
const struct AVLumaCoefficients *av_csp_luma_coeffs_from_avcsp(enum AVColorSpace csp)
{ … }
#define WP_D65 …
#define WP_C …
#define WP_DCI …
#define WP_E …
static const AVColorPrimariesDesc color_primaries[AVCOL_PRI_NB] = …;
const AVColorPrimariesDesc *av_csp_primaries_desc_from_id(enum AVColorPrimaries prm)
{ … }
static av_always_inline AVRational abs_sub_q(AVRational r1, AVRational r2)
{ … }
enum AVColorPrimaries av_csp_primaries_id_from_desc(const AVColorPrimariesDesc *prm)
{ … }
static const double approximate_gamma[AVCOL_TRC_NB] = …;
double av_csp_approximate_trc_gamma(enum AVColorTransferCharacteristic trc)
{ … }
#define BT709_alpha …
#define BT709_beta …
static double trc_bt709(double Lc)
{ … }
static double trc_gamma22(double Lc)
{ … }
static double trc_gamma28(double Lc)
{ … }
static double trc_smpte240M(double Lc)
{ … }
static double trc_linear(double Lc)
{ … }
static double trc_log(double Lc)
{ … }
static double trc_log_sqrt(double Lc)
{ … }
static double trc_iec61966_2_4(double Lc)
{ … }
static double trc_bt1361(double Lc)
{ … }
static double trc_iec61966_2_1(double Lc)
{ … }
static double trc_smpte_st2084(double Lc)
{ … }
static double trc_smpte_st428_1(double Lc)
{ … }
static double trc_arib_std_b67(double Lc) { … }
static const av_csp_trc_function trc_funcs[AVCOL_TRC_NB] = …;
av_csp_trc_function av_csp_trc_func_from_id(enum AVColorTransferCharacteristic trc)
{ … }