ScCamera.h
Go to the documentation of this file.
ScBool sc_camera_enqueue_frame_data(ScCamera *camera, uint8_t const *frame_data)
Requeues the buffer after the data has been used.
float sc_framerate_get_fps(ScFramerate const *frame_rate)
Returns the number of frames per second.
ScBool sc_camera_request_resolution(ScCamera *camera, ScSize resolution)
Tries to set the camera resolution.
uint8_t const * sc_camera_get_frame(ScCamera *camera, ScImageDescription *image_description)
ScBool sc_camera_stop_stream(ScCamera *camera)
Tells the camera to stop capturing images.
ScCamera * sc_camera_new_from_path(char const *device_path, uint32_t buffer_count)
Create a camera object from a device path.
ScImageLayout sc_camera_get_image_layout(ScCamera const *camera)
uint32_t step_height
y dimension step size
Definition: ScCamera.h:53
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.
ScSize sc_camera_get_resolution(ScCamera const *camera)
Returns the resolution of the camera in pixel (width, height).
ScBool sc_camera_request_framerate(ScCamera *camera, ScFramerate framerate)
Tries to set the camera framerate.
ScCamera * sc_camera_new_with_buffer_count(uint32_t buffer_count)
Create a camera object with the requested number of frame buffers.
ScCameraMode sc_camera_get_resolution_mode(ScCamera const *camera)
Query the resolution mode of the camera.
Opaque handle to a camera object.
ScImageLayout
Specifies the format of the pixel data.
Definition: ScImageDescription.h:24
Describes dimensions as well as internal memory layout of an image buffer.
the camera captures at a wide range of step-wise generated resolutions
Definition: ScCamera.h:138
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_retain(ScCamera *camera)
Increase reference count of camera by one.
ScBool sc_camera_set_focus_mode(ScCamera *camera, ScCameraFocusMode mode)
Tries to set the autofocus mode of the camera.
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.
the camera captures at a finite set of discrete resolutions
Definition: ScCamera.h:137
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.
ScCameraMode sc_camera_get_framerate_mode(ScCamera const *camera)
Query the framerate mode of the camera.
void sc_camera_release(ScCamera *camera)
Decrease reference count of camera by one.
Common definitions used throughout the ScanditSDK API.
Common functions and data structures.
ScBool sc_camera_start_stream(ScCamera *camera)
Tells the camera to start capturing images.
float sc_framerate_get_frame_interval(ScFramerate const *frame_rate)
Returns the time between two frames in seconds.
ScBool sc_camera_query_supported_resolutions_stepwise(ScCamera const *camera, ScStepwiseResolution *resolutions)
Query supported step-wise resolutions of the camera.
Image description interface.