#[repr(C)]
pub struct JxlLayerInfo { pub have_crop: c_int, pub crop_x0: i32, pub crop_y0: i32, pub xsize: u32, pub ysize: u32, pub blend_info: JxlBlendInfo, pub save_as_reference: u32, }
Expand description

The information about layers. When decoding, if coalescing is enabled (default), this can be ignored. When encoding, these settings apply to the pixel data given to the encoder, the encoder could choose an internal representation that differs.

Fields

have_crop: c_int

Whether cropping is applied for this frame. When decoding, if false, crop_x0 and crop_y0 are set to zero, and xsize and ysize to the main image dimensions. When encoding and this is false, those fields are ignored. When decoding, if coalescing is enabled (default), this is always false, regardless of the internal encoding in the JPEG XL codestream.

crop_x0: i32

Horizontal offset of the frame (can be negative).

crop_y0: i32

Vertical offset of the frame (can be negative).

xsize: u32

Width of the frame (number of columns).

ysize: u32

Height of the frame (number of rows).

blend_info: JxlBlendInfo

The blending info for the color channels. Blending info for extra channels has to be retrieved separately using JxlDecoderGetExtraChannelBlendInfo.

save_as_reference: u32

After blending, save the frame as reference frame with this ID (0-3). Special case: if the frame duration is nonzero, ID 0 means “will not be referenced in the future”. This value is not used for the last frame.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.