pub struct EncodingConfig {
pub encoding_type: EncodingType,
pub quality: f32,
pub method: usize,
}
Expand description
Encoding configuration. Can be set for Encoder
globally or per frame
Set globally as part of EncoderOptions
when using Encoder::new_with_options
,
or per frame through Encoder::add_frame_with_config
Fields§
§encoding_type: EncodingType
Encoding Type (lossless or lossy). Defaults to lossless
quality: f32
Between 0 and 100. For lossy, 0 gives the smallest size and 100 the largest. For lossless, this parameter is the amount of effort put into the compression: 0 is the fastest but gives larger files compared to the slowest, but best, 100.
method: usize
Quality/speed trade-off (0=fast, 6=slower-better)
Implementations§
Trait Implementations§
Source§impl Clone for EncodingConfig
impl Clone for EncodingConfig
Source§fn clone(&self) -> EncodingConfig
fn clone(&self) -> EncodingConfig
Returns a copy 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 EncodingConfig
impl Debug for EncodingConfig
Auto Trait Implementations§
impl Freeze for EncodingConfig
impl RefUnwindSafe for EncodingConfig
impl Send for EncodingConfig
impl Sync for EncodingConfig
impl Unpin for EncodingConfig
impl UnwindSafe for EncodingConfig
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