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_error_t uvc_mjpeg2gray (uvc_frame_t *in, uvc_frame_t *out)
 Convert an MJPEG frame to GRAY8. 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_yuyv2y (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from YUYV to Y (GRAY8) More...
 
uvc_error_t uvc_yuyv2uv (uvc_frame_t *in, uvc_frame_t *out)
 Convert a frame from YUYV to UV (GRAY8) 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_mjpeg2rgb()

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_mjpeg2gray()

uvc_error_t uvc_mjpeg2gray ( uvc_frame_t in,
uvc_frame_t out 
)

Convert an MJPEG frame to GRAY8.

Parameters
inMJPEG frame
outGRAY8 frame

◆ uvc_allocate_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

◆ uvc_free_frame()

void uvc_free_frame ( uvc_frame_t frame)

Free a frame structure.

Parameters
frameFrame to destroy

◆ uvc_duplicate_frame()

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_yuyv2rgb()

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_yuyv2bgr()

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_yuyv2y()

uvc_error_t uvc_yuyv2y ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from YUYV to Y (GRAY8)

Parameters
inYUYV frame
outGRAY8 frame

◆ uvc_yuyv2uv()

uvc_error_t uvc_yuyv2uv ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame from YUYV to UV (GRAY8)

Parameters
inYUYV frame
outGRAY8 frame

◆ uvc_uyvy2rgb()

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_uyvy2bgr()

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_any2rgb()

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_any2bgr()

uvc_error_t uvc_any2bgr ( uvc_frame_t in,
uvc_frame_t out 
)

Convert a frame to BGR.

Parameters
innon-BGR frame
outBGR frame