VideoFrameBuffer Class Reference
This class serves as a frame buffer and event handler of a graphical widget/label for displaying video frames.It manages an pixmap/image object as a frame buffer whose pixels may be set using the setPixel() method. For painting the frame buffer's contents into the label/widget's pixmap, a customEvent() handler is implemented. . More...
#include <VideoFrameBuffer.hpp>
Inheritance diagram for VideoFrameBuffer:
Public Member Functions | |
VideoFrameBuffer (bool gray) | |
Constructor. | |
virtual | ~VideoFrameBuffer () |
Destructor. | |
virtual void | setPixel (int x, int y, uint index_or_rgb) |
Set a pixel in the frame buffer. | |
virtual void | bitBlt (AU *au) |
does the fast bitblitting of the full (and unscaled) Frame | |
void | lock () |
Lock the mutex protecting the frame buffer. | |
void | unlock () |
Unlock the mutex locked by lock(). | |
virtual void | postPaintEvent ()=0 |
Post a custom event for this object to display the frame buffer on the label/widget. | |
Protected Attributes | |
bool | gray |
Detailed Description
This class serves as a frame buffer and event handler of a graphical widget/label for displaying video frames.It manages an pixmap/image object as a frame buffer whose pixels may be set using the setPixel() method. For painting the frame buffer's contents into the label/widget's pixmap, a customEvent() handler is implemented. .
- Author:
- Mario Taschwer and Michael Kropfberger
- Version:
- Id
- VideoFrameBuffer.hpp,v 1.5 2005/04/27 10:21:51 klschoef Exp
Definition at line 65 of file VideoFrameBuffer.hpp.
Member Function Documentation
|
Lock the mutex protecting the frame buffer. This function will block the calling thread until the mutex can be obtained.
Reimplemented in SDLFrameBuffer. Definition at line 91 of file VideoFrameBuffer.hpp. References VMutex::lock(). Referenced by QFrameBuffer::customEvent(), and VideoRenderer::writeFrame().
|
|
Set a pixel in the frame buffer. If this method is called from a thread other than the Qt GUI thread, the frame buffer should be locked before by calling the lock() method. Reimplemented in QFrameBuffer, SDLFrameBuffer, and X11FrameBuffer. Definition at line 81 of file VideoFrameBuffer.hpp.
|
The documentation for this class was generated from the following files: