ScImageDescription.h
Go to the documentation of this file.
Common definitions used throughout the ScanditSDK API.
ScImageLayout
Specifies the format of the pixel data.
Definition: ScImageDescription.h:24
@ SC_IMAGE_LAYOUT_YPCRCB_8U
YpCrCb 4:2:0 image format.
Definition: ScImageDescription.h:77
@ SC_IMAGE_LAYOUT_RGB_8U
RGB image with 8 bits per color channel.
Definition: ScImageDescription.h:42
@ SC_IMAGE_LAYOUT_RGBA_8U
RGBA image with 8 bits per color channel.
Definition: ScImageDescription.h:49
@ SC_IMAGE_LAYOUT_BGR_8U
BGR image with 8 bits per color channel.
Definition: ScImageDescription.h:119
@ SC_IMAGE_LAYOUT_YUYV_8U
8-bit YUYV 4:2:2 image format.
Definition: ScImageDescription.h:88
@ SC_IMAGE_LAYOUT_UNKNOWN
Image layout is unknown.
Definition: ScImageDescription.h:28
@ SC_IMAGE_LAYOUT_I420_8U
I420 format with separate Y, U and V planes.
Definition: ScImageDescription.h:110
@ SC_IMAGE_LAYOUT_ARGB_8U
ARGB image with 8 bits per color channel.
Definition: ScImageDescription.h:57
@ SC_IMAGE_LAYOUT_GRAY_8U
Single-channel 8-bit gray scale image.
Definition: ScImageDescription.h:35
@ SC_IMAGE_LAYOUT_YPCBCR_8U
YpCbCr 4:2:0 image format.
Definition: ScImageDescription.h:67
@ SC_IMAGE_LAYOUT_NV16_8U
YpCrCb 4:2:2 image format.
Definition: ScImageDescription.h:129
@ SC_IMAGE_LAYOUT_UYVY_8U
8-bit UYVY 4:2:2 image format.
Definition: ScImageDescription.h:99
Describes dimensions as well as internal memory layout of an image buffer.
uint32_t sc_image_description_get_width(ScImageDescription const *description)
Get width of image.
uint32_t sc_image_description_get_plane_row_bytes(ScImageDescription const *description, uint32_t plane_index)
Get the number of bytes per row for the selected data plane.
uint32_t sc_image_description_get_height(ScImageDescription const *description)
Get height of image.
void sc_image_description_set_plane_row_bytes(ScImageDescription *description, uint32_t plane_index, uint32_t row_bytes)
Set the number of bytes per row for selected data plane.
void sc_image_description_set_plane_offset(ScImageDescription *description, uint32_t plane_index, ptrdiff_t offset)
Set the start offset of the selected data plane relative to the image buffer start.
void sc_image_description_release(ScImageDescription const *description)
Decrease reference count of image description by one.
ScImageLayout sc_image_description_get_layout(ScImageDescription const *description)
Get the image layout.
uint32_t sc_image_description_get_planes_count(ScImageDescription const *description)
Get a number of non-interleaved image data planes according to the image layout. Image data planes ei...
void sc_image_description_retain(ScImageDescription const *description)
Increase reference count of image description by one.
ptrdiff_t sc_image_description_get_plane_offset(ScImageDescription const *description, uint32_t plane_index)
Get an offset of the first pixel value of the selected data plane relative to the start of the corres...
void sc_image_description_set_layout(ScImageDescription *description, ScImageLayout layout)
Set the image layout.
void sc_image_description_set_width(ScImageDescription *description, uint32_t width)
Set width of image.
void sc_image_description_set_height(ScImageDescription *description, uint32_t height)
Set height of image.
ScImageDescription * sc_image_description_new(void)
Create a new image description.