12 #include "OMX_Types.h" 15 #ifndef OMX_VERSION_MAJOR 16 #define OMX_VERSION_MAJOR 1 18 #ifndef OMX_VERSION_MINOR 19 #define OMX_VERSION_MINOR 1 21 #ifndef OMX_VERSION_REVISION 22 #define OMX_VERSION_REVISION 2 24 #ifndef OMX_VERSION_STEP 25 #define OMX_VERSION_STEP 0 28 #define OMX_INITSTRUCTURE(Struct) \ 29 memset(&(Struct), 0, sizeof((Struct))); \ 30 (Struct).nSize = sizeof((Struct)); \ 31 (Struct).nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \ 32 (Struct).nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \ 33 (Struct).nVersion.s.nRevision = OMX_VERSION_REVISION; \ 34 (Struct).nVersion.s.nStep = OMX_VERSION_STEP; 42 #define OMX_ERROR(Error, Component, Message) \ 43 LOG(VB_GENERAL, LOG_ERR, QStringLiteral("%1: %2 (Error '%3')").arg(Component, Message, ErrorToString(Error))); 44 #define OMX_CHECK(Error, Component, Message) \ 45 if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); return Error; } 46 #define OMX_CHECKX(Error, Component, Message) \ 47 if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); } 58 #endif // TORCOMXCORE_H
QString EventToString(OMX_EVENTTYPE Event)
QString StateToString(OMX_STATETYPE State)
QString ErrorToString(OMX_ERRORTYPE Error)
TorcOMXCore(const TorcOMXCore &Other)
TorcOMXCore & operator=(const TorcOMXCore &Other)
QString DomainToString(OMX_INDEXTYPE Domain)
QString CommandToString(OMX_COMMANDTYPE Command)