Go to the documentation of this file.
25 #ifndef AVCODEC_FFLCMS2_H
26 #define AVCODEC_FFLCMS2_H
58 cmsHPROFILE *out_profile);
AVColorTransferCharacteristic
Color Transfer Characteristic.
Struct that contains both white point location and primaries location, providing the complete descrip...
int ff_icc_profile_sanitize(FFIccContext *s, cmsHPROFILE profile)
Sanitize an ICC profile to try and fix badly broken values.
This structure describes decoded (raw) audio or video data.
@ AVCOL_TRC_NB
Not part of ABI.
AVColorPrimaries
Chromaticity coordinates of the source primaries.
int ff_icc_context_init(FFIccContext *s, void *avctx)
Initializes an FFIccContext.
int ff_icc_profile_attach(FFIccContext *s, cmsHPROFILE profile, AVFrame *frame)
Attach an ICC profile to a frame.
cmsToneCurve * curves[AVCOL_TRC_NB]
void ff_icc_context_uninit(FFIccContext *s)
int ff_icc_profile_detect_transfer(FFIccContext *s, cmsHPROFILE profile, enum AVColorTransferCharacteristic *out_trc)
Attempt detecting the transfer characteristic that best approximates the transfer function encoded by...
int ff_icc_profile_generate(FFIccContext *s, enum AVColorPrimaries color_prim, enum AVColorTransferCharacteristic color_trc, cmsHPROFILE *out_profile)
Generate an ICC profile for a given combination of color primaries and transfer function.
int ff_icc_profile_read_primaries(FFIccContext *s, cmsHPROFILE profile, AVColorPrimariesDesc *out_primaries)
Read the color primaries and white point coefficients encoded by an ICC profile, and return the raw v...