#[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_UINT32XOsiz: horizontal offset from the origin of the reference grid to the left side of the image area
y0: OPJ_UINT32YOsiz: vertical offset from the origin of the reference grid to the top side of the image area
x1: OPJ_UINT32Xsiz: width of the reference grid
y1: OPJ_UINT32Ysiz: height of the reference grid
numcomps: OPJ_UINT32number of components in the image
color_space: OPJ_COLOR_SPACEcolor space: sRGB, Greyscale or YUV
comps: *mut opj_image_comp_timage components
icc_profile_buf: *mut OPJ_BYTE‘restricted’ ICC profile
icc_profile_len: OPJ_UINT32size 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