70 memset(frame, 0,
sizeof(*frame));
76 frame->
data = malloc(data_bytes);
99 static inline unsigned char sat(
int i) {
100 return (
unsigned char)( i >= 255 ? 255 : (i < 0 ? 0 : i));
static unsigned char sat(int i)
enum uvc_error uvc_error_t
uvc_error_t uvc_duplicate_frame(uvc_frame_t *in, uvc_frame_t *out)
Duplicate a frame, preserving color format.
uvc_frame_t * uvc_allocate_frame(size_t data_bytes)
Allocate a frame structure.
uint8_t library_owns_data
Implementation-specific UVC constants and structures.
uvc_error_t uvc_ensure_frame_size(uvc_frame_t *frame, size_t need_bytes)
uvc_device_handle_t * source
void uvc_free_frame(uvc_frame_t *frame)
Free a frame structure.
struct timeval capture_time