ScCommon.h
Go to the documentation of this file.
208ScQuadrilateralF sc_quadrilateral_float_make(ScPointF tl, ScPointF tr, ScPointF br, ScPointF bl);
246 2,
@ SC_CAMERA_FOCUS_MODE_AUTO
the camera automatically adjusts the focus to create a sharp image
Definition: ScCommon.h:245
@ SC_CAMERA_FOCUS_MODE_UNKNOWN
the focus capabilities are not known
Definition: ScCommon.h:243
@ SC_CAMERA_FOCUS_MODE_MANUAL
the camera is controlled by the user
Definition: ScCommon.h:247
@ SC_CAMERA_FOCUS_MODE_FIXED
the camera cannot change its focus
Definition: ScCommon.h:244
char const * message
error message. Set to NULL in case there is no error
Definition: ScCommon.h:268
uint32_t code
error code, 0 if there is no error, a positive value otherwise.
Definition: ScCommon.h:273
char const * sc_get_information_string(ScInformationKey key)
Get information string.
ScInformationKey
Enumeration of different information strings.
Definition: ScCommon.h:309
Common definitions used throughout the ScanditSDK API.
Image description interface.
void sc_image_buffer_free(ScImageBuffer *image)
Frees the data contained in the image.
size_t data_size
total size of the data, including padding
Definition: ScCommon.h:335
ScImageDescription * description
pointer to the image description
Definition: ScCommon.h:333
Describes dimensions as well as internal memory layout of an image buffer.
ScPointF sc_point_f_make(float x, float y)
Helper function to initialize a point with x, y coordinates.
Definition: ScCommon.h:122
ScPoint sc_point_make(int x, int y)
Helper function to initialize a point with x, y coordinates.
Definition: ScCommon.h:49
A 2-dimensional polygon with 4 corners described as relative float coordinates.
Definition: ScCommon.h:177
ScQuadrilateralF sc_quadrilateral_float_make(ScPointF tl, ScPointF tr, ScPointF br, ScPointF bl)
Helper function to initialize a quadrilateral with float precision and 4 corners.
ScPointF bottom_right
Bottom right corner of the quadrilateral.
Definition: ScCommon.h:189
ScPointF bottom_left
Bottom left corner of the quadrilateral.
Definition: ScCommon.h:193
ScPointF top_right
Top right corner of the quadrilateral.
Definition: ScCommon.h:185
ScPointF top_left
Top left corner of the quadrilateral.
Definition: ScCommon.h:181
ScPoint bottom_left
Bottom left corner of the quadrilateral.
Definition: ScCommon.h:77
ScQuadrilateral sc_quadrilateral_make(ScPoint tl, ScPoint tr, ScPoint br, ScPoint bl)
Helper function to initialize a quadrilateral with 4 corners.
ScPoint top_right
Top right corner of the quadrilateral.
Definition: ScCommon.h:69
ScPoint bottom_right
Bottom right corner of the quadrilateral.
Definition: ScCommon.h:73
ScPoint top_left
Top left corner of the quadrilateral.
Definition: ScCommon.h:65
ScRectangleF sc_rectangle_f_make(float position_x, float position_y, float width, float height)
Helper function to initialize a rectangle.
ScSizeF size
Width and height of the rectangle. Both must larger or equal than zero.
Definition: ScCommon.h:166
ScPointF position
Upper-left corner of the rectangle.
Definition: ScCommon.h:162
ScPointF sc_rectangle_f_get_center(ScRectangleF rectangle)
Calculates and returns the center of the rectangle.