pub struct GopStats {
pub gop_index: u64,
pub frame_count: u32,
pub i_frame_count: u32,
pub p_frame_count: u32,
pub b_frame_count: u32,
pub total_bits: u64,
pub target_bits: u64,
pub average_qp: f32,
pub average_complexity: f32,
pub total_complexity: f32,
pub first_frame: u64,
pub last_frame: u64,
/* private fields */
}Expand description
Statistics for a Group of Pictures (GOP).
Fields§
§gop_index: u64GOP index.
frame_count: u32Number of frames in this GOP.
i_frame_count: u32Number of I-frames.
p_frame_count: u32Number of P-frames.
b_frame_count: u32Number of B-frames.
total_bits: u64Total bits for this GOP.
target_bits: u64Target bits for this GOP.
average_qp: f32Average QP across all frames.
average_complexity: f32Average complexity.
total_complexity: f32Total complexity (sum of frame complexities).
first_frame: u64First frame number in this GOP.
last_frame: u64Last frame number in this GOP.
Implementations§
Source§impl GopStats
impl GopStats
Sourcepub fn add_frame(&mut self, stats: FrameStats)
pub fn add_frame(&mut self, stats: FrameStats)
Add frame statistics to this GOP.
Sourcepub fn frames(&self) -> &[FrameStats]
pub fn frames(&self) -> &[FrameStats]
Get frame statistics.
Sourcepub fn bit_accuracy(&self) -> f32
pub fn bit_accuracy(&self) -> f32
Get bit accuracy for this GOP.
Sourcepub fn bits_per_i_frame(&self) -> f64
pub fn bits_per_i_frame(&self) -> f64
Get bits per I-frame.
Sourcepub fn bits_per_p_frame(&self) -> f64
pub fn bits_per_p_frame(&self) -> f64
Get bits per P-frame.
Sourcepub fn bits_per_b_frame(&self) -> f64
pub fn bits_per_b_frame(&self) -> f64
Get bits per B-frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GopStats
impl RefUnwindSafe for GopStats
impl Send for GopStats
impl Sync for GopStats
impl Unpin for GopStats
impl UnsafeUnpin for GopStats
impl UnwindSafe for GopStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more