7 #include <QWaitCondition> 15 #include "OMX_Component.h" 27 OMX_ERRORTYPE
EnablePort (
bool Enable,
bool Wait =
true);
32 OMX_ERRORTYPE
Flush (
void);
34 OMX_BUFFERHEADERTYPE*
GetBuffer (OMX_S32 Timeout);
37 void BufferReady (OMX_BUFFERHEADERTYPE* Buffer, quint64 Type);
42 OMX_HANDLETYPE m_handle;
44 OMX_INDEXTYPE m_domain;
46 QWaitCondition m_wait;
47 QList<OMX_BUFFERHEADERTYPE*> m_buffers;
48 QQueue<OMX_BUFFERHEADERTYPE*> m_availableBuffers;
55 #endif // TORCOMXPORT_H OMX_ERRORTYPE Flush(void)
OMX_U32 GetInUseBuffers(void)
OMX_ERRORTYPE DestroyBuffers(void)
OMX_ERRORTYPE MakeAvailable(OMX_BUFFERHEADERTYPE *Buffer)
TorcOMXPort(TorcOMXComponent *Parent, OMX_HANDLETYPE Handle, OMX_U32 Port, OMX_INDEXTYPE Domain)
OMX_U32 GetAvailableBuffers(void)
OMX_ERRORTYPE CreateBuffers(QObject *Owner=nullptr)
OMX_ERRORTYPE EnablePort(bool Enable, bool Wait=true)
OMX_INDEXTYPE GetDomain(void)
void BufferReady(OMX_BUFFERHEADERTYPE *Buffer, quint64 Type)
OMX_BUFFERHEADERTYPE * GetBuffer(OMX_S32 Timeout)