[][src]Struct openjpeg2_sys::opj_image_comp

#[repr(C)]
pub struct opj_image_comp {
    pub dx: OPJ_UINT32,
    pub dy: OPJ_UINT32,
    pub w: OPJ_UINT32,
    pub h: OPJ_UINT32,
    pub x0: OPJ_UINT32,
    pub y0: OPJ_UINT32,
    pub prec: OPJ_UINT32,
    pub bpp: OPJ_UINT32,
    pub sgnd: OPJ_UINT32,
    pub resno_decoded: OPJ_UINT32,
    pub factor: OPJ_UINT32,
    pub data: *mut OPJ_INT32,
    pub alpha: OPJ_UINT16,
}

Defines a single image component

Fields

dx: OPJ_UINT32

XRsiz: horizontal separation of a sample of ith component with respect to the reference grid

dy: OPJ_UINT32

YRsiz: vertical separation of a sample of ith component with respect to the reference grid

w: OPJ_UINT32

data width

h: OPJ_UINT32

data height

x0: OPJ_UINT32

x component offset compared to the whole image

y0: OPJ_UINT32

y component offset compared to the whole image

prec: OPJ_UINT32

precision

bpp: OPJ_UINT32

image depth in bits

sgnd: OPJ_UINT32

signed (1) / unsigned (0)

resno_decoded: OPJ_UINT32

number of decoded resolution

factor: OPJ_UINT32

number of division by 2 of the out image compared to the original size of image

data: *mut OPJ_INT32

image component data

alpha: OPJ_UINT16

alpha channel

Trait Implementations

impl Clone for opj_image_comp[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for opj_image_comp[src]

impl Debug for opj_image_comp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]