Skip to main content

AddSubBlockInfoInterop

Struct AddSubBlockInfoInterop 

Source
#[repr(C, packed(4))]
pub struct AddSubBlockInfoInterop {
Show 18 fields pub coordinate: CoordinateInterop, pub m_index_valid: c_uchar, pub m_index: c_int, pub x: c_int, pub y: c_int, pub logical_width: c_int, pub logical_height: c_int, pub physical_width: c_int, pub physical_height: c_int, pub pixel_type: c_int, pub compression_mode_raw: c_int, pub size_data: c_uint, pub data: *const c_void, pub stride: c_uint, pub size_metadata: c_uint, pub metadata: *const c_void, pub size_attachment: c_uint, pub attachment: *const c_void,
}
Expand description

This structure is used to pass the subblock information to libCZIAPI, describing a subblock to be added to a CZI-file.

Fields§

§coordinate: CoordinateInterop

< The subblock’s coordinate.

§m_index_valid: c_uchar

< Whether the field ‘mIndex’ is valid;

§m_index: c_int

< The M-index of the subblock.

§x: c_int

< The x-coordinate of the subblock.

§y: c_int

< The y-coordinate of the subblock.

§logical_width: c_int

< The logical with of the subblock (in pixels).

§logical_height: c_int

< The logical height of the subblock (in pixels).

§physical_width: c_int

< The physical with of the subblock (in pixels).

§physical_height: c_int

< The physical height of the subblock (in pixels).

§pixel_type: c_int

< The pixel type of the subblock.

§compression_mode_raw: c_int

The compression-mode (applying to the subblock-data). If using a compressed format, the data passed in must be already compressed - the writer does not perform the compression.

§size_data: c_uint

< The size of the subblock’s data in bytes.

§data: *const c_void

< Pointer to the data to be put into the subblock.

§stride: c_uint

If the compression mode is set to ‘Uncompressed’, then this is valid and the stride of the bitmap. In this case, the line-size of the bitmap is determined by the pixel-type and the physical_width. And size_data must be large enough to hold the bitmap-data, and is validated. In other cases (compression-mode is not ‘Uncompressed’), this field is ignored.

§size_metadata: c_uint

< The size of the subblock-metadata in bytes. If this is 0, then ptrSbBlkMetadata is not used (and no sub-block-metadata written).

§metadata: *const c_void

< Pointer to the subblock-metadata.

§size_attachment: c_uint

< The size of the subblock-attachment in bytes. If this is 0, then attachment is not used (and no sub-block-metadata written).

§attachment: *const c_void

< Pointer to the subblock-attachment.

Trait Implementations§

Source§

impl Clone for AddSubBlockInfoInterop

Source§

fn clone(&self) -> AddSubBlockInfoInterop

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AddSubBlockInfoInterop

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for AddSubBlockInfoInterop

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

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>,

Source§

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.