|
void | convert444 (Graphics::Surface *dst, LuminanceScale scale, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
|
void | convert422 (Graphics::Surface *dst, LuminanceScale scale, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
|
void | convert420 (Graphics::Surface *dst, LuminanceScale scale, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
|
void | convert420Alpha (Graphics::Surface *dst, LuminanceScale scale, const byte *ySrc, const byte *uSrc, const byte *vSrc, const byte *aSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
|
void | convert410 (Graphics::Surface *dst, LuminanceScale scale, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch) |
|
|
static bool | hasInstance () |
|
static YUVToRGBManager & | instance () |
|
static void | destroy () |
|
typedef YUVToRGBManager | SingletonBaseType |
|
static YUVToRGBManager * | _singleton |
|
◆ LuminanceScale
The scale of the luminance values
Enumerator |
---|
kScaleITU | Luminance values range from [0, 255] Luminance values range from [16, 235], the range from ITU-R BT.601
|
◆ convert444()
void Graphics::YUVToRGBManager::convert444 |
( |
Graphics::Surface * |
dst, |
|
|
LuminanceScale |
scale, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV444 image to an RGB surface
- Parameters
-
dst | the destination surface |
scale | the scale of the luminance values |
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 |
yHeight | the height of the y surface |
yPitch | the pitch of the y surface |
uvPitch | the pitch of the u and v surfaces |
◆ convert422()
void Graphics::YUVToRGBManager::convert422 |
( |
Graphics::Surface * |
dst, |
|
|
LuminanceScale |
scale, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV422 image to an RGB surface
- Parameters
-
dst | the destination surface |
scale | the scale of the luminance values |
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 |
yPitch | the pitch of the y surface |
uvPitch | the pitch of the u and v surfaces |
◆ convert420()
void Graphics::YUVToRGBManager::convert420 |
( |
Graphics::Surface * |
dst, |
|
|
LuminanceScale |
scale, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV420 image to an RGB surface
- Parameters
-
dst | the destination surface |
scale | the scale of the luminance values |
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 |
◆ convert420Alpha()
void Graphics::YUVToRGBManager::convert420Alpha |
( |
Graphics::Surface * |
dst, |
|
|
LuminanceScale |
scale, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
const byte * |
aSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV420 image with Alpha component to an ARGB surface
- Parameters
-
dst | the destination surface |
scale | the scale of the luminance values |
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 surface |
uvPitch | the pitch of the u and v surfaces |
◆ convert410()
void Graphics::YUVToRGBManager::convert410 |
( |
Graphics::Surface * |
dst, |
|
|
LuminanceScale |
scale, |
|
|
const byte * |
ySrc, |
|
|
const byte * |
uSrc, |
|
|
const byte * |
vSrc, |
|
|
int |
yWidth, |
|
|
int |
yHeight, |
|
|
int |
yPitch, |
|
|
int |
uvPitch |
|
) |
| |
Convert a YUV410 image to an RGB surface
Since the chroma has a very low resolution in 410, we perform bilinear scaling on the two chroma planes to produce the image. The chroma planes must have at least one extra row and one extra column that can be read from in order to produce a proper image. It is suggested that you fill these in with the previous row and column's data. This is required in order to speed up this function.
- Parameters
-
dst | the destination surface |
scale | the scale of the luminance values |
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 4) |
yHeight | the height of the y surface (must be divisible by 4) |
yPitch | the pitch of the y surface |
uvPitch | the pitch of the u and v surfaces |
The documentation for this class was generated from the following file: