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

Public Member Functions

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

Additional Inherited Members

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

Member Function Documentation

void Phonon::GlslPainter::init ( )
virtual

Implementations of init can prepare the painter for painting. For example an OpenGL painter may setup the GLContext and prepare the textures. Mind that init will usually be irreversible, so once a painter was initialized for a specific frame only the data of this frame may change.

See Also
setFrame

Implements Phonon::AbstractVideoGraphicsPainter.

void Phonon::GlslPainter::paint ( QPainter *  painter,
QRectF  target 
)
virtual

The actual paint logic is implemented in this function.

Parameters
painterthe QPainter obtained from the paint call on a QGraphicsItem.
targetthe rectangle to draw in, this will usually be the rectangle calculated for a given aspect ratio.

Implements Phonon::AbstractVideoGraphicsPainter.


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