|
FFmpeg 7.1.2
|
Files | |
| file | csp.h |
| Colorspace value utility functions for libavutil. | |
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 an EOTF transfer inversion. | |
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. | |
| 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. | |
| typedef AVCIExy AVWhitepointCoefficients |
| typedef double(* av_csp_trc_function) (double) |
| 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.
| csp | An enum constant indicating YUV or similar 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.
| prm | An enum constant indicating primaries |
| enum AVColorPrimaries av_csp_primaries_id_from_desc | ( | const AVColorPrimariesDesc * | prm | ) |
Detects which enum AVColorPrimaries constant corresponds to the given complete gamut description.
| prm | A description of the colorspace gamut |
| double av_csp_approximate_trc_gamma | ( | enum AVColorTransferCharacteristic | trc | ) |
Determine a suitable 'gamma' value to match the supplied AVColorTransferCharacteristic.
See Apple Technical Note TN2257 (https://developer.apple.com/library/mac/technotes/tn2257/_index.html)
This function returns the gamma exponent for the OETF. For example, sRGB is approximated by gamma 2.2, not by gamma 0.45455.
| 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.
The function returned should expect a nominal domain and range of [0.0-1.0] values outside of this range maybe valid depending on the chosen characteristic function.