Loading...
Searching...
No Matches
csp.h File Reference
libavutil » Mathematics » Colorspace Utility

Colorspace value utility functions for libavutil. More...

`#include "pixfmt.h"`
`#include "rational.h"`

Go to the source code of this file.

## Data Structures

struct | AVLumaCoefficients
| Struct containing luma coefficients to be used for RGB to YUV/YCoCg, or similar calculations. More...
struct | AVCIExy
| Struct containing chromaticity x and y values for the standard CIE 1931 chromaticity definition. More...
struct | AVPrimaryCoefficients
| Struct defining the red, green, and blue primary locations in terms of CIE 1931 chromaticity x and y. More...
struct | AVColorPrimariesDesc
| Struct that contains both white point location and primaries location, providing the complete description of a color gamut. More...

## Typedefs

typedef AVCIExy | AVWhitepointCoefficients
| Struct defining white point location in terms of CIE 1931 chromaticity x and y.
typedef double(* | av_csp_trc_function) (double)
| Function pointer representing a double -> double transfer function that performs either an OETF transfer function, or alternatively an inverse EOTF function (in particular, for SMPTE ST 2084 / PQ).
typedef void(* | av_csp_eotf_function) (double Lw, double Lb, double c[3])
| Function pointer representing an ITU EOTF transfer for a given reference display configuration.

## Functions

const 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.
const AVColorPrimariesDesc * | av_csp_primaries_desc_from_id (enum AVColorPrimaries prm)
| Retrieves a complete gamut description from an enum constant describing the color primaries.
enum AVColorPrimaries | av_csp_primaries_id_from_desc (const AVColorPrimariesDesc *prm)
| Detects which enum AVColorPrimaries constant corresponds to the given complete gamut description.
double | av_csp_approximate_trc_gamma (enum AVColorTransferCharacteristic trc)
| Determine a suitable 'gamma' value to match the supplied AVColorTransferCharacteristic.
double | av_csp_approximate_eotf_gamma (enum AVColorTransferCharacteristic trc)
| Determine a suitable EOTF 'gamma' value to match the supplied AVColorTransferCharacteristic.
av_csp_trc_function | av_csp_trc_func_from_id (enum AVColorTransferCharacteristic trc)
| Determine the function needed to apply the given AVColorTransferCharacteristic to linear input.
av_csp_trc_function | av_csp_trc_func_inv_from_id (enum AVColorTransferCharacteristic trc)
| Returns the mathematical inverse of the corresponding TRC function.
av_csp_eotf_function | av_csp_itu_eotf (enum AVColorTransferCharacteristic trc)
| Returns the ITU EOTF corresponding to a given TRC.
av_csp_eotf_function | av_csp_itu_eotf_inv (enum AVColorTransferCharacteristic trc)
| Returns the mathematical inverse of the corresponding EOTF.

## Detailed Description

Colorspace value utility functions for libavutil.

Author
  Ronald S. Bultje rsbul.nosp@m.tje@.nosp@m.gmail.nosp@m..com
  Leo Izen leo.i.nosp@m.zen@.nosp@m.gmail.nosp@m..com
  Kevin Wheatley kevin.nosp@m..j.w.nosp@m.heatl.nosp@m.ey@g.nosp@m.mail..nosp@m.com

Definition in file csp.h.