pub struct FrameEncoderOptions {
pub use_modular: bool,
pub effort: u8,
pub use_ans: bool,
pub use_tree_learning: bool,
pub use_squeeze: bool,
pub have_animation: bool,
pub duration: u32,
pub is_last: bool,
pub crop: Option<FrameCrop>,
}Expand description
Options for frame encoding.
Fields§
§use_modular: boolUse modular mode (lossless).
effort: u8Effort level (1-10, higher = better compression, slower).
use_ans: boolUse ANS entropy coding instead of Huffman for modular.
use_tree_learning: boolUse content-adaptive MA tree learning for modular encoding.
use_squeeze: boolUse squeeze (Haar wavelet) transform for modular encoding.
have_animation: boolWhether this frame is part of an animation (enables duration field in header).
duration: u32Duration of this frame in ticks (only used when have_animation is true).
is_last: boolWhether this is the last frame in the image/animation.
crop: Option<FrameCrop>Optional crop rectangle for this frame (None = full frame).
Trait Implementations§
Source§impl Clone for FrameEncoderOptions
impl Clone for FrameEncoderOptions
Source§fn clone(&self) -> FrameEncoderOptions
fn clone(&self) -> FrameEncoderOptions
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 FrameEncoderOptions
impl Debug for FrameEncoderOptions
Auto Trait Implementations§
impl Freeze for FrameEncoderOptions
impl RefUnwindSafe for FrameEncoderOptions
impl Send for FrameEncoderOptions
impl Sync for FrameEncoderOptions
impl Unpin for FrameEncoderOptions
impl UnwindSafe for FrameEncoderOptions
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