ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Graphics::YUVAToRGBAManager Class Reference

#include <yuva_to_rgba.h>

Inheritance diagram for Graphics::YUVAToRGBAManager:
Collaboration diagram for Graphics::YUVAToRGBAManager:

List of all members.

Public Types

enum  LuminanceScale { kScaleFull, kScaleITU }

The scale of the luminance values.


Public Member Functions

void convert420 (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 to an RGB surface.

Private Member Functions

 YUVAToRGBAManager ()
 ~YUVAToRGBAManager ()
const YUVAToRGBALookupgetLookup (Graphics::PixelFormat format, LuminanceScale scale)

Private Attributes

int16 _colorTab [4 *256]


class Common::Singleton< SingletonBaseType >

Detailed Description

Definition at line 42 of file yuva_to_rgba.h.

Member Enumeration Documentation

The scale of the luminance values.


Luminance values range from [0, 255].

Luminance values range from [16, 235], the range from ITU-R BT.601

Definition at line 45 of file yuva_to_rgba.h.

Constructor & Destructor Documentation

Graphics::YUVAToRGBAManager::YUVAToRGBAManager (  )  [private]

Definition at line 167 of file yuva_to_rgba.cpp.

Graphics::YUVAToRGBAManager::~YUVAToRGBAManager (  )  [private]

Definition at line 189 of file yuva_to_rgba.cpp.

Member Function Documentation

void Graphics::YUVAToRGBAManager::convert420 ( Graphics::Surface dst,
YUVAToRGBAManager::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 to an RGB surface.

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

Definition at line 249 of file yuva_to_rgba.cpp.

const YUVAToRGBALookup * Graphics::YUVAToRGBAManager::getLookup ( Graphics::PixelFormat  format,
YUVAToRGBAManager::LuminanceScale  scale 
) [private]

Definition at line 193 of file yuva_to_rgba.cpp.

Friends And Related Function Documentation

friend class Common::Singleton< SingletonBaseType > [friend]

Definition at line 67 of file yuva_to_rgba.h.

Member Data Documentation

Definition at line 74 of file yuva_to_rgba.h.

The documentation for this class was generated from the following files:

Generated on Sat May 30 2020 05:03:03 for ResidualVM by doxygen 1.7.1
curved edge   curved edge