19#ifndef AVUTIL_GAIN_MAP_H
20#define AVUTIL_GAIN_MAP_H
27#define AV_ISO21496_VERSION 0
28#define AV_ISO21496_IDENTIFIER "urn:iso:std:iso:ts:21496:-1"
reference-counted frame API
int av_gain_map_params_validate(const AVGainMapParams *p)
Returns >= 0 if the given AVGainMapParams struct contains valid data; or a negative AVERROR otherwise...
AVGainMapParams * av_gain_map_params_alloc(size_t *size)
Allocate an AVGainMapParams structure and initialize it to default values.
AVGainMapParams * av_gain_map_params_create_side_data(AVFrameSideData ***sd, int *nb_sd)
Allocate and add an AVGainMapParams structure to an existing AVFrameSideData array as AV_FRAME_DATA_G...
int av_gain_map_channels_identical(const AVGainMapParams *p)
Returns 1 if all channels of the gain map have identical parameters, 0 otherwise.
Utilities for rational number calculation.
Structure to hold side data for an AVFrame.
AVRational gain_map_min
log2-domain minimum and maximum gain applied by the map, i.e.
AVRational base_offset
Small constants added before the log-domain math to avoid a singularity at zero.
AVRational gamma
Encoding gamma of the stored map values.
AVRational alternate_offset
Parameters describing how to combine a gain map rendition with its base rendition to recover the alte...
AVRational alternate_hdr_headroom
int version
The version of this gain map struct.
int nb_channels
Must be 1 or 3.
int use_base_color_space
If non-zero, the gain map is applied in the colour space of the base rendition; otherwise in that of ...
AVRational base_hdr_headroom
log2 of the display headroom at which the base rendition is shown unmodified, and at which the map is...
Rational number (pair of numerator and denominator).