Deprecation warning
Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.
We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.
You'll find the updated documentation at: Data Capture SDK Documentation for Android
ScCommon.h
Image Description interface.
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:73
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:171
@ SC_CAMERA_FOCUS_MODE_AUTO
the camera automatically adjusts the focus to create a sharp image
Definition: ScCommon.h:209
const char * message
error message. Set to NULL in case there is no error
Definition: ScCommon.h:230
@ SC_CAMERA_FOCUS_MODE_MANUAL
the camera is controlled by the user
Definition: ScCommon.h:210
ScPointF sc_rectangle_f_get_center(ScRectangleF rectangle)
Calculates and returns the center of the rectangle.
void sc_image_buffer_free(ScImageBuffer *image)
Frees the data contained in the image.
Common definitions used throughout the ScanditSDK API.
ScPointF position
Upper-left corner of the rectangle.
Definition: ScCommon.h:167
ScPointF sc_point_f_make(float x, float y)
Helper function to initialize a point with x, y coordinates.
Definition: ScCommon.h:127
const char * sc_get_information_string(ScInformationKey key)
Get information string.
@ SC_CAMERA_FOCUS_MODE_UNKNOWN
the focus capabilities are not known
Definition: ScCommon.h:207
Describes dimensions as well as internal memory layout of an image buffer.
ScInformationKey
Enumeration of different information strings.
Definition: ScCommon.h:272
ScPoint bottom_right
Bottom right corner of the quadrilateral.
Definition: ScCommon.h:77
ScPoint bottom_left
Bottom left corner of the quadrilateral.
Definition: ScCommon.h:81
ScPoint top_left
Top left corner of the quadrilateral.
Definition: ScCommon.h:69
ScPoint sc_point_make(int x, int y)
Helper function to initialize a point with x, y coordinates.
Definition: ScCommon.h:52
@ SC_CAMERA_FOCUS_MODE_FIXED
the camera cannot change its focus
Definition: ScCommon.h:208
uint32_t code
error code, 0 if there is no error, a positive value otherwise.
Definition: ScCommon.h:235