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