ScImageDescription.h
Go to the documentation of this file.
1 
10 #ifndef SC_IMAGE_DESCRIPTION_H_
11 #define SC_IMAGE_DESCRIPTION_H_
12 
13 #include <Scandit/ScConfig.h>
14 
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18 
24 typedef enum {
50 
58 
68 
78 
89 
100 
120 
130 } ScImageLayout;
131 
157 typedef struct ScOpaqueImageDescription ScImageDescription;
160 
173 
182 SC_EXPORT void
184 
195 SC_EXPORT void
197 
214 SC_EXPORT ScImageLayout
216 
228 SC_EXPORT void
230  ScImageLayout layout);
231 
232 
243 SC_EXPORT uint32_t
245 
256 SC_EXPORT void
258  uint32_t width);
259 
270 SC_EXPORT uint32_t
272 
282 SC_EXPORT void
284  uint32_t height);
285 
286 
297 SC_EXPORT uint32_t
299 
300 
310 SC_EXPORT void
312  uint32_t offset);
313 
324 SC_EXPORT uint32_t
326 
336 SC_EXPORT void
338  uint32_t row_bytes);
339 
340 
351 SC_EXPORT uint32_t
353 
363 SC_EXPORT void
365  uint32_t row_bytes);
366 
367 
378 SC_EXPORT uint32_t
380 
390 SC_EXPORT void
392  uint32_t offset);
393 
404 SC_EXPORT uint32_t
406 
417 SC_EXPORT void
419  uint32_t memory_size);
420 
421 
422 #if defined(__cplusplus)
423 }
424 #endif
425 
426 
427 #endif // SC_IMAGE_DESCRIPTION_H_
428 
429 
Image layout is unknown.
Definition: ScImageDescription.h:28
void sc_image_description_set_height(ScImageDescription *description, uint32_t height)
Set height of image.
void sc_image_description_set_width(ScImageDescription *description, uint32_t width)
Set width of image.
uint32_t sc_image_description_get_second_plane_offset(const ScImageDescription *description)
Get the start offset of the second data plane.
RGB image with 8 bits per color channel.
Definition: ScImageDescription.h:42
uint32_t sc_image_description_get_first_plane_row_bytes(const ScImageDescription *description)
Get the number of bytes per row for the first data plane.
uint32_t sc_image_description_get_width(const ScImageDescription *description)
Get width of image.
8-bit UYVY 4:2:2 image format.
Definition: ScImageDescription.h:99
uint32_t sc_image_description_get_first_plane_offset(const ScImageDescription *description)
Get start offset of the first data plane.
RGBA image with 8 bits per color channel.
Definition: ScImageDescription.h:49
void sc_image_description_set_second_plane_row_bytes(ScImageDescription *description, uint32_t row_bytes)
Set the number of bytes per row for the second data plane.
BGR image with 8 bits per color channel.
Definition: ScImageDescription.h:119
void sc_image_description_set_first_plane_row_bytes(ScImageDescription *description, uint32_t row_bytes)
Set the number of bytes per row for first data plane.
uint32_t sc_image_description_get_memory_size(const ScImageDescription *description)
Get the total memory size of the frame data.
ScImageDescription * sc_image_description_new(void)
Create a new image description.
void sc_image_description_set_first_plane_offset(ScImageDescription *description, uint32_t offset)
Set the start offset of the first data plane.
ARGB image with 8 bits per color channel.
Definition: ScImageDescription.h:57
Single-channel 8-bit gray scale image.
Definition: ScImageDescription.h:35
ScImageLayout
Specifies the format of the pixel data.
Definition: ScImageDescription.h:24
Describes dimensions as well as internal memory layout of an image buffer.
ScImageLayout sc_image_description_get_layout(const ScImageDescription *description)
Get the image layout.
YpCbCr 4:2:0 image format.
Definition: ScImageDescription.h:67
Common definitions used throughout the ScanditSDK API.
YpCrCb 4:2:2 image format.
Definition: ScImageDescription.h:129
YpCrCb 4:2:0 image format.
Definition: ScImageDescription.h:77
uint32_t sc_image_description_get_height(const ScImageDescription *description)
Get height of image.
void sc_image_description_set_memory_size(ScImageDescription *description, uint32_t memory_size)
Set the total memory size of the frame data.
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.
8-bit YUYV 4:2:2 image format.
Definition: ScImageDescription.h:88
void sc_image_description_set_layout(ScImageDescription *description, ScImageLayout layout)
Set the image layout.
void sc_image_description_set_second_plane_offset(ScImageDescription *description, uint32_t offset)
Set the start offset of the second data plane.
uint32_t sc_image_description_get_second_plane_row_bytes(const ScImageDescription *description)
Get the number of bytes per row for the second data plane.