libuvc
Functions
Frame processing

Tools for managing frame buffers and converting between image formats. More...

Functions

uvc_error_t uvc_mjpeg2rgb (uvc_frame_t *in, uvc_frame_t *out)
 Convert an MJPEG frame to RGB. More...
 
uvc_frame_tuvc_allocate_frame (size_t data_bytes)
 Allocate a frame structure. More...
 
void uvc_free_frame (uvc_frame_t *frame)
 Free a frame structure. More...
 
uvc_error_t uvc_duplicate_frame (uvc_frame_t *in, uvc_frame_t *out)
 Duplicate a frame, preserving color format. More...
 
uvc_error_t uvc_yuyv2rgb (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from YUYV to RGB. More...
 
uvc_error_t uvc_yuyv2bgr (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from YUYV to BGR. More...
 
uvc_error_t uvc_uyvy2rgb (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from UYVY to RGB. More...
 
uvc_error_t uvc_uyvy2bgr (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from UYVY to BGR. More...
 
uvc_error_t uvc_any2rgb (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame to RGB. More...
 
uvc_error_t uvc_any2bgr (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame to BGR. More...
 

Detailed Description

Tools for managing frame buffers and converting between image formats.

Function Documentation

uvc_error_t uvc_mjpeg2rgb ( uvc_frame_t in,
uvc_frame_t out 
)

Convert an MJPEG frame to RGB.

Parameters
inMJPEG frame
outRGB frame
uvc_frame_t* uvc_allocate_frame ( size_t  data_bytes)

Allocate a frame structure.

Parameters
data_bytesNumber of bytes to allocate, or zero
Returns
New frame, or NULL on error
void uvc_free_frame ( uvc_frame_t frame)

Free a frame structure.

Parameters
frameFrame to destroy
uvc_error_t uvc_duplicate_frame ( uvc_frame_t in,
uvc_frame_t out 
)

Duplicate a frame, preserving color format.

Parameters
inOriginal frame
outDuplicate frame
uvc_error_t uvc_yuyv2rgb ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from YUYV to RGB.

Parameters
inYUYV frame
outRGB frame
uvc_error_t uvc_yuyv2bgr ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from YUYV to BGR.

Parameters
inYUYV frame
outBGR frame
uvc_error_t uvc_uyvy2rgb ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from UYVY to RGB.

Parameters
iniUYVY frame
outRGB frame
uvc_error_t uvc_uyvy2bgr ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from UYVY to BGR.

Parameters
iniUYVY frame
outBGR frame
uvc_error_t uvc_any2rgb ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame to RGB.

Parameters
innon-RGB frame
outRGB frame
uvc_error_t uvc_any2bgr ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame to BGR.

Parameters
innon-BGR frame
outBGR frame