pub struct CodecProfile {
pub name: String,
pub compression_ratio: f32,
pub bits_per_element: f32,
pub quality_target: f32,
}Expand description
A codec profile defines compression parameters and behavior.
Fields§
§name: StringProfile name (e.g., “fast”, “balanced”, “high_compression”)
compression_ratio: f32Compression ratio target
bits_per_element: f32Bits per element
quality_target: f32Quality target (0.0 to 1.0)
Implementations§
Source§impl CodecProfile
impl CodecProfile
pub fn balanced() -> Self
pub fn high_compression() -> Self
Sourcepub fn standard_profiles() -> Vec<Self>
pub fn standard_profiles() -> Vec<Self>
All standard profiles for admissibility testing.
Trait Implementations§
Source§impl Clone for CodecProfile
impl Clone for CodecProfile
Source§fn clone(&self) -> CodecProfile
fn clone(&self) -> CodecProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodecProfile
impl Debug for CodecProfile
Source§impl<'de> Deserialize<'de> for CodecProfile
impl<'de> Deserialize<'de> for CodecProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CodecProfile
impl PartialEq for CodecProfile
Source§fn eq(&self, other: &CodecProfile) -> bool
fn eq(&self, other: &CodecProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodecProfile
impl Serialize for CodecProfile
impl StructuralPartialEq for CodecProfile
Auto Trait Implementations§
impl Freeze for CodecProfile
impl RefUnwindSafe for CodecProfile
impl Send for CodecProfile
impl Sync for CodecProfile
impl Unpin for CodecProfile
impl UnsafeUnpin for CodecProfile
impl UnwindSafe for CodecProfile
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