Torc  0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TorcOMXComponent Class Referencefinal

#include <torcomxcomponent.h>

Public Member Functions

 TorcOMXComponent (OMX_STRING Component)
 
 ~TorcOMXComponent ()
 
bool IsValid (void)
 
QString GetName (void)
 
OMX_HANDLETYPE GetHandle (void)
 
OMX_ERRORTYPE SetState (OMX_STATETYPE State, bool Wait=true)
 
OMX_STATETYPE GetState (void)
 
OMX_ERRORTYPE SetParameter (OMX_INDEXTYPE Index, OMX_PTR Structure)
 
OMX_ERRORTYPE GetParameter (OMX_INDEXTYPE Index, OMX_PTR Structure)
 
OMX_ERRORTYPE SetConfig (OMX_INDEXTYPE Index, OMX_PTR Structure)
 
OMX_ERRORTYPE GetConfig (OMX_INDEXTYPE Index, OMX_PTR Structure)
 
OMX_U32 GetPort (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 
OMX_ERRORTYPE EnablePort (OMX_DIRTYPE Direction, OMX_U32 Index, bool Enable, OMX_INDEXTYPE Domain, bool Wait=true)
 
OMX_ERRORTYPE DisablePorts (OMX_INDEXTYPE Domain)
 
OMX_U32 GetAvailableBuffers (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 
OMX_U32 GetInUseBuffers (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 
OMX_ERRORTYPE EmptyThisBuffer (OMX_BUFFERHEADERTYPE *Buffer)
 
OMX_ERRORTYPE FillThisBuffer (OMX_BUFFERHEADERTYPE *Buffer)
 
OMX_ERRORTYPE CreateBuffers (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain, QObject *Owner=nullptr)
 
OMX_ERRORTYPE DestroyBuffers (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 
OMX_BUFFERHEADERTYPE * GetBuffer (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_U32 Timeout, OMX_INDEXTYPE Domain)
 
OMX_ERRORTYPE FlushBuffer (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 
OMX_ERRORTYPE EventHandler (OMX_HANDLETYPE Component, OMX_EVENTTYPE Event, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR EventData)
 
OMX_ERRORTYPE EmptyBufferDone (OMX_HANDLETYPE Component, OMX_BUFFERHEADERTYPE *Buffer)
 
OMX_ERRORTYPE FillBufferDone (OMX_HANDLETYPE Component, OMX_BUFFERHEADERTYPE *Buffer)
 
OMX_ERRORTYPE SendCommand (OMX_COMMANDTYPE Command, OMX_U32 Parameter, OMX_PTR Data)
 
OMX_ERRORTYPE WaitForResponse (OMX_U32 Command, OMX_U32 Data2, OMX_S32 Timeout)
 

Static Public Member Functions

static OMX_ERRORTYPE EventHandlerCallback (OMX_HANDLETYPE Component, OMX_PTR OMXComponent, OMX_EVENTTYPE Event, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR EventData)
 
static OMX_ERRORTYPE EmptyBufferDoneCallback (OMX_HANDLETYPE Component, OMX_PTR OMXComponent, OMX_BUFFERHEADERTYPE *Buffer)
 
static OMX_ERRORTYPE FillBufferDoneCallback (OMX_HANDLETYPE Component, OMX_PTR OMXComponent, OMX_BUFFERHEADERTYPE *Buffer)
 

Protected Member Functions

void AnalysePorts (OMX_INDEXTYPE Domain)
 
TorcOMXPortFindPort (OMX_DIRTYPE Direction, OMX_U32 Index, OMX_INDEXTYPE Domain)
 

Protected Attributes

bool m_valid
 
OMX_HANDLETYPE m_handle
 
QMutex m_lock
 
QString m_componentName
 
QList< TorcOMXPort * > m_inputPorts
 
QList< TorcOMXPort * > m_outputPorts
 
QList< TorcOMXEventm_eventQueue
 
QMutex m_eventQueueLock
 
QWaitCondition m_eventQueueWait
 

Detailed Description

Definition at line 27 of file torcomxcomponent.h.

Constructor & Destructor Documentation

TorcOMXComponent::TorcOMXComponent ( OMX_STRING  Component)
explicit

Definition at line 40 of file torcomxcomponent.cpp.

TorcOMXComponent::~TorcOMXComponent ( )

Definition at line 166 of file torcomxcomponent.cpp.

Member Function Documentation

void TorcOMXComponent::AnalysePorts ( OMX_INDEXTYPE  Domain)
protected

Definition at line 82 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::CreateBuffers ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain,
QObject *  Owner = nullptr 
)

Definition at line 367 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::DestroyBuffers ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)

Definition at line 378 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::DisablePorts ( OMX_INDEXTYPE  Domain)

Definition at line 522 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EmptyBufferDone ( OMX_HANDLETYPE  Component,
OMX_BUFFERHEADERTYPE *  Buffer 
)

Definition at line 428 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EmptyBufferDoneCallback ( OMX_HANDLETYPE  Component,
OMX_PTR  OMXComponent,
OMX_BUFFERHEADERTYPE *  Buffer 
)
static

Definition at line 194 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EmptyThisBuffer ( OMX_BUFFERHEADERTYPE *  Buffer)

Definition at line 349 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EnablePort ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
bool  Enable,
OMX_INDEXTYPE  Domain,
bool  Wait = true 
)

Definition at line 320 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EventHandler ( OMX_HANDLETYPE  Component,
OMX_EVENTTYPE  Event,
OMX_U32  Data1,
OMX_U32  Data2,
OMX_PTR  EventData 
)

Definition at line 412 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::EventHandlerCallback ( OMX_HANDLETYPE  Component,
OMX_PTR  OMXComponent,
OMX_EVENTTYPE  Event,
OMX_U32  Data1,
OMX_U32  Data2,
OMX_PTR  EventData 
)
static

Definition at line 185 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::FillBufferDone ( OMX_HANDLETYPE  Component,
OMX_BUFFERHEADERTYPE *  Buffer 
)

Definition at line 440 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::FillBufferDoneCallback ( OMX_HANDLETYPE  Component,
OMX_PTR  OMXComponent,
OMX_BUFFERHEADERTYPE *  Buffer 
)
static

Definition at line 203 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::FillThisBuffer ( OMX_BUFFERHEADERTYPE *  Buffer)

Definition at line 358 of file torcomxcomponent.cpp.

TorcOMXPort * TorcOMXComponent::FindPort ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)
protected

Definition at line 133 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::FlushBuffer ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)

