#[non_exhaustive]pub struct FrameComplexity {
pub frame_index: u32,
pub bits_per_mb: f32,
pub scene_cut: bool,
}Expand description
Per-frame complexity hint produced by first_pass_analyze and
consumed by Vp8TwoPassEncoder. The 0.1.13 release used this as
the carrier for the first-pass → second-pass rate-control hand-off.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frame_index: u32Source-frame index inside the GOP.
bits_per_mb: f32Estimated bits-per-MB for the source frame (the spec-side “intra cost” surrogate; higher = harder to compress).
scene_cut: boolTrue when the first-pass detected a scene cut between this frame and the previous one.
Implementations§
Source§impl FrameComplexity
impl FrameComplexity
Sourcepub fn with_frame_index(self, v: u32) -> Self
pub fn with_frame_index(self, v: u32) -> Self
Set frame_index.
Sourcepub fn with_bits_per_mb(self, v: f32) -> Self
pub fn with_bits_per_mb(self, v: f32) -> Self
Set bits_per_mb.
Sourcepub fn with_scene_cut(self, v: bool) -> Self
pub fn with_scene_cut(self, v: bool) -> Self
Set scene_cut.
Trait Implementations§
Source§impl Clone for FrameComplexity
impl Clone for FrameComplexity
impl Copy for FrameComplexity
Source§impl Debug for FrameComplexity
impl Debug for FrameComplexity
Source§impl Default for FrameComplexity
impl Default for FrameComplexity
Source§impl PartialEq for FrameComplexity
impl PartialEq for FrameComplexity
impl StructuralPartialEq for FrameComplexity
Auto Trait Implementations§
impl Forget for FrameComplexity
impl Freeze for FrameComplexity
impl Move for FrameComplexity
impl RefUnwindSafe for FrameComplexity
impl Send for FrameComplexity
impl Sync for FrameComplexity
impl Unpin for FrameComplexity
impl UnsafeUnpin for FrameComplexity
impl UnwindSafe for FrameComplexity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more