#include <helpers.h>
|
| | Helpers () |
| |
| uint8_t | clip (int value) |
| |
| void | convertYUYVPixel (uint8_t y, uint8_t u, uint8_t v, uint8_t &r, uint8_t &g, uint8_t &b) |
| |
| void | convertYUYV2RGB (uint8_t *yuyv_data, size_t yuyv_data_length, std::vector< uint8_t > &rgb_buffer) |
| |
| camera::Helpers::Helpers |
( |
| ) |
|
|
inline |
Creates YUV2RGB lookup tables.
| uint8_t camera::Helpers::clip |
( |
int |
value | ) |
|
|
inline |
| void camera::Helpers::convertYUYV2RGB |
( |
uint8_t * |
yuyv_data, |
|
|
size_t |
yuyv_data_length, |
|
|
std::vector< uint8_t > & |
rgb_buffer |
|
) |
| |
|
inline |
Converts an YUYV image to RGB24.
- Parameters
-
| void camera::Helpers::convertYUYVPixel |
( |
uint8_t |
y, |
|
|
uint8_t |
u, |
|
|
uint8_t |
v, |
|
|
uint8_t & |
r, |
|
|
uint8_t & |
g, |
|
|
uint8_t & |
b |
|
) |
| |
|
inline |
| static void camera::Helpers::removeJpegCommentBlock |
( |
base::samples::frame::Frame & |
frame | ) |
|
|
inlinestatic |
Someone (OpenCV?) does not understand JPEG comment-blocks. Removes comment block to avoid getting 'Corrupt JPEG data: x extraneous bytes before marker 0xe0.'
| static bool camera::Helpers::storeImageToFile |
( |
std::vector< uint8_t > const & |
buffer, |
|
|
std::string const & |
file_name |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /build/rock-master-18.09-drivers-camera-usb-0.20180212/src/helpers.h