Phonon  4.7.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Classes | Public Member Functions | Protected Attributes | List of all members
Phonon::GlPainter Class Reference
Inheritance diagram for Phonon::GlPainter:
Phonon::AbstractVideoGraphicsPainter Phonon::GlslPainter

Public Member Functions

virtual ~GlPainter ()
 
void setContext (QGLContext *context)
 
void initRgb32 ()
 
void initYv12 ()
 
void initColorMatrix ()
 
void initTextures ()
 
- Public Member Functions inherited from Phonon::AbstractVideoGraphicsPainter
virtual QList< VideoFrame::FormatsupportedFormats () const =0
 
void setFrame (const VideoFrame *frame)
 
virtual void init ()=0
 
virtual void paint (QPainter *painter, QRectF target)=0
 
virtual ~AbstractVideoGraphicsPainter ()
 
bool inited () const
 

Protected Attributes

QGLContext * m_context
 
int m_textureCount
 
GLuint m_textureIds [3]
 
GlTextureDescriptor m_texDescriptor
 
GlTextureSize m_texSize [3]
 
QMatrix4x4 m_colorMatrix
 
bool m_texturesInited
 
- Protected Attributes inherited from Phonon::AbstractVideoGraphicsPainter
const VideoFramem_frame
 
bool m_inited
 

Constructor & Destructor Documentation

Phonon::GlPainter::~GlPainter ( )
virtual

Destructor.

Member Function Documentation

void Phonon::GlPainter::initColorMatrix ( )

Initialize the color matrix to be used for YUV->RGB color conversion.

void Phonon::GlPainter::initRgb32 ( )

Initialize for an RGB32/RGBA frame.

void Phonon::GlPainter::initTextures ( )

Initialize all textures (amount of texture is dependent on what count was decided in the specific init functions.

void Phonon::GlPainter::initYv12 ( )

Initialize for an YV12 frame.

void Phonon::GlPainter::setContext ( QGLContext *  context)
Parameters
contextthe QGLContext to use for this painter.

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