#[repr(C)]pub struct AVFilmGrainParams {Show 13 fields
pub type_: u32,
pub seed: u64,
pub codec: AVFilmGrainParams__bindgen_ty_1,
pub width: i32,
pub height: i32,
pub subsampling_x: i32,
pub subsampling_y: i32,
pub color_range: u32,
pub color_primaries: u32,
pub color_trc: u32,
pub color_space: u32,
pub bit_depth_luma: i32,
pub bit_depth_chroma: i32,
}Expand description
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.
@note The struct must be allocated with av_film_grain_params_alloc() and its size is not a part of the public ABI.
Fields§
§type_: u32Specifies the codec for which this structure is valid.
seed: u64Seed to use for the synthesis process, if the codec allows for it.
@note For H.264, this refers to pic_offset as defined in
SMPTE RDD 5-2006.
codec: AVFilmGrainParams__bindgen_ty_1§width: i32Intended display resolution. May be 0 if the codec does not specify any restrictions.
height: i32Intended display resolution. May be 0 if the codec does not specify any restrictions.
subsampling_x: i32Intended subsampling ratio, or 0 for luma-only streams.
subsampling_y: i32Intended subsampling ratio, or 0 for luma-only streams.
color_range: u32Intended video signal characteristics.
color_primaries: u32§color_trc: u32§color_space: u32§bit_depth_luma: i32Intended bit depth, or 0 for unknown/unspecified.
bit_depth_chroma: i32Trait Implementations§
Source§impl Clone for AVFilmGrainParams
impl Clone for AVFilmGrainParams
Source§fn clone(&self) -> AVFilmGrainParams
fn clone(&self) -> AVFilmGrainParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more