FFmpeg
Data Structures | Macros | Functions
colorspace.h File Reference
#include "libavutil/common.h"
#include "libavutil/frame.h"

Go to the source code of this file.

Data Structures

struct  LumaCoefficients
 
struct  PrimaryCoefficients
 
struct  WhitepointCoefficients
 

Macros

#define REFERENCE_WHITE   100.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 LumaCoefficientsff_get_luma_coefficients (enum AVColorSpace csp)
 
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)
 

Macro Definition Documentation

#define REFERENCE_WHITE   100.0f

Function Documentation

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] 
)

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(), and tonemap_opencl_init().

void ff_fill_rgb2yuv_table ( const struct LumaCoefficients coeffs,
double  rgb2yuv[3][3] 
)

Definition at line 141 of file colorspace.c.

Referenced by create_filtergraph(), and tonemap_opencl_init().

double ff_determine_signal_peak ( AVFrame in)

Definition at line 168 of file colorspace.c.

Referenced by filter_frame(), and tonemap_opencl_filter_frame().

void ff_update_hdr_metadata ( AVFrame in,
double  peak 
)

Definition at line 193 of file colorspace.c.

Referenced by filter_frame(), and tonemap_opencl_filter_frame().