Torc  0.1
torcomxtunnel.h
Go to the documentation of this file.
1 #ifndef TORCOMXTUNNEL_H
2 #define TORCOMXTUNNEL_H
3 
4 // Qt
5 #include <QMutex>
6 
7 // Torc
8 #include "torcomxcore.h"
9 #include "torcomxport.h"
10 #include "torcomxcomponent.h"
11 
12 // OpenMaxIL
13 #include "OMX_Core.h"
14 #include "OMX_Component.h"
15 
16 class TorcOMXTunnel final
17 {
18  public:
19  TorcOMXTunnel(TorcOMXComponent *Source, OMX_U32 SourceIndex, OMX_INDEXTYPE SourceDomain,
20  TorcOMXComponent *Destination, OMX_U32 DestinationIndex, OMX_INDEXTYPE DestinationDomain);
22 
23  bool IsConnected (void);
24  OMX_ERRORTYPE Flush (void);
25  OMX_ERRORTYPE Create (void);
26  OMX_ERRORTYPE Destroy (void);
27 
28  private:
29  bool m_connected;
30  QMutex m_lock;
31  TorcOMXComponent *m_source;
32  OMX_U32 m_sourceIndex;
33  OMX_INDEXTYPE m_sourceDomain;
34  OMX_U32 m_sourcePort;
35  TorcOMXComponent *m_destination;
36  OMX_U32 m_destinationIndex;
37  OMX_INDEXTYPE m_destinationDomain;
38  OMX_U32 m_destinationPort;
39 
40 private:
41  Q_DISABLE_COPY(TorcOMXTunnel)
42 };
43 
44 #endif // TORCOMXTUNNEL_H
OMX_ERRORTYPE Create(void)
OMX_ERRORTYPE Flush(void)
TorcOMXTunnel(TorcOMXComponent *Source, OMX_U32 SourceIndex, OMX_INDEXTYPE SourceDomain, TorcOMXComponent *Destination, OMX_U32 DestinationIndex, OMX_INDEXTYPE DestinationDomain)
OMX_ERRORTYPE Destroy(void)
bool IsConnected(void)