Phonon::Experimental::AbstractVideoDataOutput
#include <abstractvideodataoutput.h>
Public Member Functions | |
AbstractVideoDataOutput () | |
virtual QSet< VideoFrame2::Format > | allowedFormats () const |
virtual void | endOfMedia ()=0 |
virtual void | frameReady (const VideoFrame2 &)=0 |
bool | isRunning () const |
void | setAllowedFormats (const QSet< VideoFrame2::Format > &) |
void | setRunning (bool running) |
void | start () |
void | stop () |
Protected Member Functions | |
AbstractVideoDataOutput (AbstractVideoDataOutputPrivate &dd) | |
Protected Member Functions inherited from Phonon::AbstractVideoOutput | |
AbstractVideoOutput (AbstractVideoOutputPrivate &d) | |
Detailed Description
This class gives you the video data.
This class implements a special AbstractVideoOutput that gives your application the video data.
You can also use the video data for further processing (e.g. encoding and saving to a file).
- See also
- VideoDataOutput2
Definition at line 56 of file abstractvideodataoutput.h.
Constructor & Destructor Documentation
◆ AbstractVideoDataOutput() [1/2]
Phonon::Experimental::AbstractVideoDataOutput::AbstractVideoDataOutput | ( | ) |
Constructs an AbstractVideoDataOutput.
Definition at line 32 of file abstractvideodataoutput.cpp.
◆ ~AbstractVideoDataOutput()
|
override |
Definition at line 45 of file abstractvideodataoutput.cpp.
◆ AbstractVideoDataOutput() [2/2]
|
protected |
Definition at line 40 of file abstractvideodataoutput.cpp.
Member Function Documentation
◆ allowedFormats()
|
virtual |
Lists the formats this output is allowed to pass via frameReady.
Definition at line 50 of file abstractvideodataoutput.cpp.
◆ endOfMedia()
|
pure virtual |
This function is called after the last frameReady of a MediaObject was called.
Implemented in Phonon::Experimental::VideoDataOutput2.
◆ frameReady()
|
pure virtual |
This function is called whenever a frame should be displayed.
- Warning
- frameReady can get called from any thread (other than the main thread or the thread affinity of this QObject). A common error to create a deadlock situation is to block the thread this function is called from, until the main thread has found time to handle the frame. If it is blocking while the main thread decides to stop/delete the MediaObject you might get a deadlock.
Implemented in Phonon::Experimental::VideoDataOutput2.
◆ isRunning()
bool Phonon::Experimental::AbstractVideoDataOutput::isRunning | ( | ) | const |
Definition at line 62 of file abstractvideodataoutput.cpp.
◆ setAllowedFormats()
void Phonon::Experimental::AbstractVideoDataOutput::setAllowedFormats | ( | const QSet< VideoFrame2::Format > & | allowedFormats | ) |
Defaults to VideoFrame2::Format_RGB888.
Definition at line 56 of file abstractvideodataoutput.cpp.
◆ setRunning()
void Phonon::Experimental::AbstractVideoDataOutput::setRunning | ( | bool | running | ) |
Definition at line 68 of file abstractvideodataoutput.cpp.
◆ start()
void Phonon::Experimental::AbstractVideoDataOutput::start | ( | ) |
Definition at line 82 of file abstractvideodataoutput.cpp.
◆ stop()
void Phonon::Experimental::AbstractVideoDataOutput::stop | ( | ) |
Definition at line 87 of file abstractvideodataoutput.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.