Go to the documentation of this file.
19 #ifndef AVUTIL_FILM_GRAIN_PARAMS_H
20 #define AVUTIL_FILM_GRAIN_PARAMS_H
139 #if FF_API_H274_FILM_GRAIN_VCS
AVColorTransferCharacteristic
Color Transfer Characteristic.
int bit_depth_luma
Intended bit depth, or 0 for unknown/unspecified.
attribute_deprecated enum AVColorRange color_range
Specifies the video signal characteristics.
uint8_t uv_points[2][10][2]
int blending_mode_id
Specifies the blending mode used to blend the simulated film grain with the decoded images.
This structure describes decoded (raw) audio or video data.
AVFilmGrainParams * av_film_grain_params_alloc(size_t *size)
Allocate an AVFilmGrainParams structure and set its fields to default values.
const AVFilmGrainParams * av_film_grain_params_select(const AVFrame *frame)
Select the most appropriate film grain parameters set for the frame, taking into account the frame's ...
enum AVColorSpace color_space
AVColorPrimaries
Chromaticity coordinates of the source primaries.
enum AVColorTransferCharacteristic color_trc
uint64_t seed
Seed to use for the synthesis process, if the codec allows for it.
int grain_scale_shift
Signals the down shift applied to the generated gaussian numbers during synthesis.
attribute_deprecated int bit_depth_chroma
Specifies the bit depth used for the chroma components.
int limit_output_range
Signals to clip to limited color levels after film grain application.
int num_y_points
Number of points, and the scale and value for each point of the piecewise linear scaling function for...
This structure describes how to handle film grain synthesis for AOM codecs.
uint8_t intensity_interval_upper_bound[3][256]
Specifies the upper bound of each intensity interval for which the set of model values applies for th...
AVFilmGrainParams * av_film_grain_params_create_side_data(AVFrame *frame)
Allocate a complete AVFilmGrainParams and add it to the frame.
int width
Intended display resolution.
int16_t comp_model_value[3][256][6]
Specifies the model values for the component for each intensity interval.
@ AV_FILM_GRAIN_PARAMS_NONE
int model_id
Specifies the film grain simulation mode.
attribute_deprecated enum AVColorTransferCharacteristic color_trc
int subsampling_x
Intended subsampling ratio, or 0 for luma-only streams.
int num_uv_points[2]
If chroma_scaling_from_luma is set to 0, signals the chroma scaling function parameters.
attribute_deprecated enum AVColorPrimaries color_primaries
int component_model_present[3]
Indicates if the modelling of film grain for a given component is present.
This structure describes how to handle film grain synthesis in video for specific codecs.
union AVFilmGrainParams::@357 codec
Additional fields may be added both here and in any structure included.
#define attribute_deprecated
AVFilmGrainH274Params h274
int8_t ar_coeffs_y[24]
Luma auto-regression coefficients.
enum AVColorPrimaries color_primaries
This structure describes how to handle film grain synthesis for codecs using the ITU-T H....
uint16_t num_intensity_intervals[3]
Specifies the number of intensity intervals for which a specific set of model values has been estimat...
AVColorSpace
YUV colorspace type.
int scaling_shift
Specifies the shift applied to the chroma components.
uint8_t intensity_interval_lower_bound[3][256]
Specifies the lower ounds of each intensity interval for whichthe set of model values applies for the...
attribute_deprecated enum AVColorSpace color_space
int ar_coeff_lag
Specifies the auto-regression lag.
@ AV_FILM_GRAIN_PARAMS_H274
The union is valid when interpreted as AVFilmGrainH274Params (codec.h274)
int uv_offset[2]
Offset used for component scaling function.
int log2_scale_factor
Specifies a scale factor used in the film grain characterization equations.
int uv_mult[2]
Specifies the luma/chroma multipliers for the index to the component scaling function.
attribute_deprecated int bit_depth_luma
TODO: On this ABI bump, please also re-order the fields in AVFilmGrainParams (see below)
uint8_t num_model_values[3]
Specifies the number of model values present for each intensity interval in which the film grain has ...
enum AVColorRange color_range
Intended video signal characteristics.
int overlap_flag
Signals whether to overlap film grain blocks.
int chroma_scaling_from_luma
Signals whether to derive the chroma scaling function from the luma.
AVColorRange
Visual content value range.
@ AV_FILM_GRAIN_PARAMS_AV1
The union is valid when interpreted as AVFilmGrainAOMParams (codec.aom)
enum AVFilmGrainParamsType type
Specifies the codec for which this structure is valid.
int ar_coeff_shift
Specifies the range of the auto-regressive coefficients.
int8_t ar_coeffs_uv[2][25]
Chroma auto-regression coefficients.