FFmpeg
|
This structure describes how to handle film grain synthesis in video for specific codecs. More...
#include <film_grain_params.h>
Data Fields | |
enum AVFilmGrainParamsType | type |
Specifies the codec for which this structure is valid. More... | |
uint64_t | seed |
Seed to use for the synthesis process, if the codec allows for it. More... | |
union { | |
AVFilmGrainAOMParams aom | |
AVFilmGrainH274Params h274 | |
} | codec |
Additional fields may be added both here and in any structure included. More... | |
int | width |
Intended display resolution. More... | |
int | height |
int | subsampling_x |
Intended subsampling ratio, or 0 for luma-only streams. More... | |
int | subsampling_y |
enum AVColorRange | color_range |
Intended video signal characteristics. More... | |
enum AVColorPrimaries | color_primaries |
enum AVColorTransferCharacteristic | color_trc |
enum AVColorSpace | color_space |
int | bit_depth_luma |
Intended bit depth, or 0 for unknown/unspecified. More... | |
int | bit_depth_chroma |
This structure describes how to handle film grain synthesis in video for specific codecs.
Must be present on every frame where film grain is meant to be synthesised for correct presentation.
Definition at line 238 of file film_grain_params.h.
enum AVFilmGrainParamsType AVFilmGrainParams::type |
Specifies the codec for which this structure is valid.
Definition at line 242 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_apply_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), ff_h274_apply_film_grain(), hevc_frame_end(), libdav1d_receive_frame(), and print_film_grain_params().
uint64_t AVFilmGrainParams::seed |
Seed to use for the synthesis process, if the codec allows for it.
pic_offset
as defined in SMPTE RDD 5-2006. Definition at line 250 of file film_grain_params.h.
Referenced by export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), ff_h274_apply_film_grain(), libdav1d_receive_frame(), and print_film_grain_params().
AVFilmGrainAOMParams AVFilmGrainParams::aom |
Definition at line 260 of file film_grain_params.h.
Referenced by export_film_grain(), ff_aom_apply_film_grain(), ff_aom_parse_film_grain_sets(), libdav1d_receive_frame(), and print_film_grain_params().
AVFilmGrainH274Params AVFilmGrainParams::h274 |
Definition at line 261 of file film_grain_params.h.
Referenced by ff_h2645_sei_to_frame(), ff_h274_apply_film_grain(), and print_film_grain_params().
union { ... } AVFilmGrainParams::codec |
Additional fields may be added both here and in any structure included.
If a codec's film grain structure differs slightly over another codec's, fields within may change meaning depending on the type.
TODO: Move this to the end of the structure, at the next ABI bump.
Referenced by export_film_grain(), ff_aom_apply_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), ff_h274_apply_film_grain(), libdav1d_receive_frame(), and print_film_grain_params().
int AVFilmGrainParams::width |
Intended display resolution.
May be 0 if the codec does not specify any restrictions.
Definition at line 269 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
int AVFilmGrainParams::height |
Definition at line 269 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
int AVFilmGrainParams::subsampling_x |
Intended subsampling ratio, or 0 for luma-only streams.
Definition at line 274 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
int AVFilmGrainParams::subsampling_y |
Definition at line 274 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
enum AVColorRange AVFilmGrainParams::color_range |
Intended video signal characteristics.
Definition at line 279 of file film_grain_params.h.
Referenced by av_film_grain_params_create_side_data(), av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
enum AVColorPrimaries AVFilmGrainParams::color_primaries |
Definition at line 280 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
enum AVColorTransferCharacteristic AVFilmGrainParams::color_trc |
Definition at line 281 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
enum AVColorSpace AVFilmGrainParams::color_space |
Definition at line 282 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), export_film_grain(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), libdav1d_receive_frame(), and print_film_grain_params().
int AVFilmGrainParams::bit_depth_luma |
Intended bit depth, or 0 for unknown/unspecified.
Definition at line 287 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), and print_film_grain_params().
int AVFilmGrainParams::bit_depth_chroma |
Definition at line 288 of file film_grain_params.h.
Referenced by av_film_grain_params_select(), ff_aom_parse_film_grain_sets(), ff_h2645_sei_to_frame(), and print_film_grain_params().