#include <FrameQImageConverter.h>
|
| | FrameQImageConverter () |
| |
| virtual | ~FrameQImageConverter () |
| |
| void | hsvToRgb (float h, float s, float v, int &r, int &g, int &b) |
| |
| int | copyFrameToQImageRGB888 (QImage &dst, base::samples::frame::frame_mode_t mode, int pixel_size, unsigned int width, unsigned int height, const char *pbuffer, const size_t buffer_size=0) |
| |
| int | copyFrameToQImageRGB888 (QImage &dst, const base::samples::frame::Frame &frame) |
| |
| int | copyFrameToQImageRGB888 (QImage &dst, const QString &mode, int pixel_size, int width, int height, const char *pbuffer, const size_t size=0) |
| |
◆ FrameQImageConverter()
| frame_helper::FrameQImageConverter::FrameQImageConverter |
( |
| ) |
|
|
inline |
◆ ~FrameQImageConverter()
| virtual frame_helper::FrameQImageConverter::~FrameQImageConverter |
( |
| ) |
|
|
inlinevirtual |
◆ copyFrameToQImageRGB888() [1/3]
| int frame_helper::FrameQImageConverter::copyFrameToQImageRGB888 |
( |
QImage & |
dst, |
|
|
base::samples::frame::frame_mode_t |
mode, |
|
|
int |
pixel_size, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const char * |
pbuffer, |
|
|
const size_t |
buffer_size = 0 |
|
) |
| |
|
inline |
◆ copyFrameToQImageRGB888() [2/3]
| int frame_helper::FrameQImageConverter::copyFrameToQImageRGB888 |
( |
QImage & |
dst, |
|
|
const base::samples::frame::Frame & |
frame |
|
) |
| |
|
inline |
◆ copyFrameToQImageRGB888() [3/3]
| int frame_helper::FrameQImageConverter::copyFrameToQImageRGB888 |
( |
QImage & |
dst, |
|
|
const QString & |
mode, |
|
|
int |
pixel_size, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const char * |
pbuffer, |
|
|
const size_t |
size = 0 |
|
) |
| |
|
inline |
◆ hsvToRgb()
| void frame_helper::FrameQImageConverter::hsvToRgb |
( |
float |
h, |
|
|
float |
s, |
|
|
float |
v, |
|
|
int & |
r, |
|
|
int & |
g, |
|
|
int & |
b |
|
) |
| |
|
inline |
Converts an HSV color value to RGB. Conversion formula adapted from http://en.wikipedia.org/wiki/HSV_color_space. Assumes h, s, and v are contained in the set [0, 1] and returns r, g, and b in the set [0, 255].
- Parameters
-
| Number | h The hue |
| Number | s The saturation |
| Number | v The value |
- Returns
- Array The RGB representation
The documentation for this class was generated from the following file: