ScImageDescription.h
Go to the documentation of this file.
void sc_image_description_set_height(ScImageDescription *description, uint32_t height)
Set height of image.
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...
uint32_t sc_image_description_get_width(ScImageDescription const *description)
Get width of image.
void sc_image_description_set_width(ScImageDescription *description, uint32_t width)
Set width of image.
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...
uint32_t sc_image_description_get_height(ScImageDescription const *description)
Get height of image.
RGBA image with 8 bits per color channel.
Definition: ScImageDescription.h:49
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.
ScImageDescription * sc_image_description_new(void)
Create a new image description.
ARGB image with 8 bits per color channel.
Definition: ScImageDescription.h:57
ScImageLayout
Specifies the format of the pixel data.
Definition: ScImageDescription.h:24
Describes dimensions as well as internal memory layout of an image buffer.
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.
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.
Common definitions used throughout the ScanditSDK API.
void sc_image_description_retain(ScImageDescription *description)
Increase reference count of image description by one.
I420 format with separate Y, U and V planes.
Definition: ScImageDescription.h:110
void sc_image_description_release(ScImageDescription *description)
Decrease reference count of image description by one.
void sc_image_description_set_layout(ScImageDescription *description, ScImageLayout layout)
Set the image layout.
ScImageLayout sc_image_description_get_layout(ScImageDescription const *description)
Get the image layout.