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
ScCamera.h
Go to the documentation of this file.
386 SC_EXPORT const uint8_t * sc_camera_get_frame(ScCamera *camera, ScImageDescription * image_description);
Image Description interface.
ScBool sc_camera_request_resolution(ScCamera *camera, ScSize resolution)
Tries to set the camera resolution.
ScImageLayout sc_camera_get_image_layout(const ScCamera *camera)
int32_t sc_camera_query_supported_framerates(const ScCamera *camera, ScSize resolution, ScFramerate *framerate_array, uint32_t framerate_array_length)
Query supported discrete framerates of the camera at a given resolution.
float sc_framerate_get_frame_interval(const ScFramerate *frame_rate)
Returns the time between two frames in seconds.
ScBool sc_camera_enqueue_frame_data(ScCamera *camera, const uint8_t *frame_data)
Requeues the buffer after the data has been used.
ScCameraMode sc_camera_get_framerate_mode(const ScCamera *camera)
Query the framerate mode of the camera.
Common functions and data structures.
Opaque handle to a camera object.
Common definitions used throughout the ScanditSDK API.
ScBool sc_camera_stop_stream(ScCamera *camera)
Tells the camera to stop capturing images.
ScBool sc_camera_set_manual_auto_focus_distance(ScCamera *camera, int32_t distance)
Sets the autofocus distance manually. Only possible when the autofocusmode is OFF.
ScCamera * sc_camera_new_with_buffer_count(uint32_t buffer_count)
Create a camera object with the requested number of frame buffers.
@ SC_CAMERA_MODE_STEPWISE
the camera captures at a wide range of step-wise generated resolutions
Definition: ScCamera.h:132
ScBool sc_camera_request_framerate(ScCamera *camera, ScFramerate framerate)
Tries to set the camera framerate.
ScBool sc_camera_start_stream(ScCamera *camera)
Tells the camera to start capturing images.
ScCameraMode sc_camera_get_resolution_mode(const ScCamera *camera)
Query the resolution mode of the camera.
ScImageLayout
Specifies the format of the pixel data.
Definition: ScImageDescription.h:24
Describes dimensions as well as internal memory layout of an image buffer.
@ SC_CAMERA_MODE_DISCRETE
the camera captures at a finite set of discrete resolutions
Definition: ScCamera.h:131
ScBool sc_camera_query_supported_framerates_stepwise(const ScCamera *camera, ScSize resolution, ScStepwiseFramerate *framerates)
Query supported step-wise framerates of the camera at a given resolution.
void sc_camera_retain(ScCamera *camera)
Increase reference count of camera by one.
@ SC_CAMERA_MODE_UNKNOWN
the camera resolution mode is not known
Definition: ScCamera.h:130
ScBool sc_camera_set_focus_mode(ScCamera *camera, ScCameraFocusMode mode)
Tries to set the autofocus mode of the camera.
ScCamera * sc_camera_new_from_path(const char *device_path, uint32_t buffer_count)
Create a camera object from a device path.
void sc_camera_release(ScCamera *camera)
Decrease reference count of camera by one.
const uint8_t * sc_camera_get_frame(ScCamera *camera, ScImageDescription *image_description)
float sc_framerate_get_fps(const ScFramerate *frame_rate)
Returns the number of frames per second.
ScSize sc_camera_get_resolution(const ScCamera *camera)
Returns the resolution of the camera in pixel (width, height).
int32_t sc_camera_query_supported_resolutions(const ScCamera *camera, ScSize *resolution_array, uint32_t resolution_array_length)
Query supported discrete resolutions of the camera.
ScBool sc_camera_query_supported_resolutions_stepwise(const ScCamera *camera, ScStepwiseResolution *resolutions)
Query supported step-wise resolutions of the camera.