pub struct FrameEncoderOptions {Show 15 fields
pub use_modular: bool,
pub effort: u8,
pub use_ans: bool,
pub use_tree_learning: bool,
pub use_squeeze: bool,
pub enable_lz77: bool,
pub lz77_method: Lz77Method,
pub lossy_palette: bool,
pub encoder_mode: EncoderMode,
pub profile: EffortProfile,
pub have_animation: bool,
pub duration: u32,
pub is_last: bool,
pub crop: Option<FrameCrop>,
pub skip_rct: bool,
}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.
enable_lz77: boolEnable LZ77 compression on modular token streams.
lz77_method: Lz77MethodLZ77 method to use when enable_lz77 is true.
lossy_palette: boolUse lossy delta palette for near-lossless modular encoding.
encoder_mode: EncoderModeEncoder mode: Reference (match libjxl) or Experimental (own improvements).
profile: EffortProfileEffort profile with all effort-derived parameters.
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).
skip_rct: boolSkip RCT even for 3-channel images (e.g., XYB channels already decorrelated).
Trait Implementations§
Source§impl Clone for FrameEncoderOptions
impl Clone for FrameEncoderOptions
Source§fn clone(&self) -> FrameEncoderOptions
fn clone(&self) -> FrameEncoderOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more