A video sink abstracts a queue of buffers, that receives a stream of decoded video buffers from an arbitrary source. More...
#include <video_sink.h>
Signals | |
| void | frameAvailable () |
| The signal is emitted whenever a new frame is available and a subsequent call to swapBuffers() will not block and return true. | |
Public Member Functions | |
| virtual | ~VideoSink () |
| const QMatrix4x4 & | transformationMatrix () const |
| Queries the 4x4 transformation matrix for the current frame. | |
| virtual bool | swapBuffers ()=0 |
| Releases the current buffer, and consumes the next buffer in the queue, making it available for consumption by consumers of this API in an implementation-specific way. Clients will usually rely on a GL texture to receive the latest buffer. | |
Protected Member Functions | |
| VideoSink (VideoSinkPrivate *d, QObject *parent=nullptr) | |
Protected Attributes | |
| QScopedPointer< VideoSinkPrivate > | d_ptr |
A video sink abstracts a queue of buffers, that receives a stream of decoded video buffers from an arbitrary source.
Definition at line 34 of file video_sink.h.
|
virtualdefault |
|
protected |
Definition at line 39 of file video_sink.cpp.
References d_ptr.
Referenced by frameAvailable(), NullVideoSink::NullVideoSink(), and transformationMatrix().
|
signal |
The signal is emitted whenever a new frame is available and a subsequent call to swapBuffers() will not block and return true.
References VideoSink().
|
pure virtual |
Releases the current buffer, and consumes the next buffer in the queue, making it available for consumption by consumers of this API in an implementation-specific way. Clients will usually rely on a GL texture to receive the latest buffer.
Implemented in lomiri::MediaHub::EglVideoSink, lomiri::MediaHub::HybrisVideoSink, and NullVideoSink.
| const QMatrix4x4 & VideoSink::transformationMatrix | ( | ) | const |
Queries the 4x4 transformation matrix for the current frame.
Definition at line 47 of file video_sink.cpp.
References VideoSink().
Referenced by ~VideoSink().
|
protected |
Definition at line 66 of file video_sink.h.
Referenced by VideoSink().