Struct kagamijxl::Decoder[][src]

pub struct Decoder {
    pub keep_orientation: Option<bool>,
    pub need_color_profile: bool,
    pub need_optional_preview: bool,
    pub no_full_frame: bool,
    pub no_full_image: bool,
    pub stop_on_frame: bool,
    pub allow_partial: bool,
}

Fields

keep_orientation: Option<bool>need_color_profile: bool

Reads color profile into DecodeProgres::color_profile when set to true

need_optional_preview: bool

Tries reading preview image into DecodeProgress::preview when set to true

no_full_frame: bool

Prevents reading frames at all when set to true, which means the length of DecodeProgress::frames becomes 0

no_full_image: bool

Reads frame header without pixels when set to true

stop_on_frame: bool

Specify if you want to stop on the first frame decode

allow_partial: bool

Specify when partial input is expected

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.