Definition at line 398 of file torcomxcomponent.cpp.

OMX_U32 TorcOMXComponent::GetAvailableBuffers ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)

Definition at line 331 of file torcomxcomponent.cpp.

OMX_BUFFERHEADERTYPE * TorcOMXComponent::GetBuffer ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_U32  Timeout,
OMX_INDEXTYPE  Domain 
)

Definition at line 389 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::GetConfig ( OMX_INDEXTYPE  Index,
OMX_PTR  Structure 
)

Definition at line 298 of file torcomxcomponent.cpp.

OMX_HANDLETYPE TorcOMXComponent::GetHandle ( void  )

Definition at line 217 of file torcomxcomponent.cpp.

OMX_U32 TorcOMXComponent::GetInUseBuffers ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)

Definition at line 340 of file torcomxcomponent.cpp.

QString TorcOMXComponent::GetName ( void  )

Definition at line 212 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::GetParameter ( OMX_INDEXTYPE  Index,
OMX_PTR  Structure 
)

Definition at line 276 of file torcomxcomponent.cpp.

OMX_U32 TorcOMXComponent::GetPort ( OMX_DIRTYPE  Direction,
OMX_U32  Index,
OMX_INDEXTYPE  Domain 
)

Definition at line 309 of file torcomxcomponent.cpp.

OMX_STATETYPE TorcOMXComponent::GetState ( void  )

Definition at line 249 of file torcomxcomponent.cpp.

bool TorcOMXComponent::IsValid ( void  )

Definition at line 180 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::SendCommand ( OMX_COMMANDTYPE  Command,
OMX_U32  Parameter,
OMX_PTR  Data 
)

Definition at line 453 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::SetConfig ( OMX_INDEXTYPE  Index,
OMX_PTR  Structure 
)

Definition at line 287 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::SetParameter ( OMX_INDEXTYPE  Index,
OMX_PTR  Structure 
)

Definition at line 265 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::SetState ( OMX_STATETYPE  State,
bool  Wait = true 
)

Definition at line 222 of file torcomxcomponent.cpp.

OMX_ERRORTYPE TorcOMXComponent::WaitForResponse ( OMX_U32  Command,
OMX_U32  Data2,
OMX_S32  Timeout 
)

Definition at line 464 of file torcomxcomponent.cpp.

Member Data Documentation

QString TorcOMXComponent::m_componentName
protected

Definition at line 72 of file torcomxcomponent.h.

QList<TorcOMXEvent> TorcOMXComponent::m_eventQueue
protected

Definition at line 75 of file torcomxcomponent.h.

QMutex TorcOMXComponent::m_eventQueueLock
protected

Definition at line 76 of file torcomxcomponent.h.

QWaitCondition TorcOMXComponent::m_eventQueueWait
protected

Definition at line 77 of file torcomxcomponent.h.

OMX_HANDLETYPE TorcOMXComponent::m_handle
protected

Definition at line 70 of file torcomxcomponent.h.

QList<TorcOMXPort*> TorcOMXComponent::m_inputPorts
protected

Definition at line 73 of file torcomxcomponent.h.

QMutex TorcOMXComponent::m_lock
protected

Definition at line 71 of file torcomxcomponent.h.

QList<TorcOMXPort*> TorcOMXComponent::m_outputPorts
protected

Definition at line 74 of file torcomxcomponent.h.

bool TorcOMXComponent::m_valid
protected

Definition at line 69 of file torcomxcomponent.h.


The documentation for this class was generated from the following files: