Struct charls_sys::charls_spiff_header

source ·
#[repr(C)]
pub struct charls_spiff_header { pub profile_id: charls_spiff_profile_id, pub component_count: i32, pub height: u32, pub width: u32, pub color_space: charls_spiff_color_space, pub bits_per_sample: i32, pub compression_type: charls_spiff_compression_type, pub resolution_units: charls_spiff_resolution_units, pub vertical_resolution: u32, pub horizontal_resolution: u32, }
Expand description
Defines the information that can be stored in a SPIFF header as defined in ISO/IEC 10918-3, Annex F The type I.8 is an unsigned 8 bit integer, the type I.32 is an 32 bit unsigned integer in the file header itself. The type is indicated by the symbol “F.” are 4-byte parameters in “fixed point” notation. The 16 most significant bits are essentially the same as a parameter of type I.16 and indicate the integer part of this number. The 16 least significant bits are essentially the same as an I.16 parameter and contain an unsigned integer that, when divided by 65536, represents the fractional part of the fixed point number.

Fields§

§profile_id: charls_spiff_profile_id§component_count: i32§height: u32§width: u32§color_space: charls_spiff_color_space§bits_per_sample: i32§compression_type: charls_spiff_compression_type§resolution_units: charls_spiff_resolution_units§vertical_resolution: u32§horizontal_resolution: u32

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.