Struct openjpeg_sys::opj_image
source · #[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§
Auto Trait Implementations§
impl Freeze for opj_image
impl RefUnwindSafe for opj_image
impl !Send for opj_image
impl !Sync for opj_image
impl Unpin for opj_image
impl UnwindSafe for opj_image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)