Struct WebPAuxStats

Source
#[repr(C)]
pub struct WebPAuxStats {
Show 19 fields pub coded_size: c_int, pub PSNR: [c_float; 5], pub block_count: [c_int; 3], pub header_bytes: [c_int; 2], pub residual_bytes: [[c_int; 4]; 3], pub segment_size: [c_int; 4], pub segment_quant: [c_int; 4], pub segment_level: [c_int; 4], pub alpha_data_size: c_int, pub layer_data_size: c_int, pub lossless_features: u32, pub histogram_bits: c_int, pub transform_bits: c_int, pub cache_bits: c_int, pub palette_size: c_int, pub lossless_size: c_int, pub lossless_hdr_size: c_int, pub lossless_data_size: c_int, pub cross_color_transform_bits: c_int, /* private fields */
}
Expand description

Structure for storing auxiliary statistics.

Fields§

§coded_size: c_int

final size

§PSNR: [c_float; 5]

peak-signal-to-noise ratio for Y/U/V/All/Alpha

§block_count: [c_int; 3]

number of intra4/intra16/skipped macroblocks

§header_bytes: [c_int; 2]

approximate number of bytes spent for header and mode-partition #0

§residual_bytes: [[c_int; 4]; 3]

approximate number of bytes spent for DC/AC/uv coefficients for each (0..3) segments.

§segment_size: [c_int; 4]

number of macroblocks in each segments

§segment_quant: [c_int; 4]

quantizer values for each segments

§segment_level: [c_int; 4]

filtering strength for each segments [0..63]

§alpha_data_size: c_int

size of the transparency data

§layer_data_size: c_int

size of the enhancement layer data

§lossless_features: u32

bit0:predictor bit1:cross-color transform bit2:subtract-green bit3:color indexing

§histogram_bits: c_int

number of precision bits of histogram

§transform_bits: c_int

precision bits for predictor transform

§cache_bits: c_int

number of bits for color cache lookup

§palette_size: c_int

number of color in palette, if used

§lossless_size: c_int

final lossless size

§lossless_hdr_size: c_int
Available on crate feature 0_5 only.

lossless header (transform, huffman etc) size

§lossless_data_size: c_int
Available on crate feature 0_5 only.

lossless image data size

§cross_color_transform_bits: c_int
Available on crate feature 1_5 only.

precision bits for cross-color transform

Trait Implementations§

Source§

impl Clone for WebPAuxStats

Source§

fn clone(&self) -> WebPAuxStats

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WebPAuxStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for WebPAuxStats

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.