Struct openjpeg_sys::opj_image[][src]

#[repr(C)]
pub struct opj_image { pub x0: OPJ_UINT32, pub y0: OPJ_UINT32, pub x1: OPJ_UINT32, pub y1: OPJ_UINT32, pub numcomps: OPJ_UINT32, pub color_space: OPJ_COLOR_SPACE, pub comps: *mut opj_image_comp_t, pub icc_profile_buf: *mut OPJ_BYTE, pub icc_profile_len: OPJ_UINT32, }
Expand description

Defines image data and characteristics

Fields

x0: OPJ_UINT32

XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area

y0: OPJ_UINT32

YOsiz: vertical offset from the origin of the reference grid to the top side of the image area

x1: OPJ_UINT32

Xsiz: width of the reference grid

y1: OPJ_UINT32

Ysiz: height of the reference grid

numcomps: OPJ_UINT32

number of components in the image

color_space: OPJ_COLOR_SPACE

color space: sRGB, Greyscale or YUV

comps: *mut opj_image_comp_t

image components

icc_profile_buf: *mut OPJ_BYTE

‘restricted’ ICC profile

icc_profile_len: OPJ_UINT32

size of ICC profile

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

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.