Struct jpegxl_sys::JxlPixelFormat [−][src]
Data type for the sample values per channel per pixel for the output buffer for pixels. This is not necessarily the same as the data type encoded in the codestream. The channels are interleaved per pixel. The pixels are organized row by row, left to right, top to bottom. TODO(lode): implement padding / alignment (row stride) TODO(lode): support different channel orders if needed (RGB, BGR, ...)
Fields
num_channels: u32
Amount of channels available in a pixel buffer. 1: single-channel data, e.g. grayscale 2: single-channel + alpha 3: trichromatic, e.g. RGB 4: trichromatic + alpha TODO(lode): this needs finetuning. It is not yet defined how the user chooses output color space. CMYK+alpha needs 5 channels.
data_type: JxlDataType
Data type of each channel.
endianness: JxlEndianness
Whether multi-byte data types are represented in big endian or little endian format. This applies to JXL_TYPE_UINT16, JXL_TYPE_UINT32 and JXL_TYPE_FLOAT.
align: size_t
Align scanlines to a multiple of align bytes, or 0 to require no alignment at all (which has the same effect as value 1)
Trait Implementations
impl Clone for JxlPixelFormat
[src]
fn clone(&self) -> JxlPixelFormat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for JxlPixelFormat
[src]
impl Debug for JxlPixelFormat
[src]
impl NewUninit for JxlPixelFormat
[src]
#[must_use]fn new_uninit() -> MaybeUninit<Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl RefUnwindSafe for JxlPixelFormat
[src]
impl Send for JxlPixelFormat
[src]
impl Sync for JxlPixelFormat
[src]
impl Unpin for JxlPixelFormat
[src]
impl UnwindSafe for JxlPixelFormat
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,