#[non_exhaustive]pub struct AvifDecoderOptions {
pub tone_mapped: bool,
pub reference_white: f64,
pub threads: u32,
pub max_width: u32,
pub max_height: u32,
pub max_pixels: u32,
pub max_bytes: u32,
pub strict: bool,
pub layer: i32,
}Expand description
The registry decoder’s option schema (see
AvifDecoder::with_params), parsed strictly through
oxideav_core::parse_options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tone_mapped: boolgain_map=apply (tone_mapped): the tmap alternative of the
primary with its gain map applied; default false = the base.
reference_white: f64reference_white in cd/m² (default 203).
threads: u32threads: the AV1 worker budget; 0 (default) follows the
execution context.
max_width: u32max_width (0 = unlimited; default 16384).
max_height: u32max_height (0 = unlimited; default 16384).
max_pixels: u32max_pixels (0 = unlimited; default 1 << 28).
max_bytes: u32max_bytes (0 = unlimited; default 1 << 30).
strict: boolstrict conformance (default false).
layer: i32layer: the spatial layer to render (-1 = the file’s lsel).
Implementations§
Source§impl AvifDecoderOptions
impl AvifDecoderOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
The defaults (the DecodeOptions defaults, serial, the
file’s lsel).
Sourcepub fn apply_to(&self, o: DecodeOptions) -> DecodeOptions
pub fn apply_to(&self, o: DecodeOptions) -> DecodeOptions
Fold these options into a DecodeOptions (every field set).
Trait Implementations§
Source§impl Clone for AvifDecoderOptions
impl Clone for AvifDecoderOptions
Source§impl CodecOptionsStruct for AvifDecoderOptions
impl CodecOptionsStruct for AvifDecoderOptions
Source§const SCHEMA: &'static [OptionField]
const SCHEMA: &'static [OptionField]
Static schema listing every option key this struct consumes,
with its declared kind, default, and help text.
Source§fn apply(&mut self, key: &str, value: &OptionValue) -> Result<()>
fn apply(&mut self, key: &str, value: &OptionValue) -> Result<()>
Write one coerced value into the struct.
key is guaranteed to
be present in SCHEMA and value to match the
declared OptionKind when called via parse_options.impl Copy for AvifDecoderOptions
Source§impl Debug for AvifDecoderOptions
impl Debug for AvifDecoderOptions
Source§impl Default for AvifDecoderOptions
impl Default for AvifDecoderOptions
Source§impl PartialEq for AvifDecoderOptions
impl PartialEq for AvifDecoderOptions
impl StructuralPartialEq for AvifDecoderOptions
Auto Trait Implementations§
impl Freeze for AvifDecoderOptions
impl RefUnwindSafe for AvifDecoderOptions
impl Send for AvifDecoderOptions
impl Sync for AvifDecoderOptions
impl Unpin for AvifDecoderOptions
impl UnsafeUnpin for AvifDecoderOptions
impl UnwindSafe for AvifDecoderOptions
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