pub struct MemoryEstimate {
pub per_ref_frame: usize,
pub ref_frames: usize,
pub mb_arrays: usize,
pub hpel_cache: usize,
pub scratch: usize,
pub total: usize,
}Expand description
Bytes the encoder holds for a configuration, as a function of width and
height, so a firmware can pick a picture size that fits before it is
flashed. See EncoderConfig::memory_estimate.
Fields§
§per_ref_frame: usizeOne reference picture: three coded-size (MB-aligned) reconstruction planes plus its per-4×4-block motion field.
ref_frames: usizeReference pictures held (num_ref_frames, at least one).
mb_arrays: usizePer-picture coder state: the reconstruction under construction, the non-zero-coefficient maps, per-macroblock mode and cost arrays.
hpel_cache: usizeHalf-pel plane cache, three filtered planes plus a padded copy per
reference — built lazily and only when the search is not
Preset::Fast, so the chip configuration never pays it.
scratch: usizePer-call scratch: the slice bit buffer, the access unit, and the source frames a lookahead, scene-cut detector or AQ probe retains.
total: usizeThe sum.
Trait Implementations§
Source§impl Clone for MemoryEstimate
impl Clone for MemoryEstimate
Source§fn clone(&self) -> MemoryEstimate
fn clone(&self) -> MemoryEstimate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more