Struct openjpeg_sys::opj_image_comp
source · #[repr(C)]pub struct opj_image_comp {Show 13 fields
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,
}
Expand description
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: number of bits per component per pixel
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§
source§impl Clone for opj_image_comp
impl Clone for opj_image_comp
source§fn clone(&self) -> opj_image_comp
fn clone(&self) -> opj_image_comp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for opj_image_comp
impl Debug for opj_image_comp
impl Copy for opj_image_comp
Auto Trait Implementations§
impl Freeze for opj_image_comp
impl RefUnwindSafe for opj_image_comp
impl !Send for opj_image_comp
impl !Sync for opj_image_comp
impl Unpin for opj_image_comp
impl UnwindSafe for opj_image_comp
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
)