275 #define IMAGE_JPEG "image/jpeg" 284 #define IMAGE_UNCOMPRESSED "video/x-raw-yuv" 293 #define VIDEO_H264 "video/x-h264" 302 #define VIDEO_FORMAT_Y800 "Y800" 303 #define VIDEO_FORMAT_I420 "I420" 304 #define VIDEO_FORMAT_UYVY "UYVY" 306 typedef struct _stream_info stream_info;
307 typedef struct _media_stream media_stream;
308 typedef struct _media_frame media_frame;
318 #define CAPTURE_TIME_FORMAT "llu" void capture_burst_free(media_frame **frames)
size_t capture_frame_width(const media_frame *frame)
Obtain the width of the media_frame.
capture_time capture_frame_timestamp(const media_frame *frame)
Obtain the timestamp of the media_frame, measured in nanoseconds.
size_t capture_frame_size(const media_frame *frame)
Obtain the data size from the media_frame.
char * capture_get_optimal_resolutions_list(int channel)
Returns a list with the most optimal resolutions with respect to performance for the current capture ...
char * capture_get_resolutions_list(int channel)
Returns a list with all available resolutions for the current capture mode.
void * capture_frame_data(const media_frame *frame)
Obtain the data from the media_frame.
char * capture_stream_info_props(const stream_info *info)
Obtain the properties of the stream.
void capture_close_stream(media_stream *stream)
Close a running stream.
size_t capture_frame_height(const media_frame *frame)
Obtain the height of the media_frame.
media_frame * capture_get_frame(media_stream *stream)
Read a media_frame from an open stream.
size_t capture_frame_stride(const media_frame *frame)
Obtain the stride length of the Y800 media_frame.
media_stream * capture_open_stream(const char *media_type, const char *media_props)
Opens a new stream of the specified media type with the specified properties.
media_frame ** capture_get_burst(media_stream *stream)
char * capture_stream_info_type(const stream_info *info)
Obtain the type of the stream.
unsigned long long capture_time
The datatype to hold a timestamp for the time of capture for a frame, measured in nanoseconds for the...
Definition: capture.h:313
stream_info ** capture_stream_info_get()
Get information about the stream currently running on the camera.
Native Capture interface, for reading native uncompressed images.
void capture_frame_free(media_frame *frame)
Free the media_frame retrieved from capture_get_frame().
void capture_stream_info_free(stream_info **info)
Free the array of stream_info acquired by capture_strem_info_get.