#include <yuv_to_rgb.h>
|
| void | convert420 (LuminanceScale scale, byte *dst, int dstPitch, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
| | Convert a YUV420 image to an RGBA surface. More...
|
| |
| void | convert420 (LuminanceScale scale, byte *dst, int dstPitch, const byte *ySrc, const byte *uSrc, const byte *vSrc, const byte *aSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
| | Convert a YUV420 image to an RGBA surface. More...
|
| |
Definition at line 37 of file yuv_to_rgb.h.
◆ LuminanceScale
The scale of the luminance values.
| Enumerator |
|---|
| kScaleFull | |
| kScaleITU | Luminance values range from [0, 255].
Luminance values range from [16, 235], the range from ITU-R BT.601
|
Definition at line 40 of file yuv_to_rgb.h.
◆ YUVToRGBManager()
| Graphics::YUVToRGBManager::YUVToRGBManager |
( |
| ) |
|
|
private |
◆ ~YUVToRGBManager()
| Graphics::YUVToRGBManager::~YUVToRGBManager |
( |
| ) |
|
|
private |
◆ convert420() [1/2]
| void Graphics::YUVToRGBManager::convert420 |
( |
LuminanceScale |
scale, |
|
|
byte * |
dst, |
|
|
int |
dstPitch, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV420 image to an RGBA surface.
- Parameters
-
| scale | the scale of the luminance values |
| dst | the destination surface |
| dstPitch | the pitch of the destination surface |
| ySrc | the source of the y component |
| uSrc | the source of the u component |
| vSrc | the source of the v component |
| yWidth | the width of the y surface (must be divisible by 2) |
| yHeight | the height of the y surface (must be divisible by 2) |
| yPitch | the pitch of the y surface |
| uvPitch | the pitch of the u and v surfaces |
Definition at line 238 of file yuv_to_rgb.cpp.
References _colorTab, Graphics::YUVToRGBLookup::getRGBToPix(), PUT_PIXEL, and YUVToRGBMan.
◆ convert420() [2/2]
| void Graphics::YUVToRGBManager::convert420 |
( |
LuminanceScale |
scale, |
|
|
byte * |
dst, |
|
|
int |
dstPitch, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
const byte * |
aSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV420 image to an RGBA surface.
- Parameters
-
| scale | the scale of the luminance values |
| dst | the destination surface |
| dstPitch | the pitch of the destination surface |
| ySrc | the source of the y component |
| uSrc | the source of the u component |
| vSrc | the source of the v component |
| aSrc | the source of the a component |
| yWidth | the width of the y surface (must be divisible by 2) |
| yHeight | the height of the y surface (must be divisible by 2) |
| yPitch | the pitch of the y and a surfaces |
| uvPitch | the pitch of the u and v surfaces |
Definition at line 199 of file yuv_to_rgb.cpp.
References _colorTab, Graphics::YUVToRGBLookup::getRGBToPix(), PUT_PIXEL, and YUVToRGBMan.
◆ getLookup()
◆ Common::Singleton< SingletonBaseType >
◆ _colorTab
| int16 Graphics::YUVToRGBManager::_colorTab[4 *256] |
|
private |
◆ _lookup
The documentation for this class was generated from the following files: