![]() |
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#include <OMXCore.h>
Public Member Functions | |
COMXCoreComponent () | |
~COMXCoreComponent () | |
OMX_HANDLETYPE | GetComponent () const |
unsigned int | GetInputPort () const |
unsigned int | GetOutputPort () const |
std::string | GetName () const |
OMX_ERRORTYPE | DisableAllPorts () |
void | RemoveEvent (OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2) |
OMX_ERRORTYPE | AddEvent (OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2) |
OMX_ERRORTYPE | WaitForEvent (OMX_EVENTTYPE event, long timeout=300) |
OMX_ERRORTYPE | WaitForCommand (OMX_U32 command, OMX_U32 nData2, long timeout=2000) |
OMX_ERRORTYPE | SetStateForComponent (OMX_STATETYPE state) |
OMX_STATETYPE | GetState () const |
OMX_ERRORTYPE | SetParameter (OMX_INDEXTYPE paramIndex, OMX_PTR paramStruct) |
OMX_ERRORTYPE | GetParameter (OMX_INDEXTYPE paramIndex, OMX_PTR paramStruct) const |
OMX_ERRORTYPE | SetConfig (OMX_INDEXTYPE configIndex, OMX_PTR configStruct) |
OMX_ERRORTYPE | GetConfig (OMX_INDEXTYPE configIndex, OMX_PTR configStruct) const |
OMX_ERRORTYPE | SendCommand (OMX_COMMANDTYPE cmd, OMX_U32 cmdParam, OMX_PTR cmdParamData) |
OMX_ERRORTYPE | EnablePort (unsigned int port, bool wait=true) |
OMX_ERRORTYPE | DisablePort (unsigned int port, bool wait=true) |
OMX_ERRORTYPE | UseEGLImage (OMX_BUFFERHEADERTYPE **ppBufferHdr, OMX_U32 nPortIndex, OMX_PTR pAppPrivate, void *eglImage) |
bool | Initialize (const std::string &component_name, OMX_INDEXTYPE index) |
bool | IsInitialized () const |
bool | Deinitialize () |
OMX_ERRORTYPE | DecoderEventHandler (OMX_HANDLETYPE hComponent, OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2, OMX_PTR pEventData) |
OMX_ERRORTYPE | DecoderEmptyBufferDone (OMX_HANDLETYPE hComponent, OMX_BUFFERHEADERTYPE *pBuffer) |
OMX_ERRORTYPE | DecoderFillBufferDone (OMX_HANDLETYPE hComponent, OMX_BUFFERHEADERTYPE *pBuffer) |
void | TransitionToStateLoaded () |
OMX_ERRORTYPE | EmptyThisBuffer (OMX_BUFFERHEADERTYPE *omx_buffer) |
OMX_ERRORTYPE | FillThisBuffer (OMX_BUFFERHEADERTYPE *omx_buffer) |
OMX_ERRORTYPE | FreeOutputBuffer (OMX_BUFFERHEADERTYPE *omx_buffer) |
unsigned int | GetInputBufferSize () const |
unsigned int | GetOutputBufferSize () const |
unsigned int | GetInputBufferSpace () const |
unsigned int | GetOutputBufferSpace () const |
void | FlushAll () |
void | FlushInput () |
void | FlushOutput () |
OMX_BUFFERHEADERTYPE * | GetInputBuffer (long timeout=200) |
OMX_BUFFERHEADERTYPE * | GetOutputBuffer (long timeout=200) |
OMX_ERRORTYPE | AllocInputBuffers () |
OMX_ERRORTYPE | AllocOutputBuffers () |
OMX_ERRORTYPE | FreeInputBuffers () |
OMX_ERRORTYPE | FreeOutputBuffers () |
OMX_ERRORTYPE | WaitForInputDone (long timeout=200) |
OMX_ERRORTYPE | WaitForOutputDone (long timeout=200) |
bool | IsEOS () const |
bool | BadState () const |
void | ResetEos () |
void | IgnoreNextError (OMX_S32 error) |
Static Public Member Functions | |
static OMX_ERRORTYPE | DecoderEventHandlerCallback (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 nData1, OMX_U32 nData2, OMX_PTR pEventData) |
static OMX_ERRORTYPE | DecoderEmptyBufferDoneCallback (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer) |
static OMX_ERRORTYPE | DecoderFillBufferDoneCallback (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBufferHeader) |
COMXCoreComponent::COMXCoreComponent | ( | ) |
COMXCoreComponent::~COMXCoreComponent | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::AddEvent | ( | OMX_EVENTTYPE | eEvent, |
OMX_U32 | nData1, | ||
OMX_U32 | nData2 | ||
) |
OMX_ERRORTYPE COMXCoreComponent::AllocInputBuffers | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::AllocOutputBuffers | ( | ) |
|
inline |
OMX_ERRORTYPE COMXCoreComponent::DecoderEmptyBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
|
static |
OMX_ERRORTYPE COMXCoreComponent::DecoderEventHandler | ( | OMX_HANDLETYPE | hComponent, |
OMX_EVENTTYPE | eEvent, | ||
OMX_U32 | nData1, | ||
OMX_U32 | nData2, | ||
OMX_PTR | pEventData | ||
) |
|
static |
OMX_ERRORTYPE COMXCoreComponent::DecoderFillBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
|
static |
bool COMXCoreComponent::Deinitialize | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::DisableAllPorts | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::DisablePort | ( | unsigned int | port, |
bool | wait = true |
||
) |
OMX_ERRORTYPE COMXCoreComponent::EmptyThisBuffer | ( | OMX_BUFFERHEADERTYPE * | omx_buffer | ) |
OMX_ERRORTYPE COMXCoreComponent::EnablePort | ( | unsigned int | port, |
bool | wait = true |
||
) |
OMX_ERRORTYPE COMXCoreComponent::FillThisBuffer | ( | OMX_BUFFERHEADERTYPE * | omx_buffer | ) |
void COMXCoreComponent::FlushAll | ( | ) |
void COMXCoreComponent::FlushInput | ( | ) |
void COMXCoreComponent::FlushOutput | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::FreeInputBuffers | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::FreeOutputBuffer | ( | OMX_BUFFERHEADERTYPE * | omx_buffer | ) |
OMX_ERRORTYPE COMXCoreComponent::FreeOutputBuffers | ( | ) |
|
inline |
OMX_ERRORTYPE COMXCoreComponent::GetConfig | ( | OMX_INDEXTYPE | configIndex, |
OMX_PTR | configStruct | ||
) | const |
OMX_BUFFERHEADERTYPE * COMXCoreComponent::GetInputBuffer | ( | long | timeout = 200 | ) |
|
inline |
|
inline |
|
inline |
|
inline |
OMX_BUFFERHEADERTYPE * COMXCoreComponent::GetOutputBuffer | ( | long | timeout = 200 | ) |
|
inline |
|
inline |
|
inline |
OMX_ERRORTYPE COMXCoreComponent::GetParameter | ( | OMX_INDEXTYPE | paramIndex, |
OMX_PTR | paramStruct | ||
) | const |
OMX_STATETYPE COMXCoreComponent::GetState | ( | ) | const |
|
inline |
bool COMXCoreComponent::Initialize | ( | const std::string & | component_name, |
OMX_INDEXTYPE | index | ||
) |
|
inline |
|
inline |
void COMXCoreComponent::RemoveEvent | ( | OMX_EVENTTYPE | eEvent, |
OMX_U32 | nData1, | ||
OMX_U32 | nData2 | ||
) |
void COMXCoreComponent::ResetEos | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::SendCommand | ( | OMX_COMMANDTYPE | cmd, |
OMX_U32 | cmdParam, | ||
OMX_PTR | cmdParamData | ||
) |
OMX_ERRORTYPE COMXCoreComponent::SetConfig | ( | OMX_INDEXTYPE | configIndex, |
OMX_PTR | configStruct | ||
) |
OMX_ERRORTYPE COMXCoreComponent::SetParameter | ( | OMX_INDEXTYPE | paramIndex, |
OMX_PTR | paramStruct | ||
) |
OMX_ERRORTYPE COMXCoreComponent::SetStateForComponent | ( | OMX_STATETYPE | state | ) |
void COMXCoreComponent::TransitionToStateLoaded | ( | ) |
OMX_ERRORTYPE COMXCoreComponent::UseEGLImage | ( | OMX_BUFFERHEADERTYPE ** | ppBufferHdr, |
OMX_U32 | nPortIndex, | ||
OMX_PTR | pAppPrivate, | ||
void * | eglImage | ||
) |
OMX_ERRORTYPE COMXCoreComponent::WaitForCommand | ( | OMX_U32 | command, |
OMX_U32 | nData2, | ||
long | timeout = 2000 |
||
) |
OMX_ERRORTYPE COMXCoreComponent::WaitForEvent | ( | OMX_EVENTTYPE | event, |
long | timeout = 300 |
||
) |
OMX_ERRORTYPE COMXCoreComponent::WaitForInputDone | ( | long | timeout = 200 | ) |
OMX_ERRORTYPE COMXCoreComponent::WaitForOutputDone | ( | long | timeout = 200 | ) |