#[non_exhaustive]pub struct EncodeStats { /* private fields */ }Expand description
Encode metrics collected during encoding.
Implementations§
Source§impl EncodeStats
impl EncodeStats
Sourcepub fn codestream_size(&self) -> usize
pub fn codestream_size(&self) -> usize
Size of the JXL codestream in bytes (before container wrapping).
Sourcepub fn output_size(&self) -> usize
pub fn output_size(&self) -> usize
Size of the final output in bytes (after container wrapping, if any).
Sourcepub fn mode(&self) -> EncodeMode
pub fn mode(&self) -> EncodeMode
Whether the encode was lossy or lossless.
Sourcepub fn strategy_counts(&self) -> &[u32; 19]
pub fn strategy_counts(&self) -> &[u32; 19]
Per-strategy first-block counts, indexed by raw strategy code (0..19).
Sourcepub fn butteraugli_iters(&self) -> u32
pub fn butteraugli_iters(&self) -> u32
Number of butteraugli quantization loop iterations performed.
Sourcepub fn pixel_domain_loss(&self) -> bool
pub fn pixel_domain_loss(&self) -> bool
Whether pixel-domain loss was enabled.
Trait Implementations§
Source§impl Clone for EncodeStats
impl Clone for EncodeStats
Source§fn clone(&self) -> EncodeStats
fn clone(&self) -> EncodeStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodeStats
impl Debug for EncodeStats
Source§impl Default for EncodeStats
impl Default for EncodeStats
Source§fn default() -> EncodeStats
fn default() -> EncodeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodeStats
impl RefUnwindSafe for EncodeStats
impl Send for EncodeStats
impl Sync for EncodeStats
impl Unpin for EncodeStats
impl UnwindSafe for EncodeStats
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