Torc  0.1
Classes | Macros | Functions
torcomxcore.h File Reference
#include <QLibrary>
#include "OMX_Types.h"
#include "OMX_Core.h"
Include dependency graph for torcomxcore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TorcOMXCore
 

Macros

#define OMX_SKIP64BIT
 
#define OMX_VERSION_MAJOR   1
 
#define OMX_VERSION_MINOR   1
 
#define OMX_VERSION_REVISION   2
 
#define OMX_VERSION_STEP   0
 
#define OMX_INITSTRUCTURE(Struct)
 
#define OMX_ERROR(Error, Component, Message)   LOG(VB_GENERAL, LOG_ERR, QStringLiteral("%1: %2 (Error '%3')").arg(Component, Message, ErrorToString(Error)));
 
#define OMX_CHECK(Error, Component, Message)   if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); return Error; }
 
#define OMX_CHECKX(Error, Component, Message)   if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); }
 

Functions

QString EventToString (OMX_EVENTTYPE Event)
 
QString StateToString (OMX_STATETYPE State)
 
QString ErrorToString (OMX_ERRORTYPE Error)
 
QString CommandToString (OMX_COMMANDTYPE Command)
 
QString DomainToString (OMX_INDEXTYPE Domain)
 

Macro Definition Documentation

#define OMX_CHECK (   Error,
  Component,
  Message 
)    if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); return Error; }

Definition at line 44 of file torcomxcore.h.

#define OMX_CHECKX (   Error,
  Component,
  Message 
)    if (OMX_ErrorNone != Error) { OMX_ERROR(Error, Component, Message); }

Definition at line 46 of file torcomxcore.h.

#define OMX_ERROR (   Error,
  Component,
  Message 
)    LOG(VB_GENERAL, LOG_ERR, QStringLiteral("%1: %2 (Error '%3')").arg(Component, Message, ErrorToString(Error)));

Definition at line 42 of file torcomxcore.h.

#define OMX_INITSTRUCTURE (   Struct)
Value:
memset(&(Struct), 0, sizeof((Struct))); \
(Struct).nSize = sizeof((Struct)); \
(Struct).nVersion.s.nVersionMajor = OMX_VERSION_MAJOR; \
(Struct).nVersion.s.nVersionMinor = OMX_VERSION_MINOR; \
(Struct).nVersion.s.nRevision = OMX_VERSION_REVISION; \
(Struct).nVersion.s.nStep = OMX_VERSION_STEP;
#define OMX_VERSION_MAJOR
Definition: torcomxcore.h:16
#define OMX_VERSION_REVISION
Definition: torcomxcore.h:22
#define OMX_VERSION_STEP
Definition: torcomxcore.h:25
#define OMX_VERSION_MINOR
Definition: torcomxcore.h:19

Definition at line 28 of file torcomxcore.h.

#define OMX_SKIP64BIT

Definition at line 9 of file torcomxcore.h.

#define OMX_VERSION_MAJOR   1

Definition at line 16 of file torcomxcore.h.

#define OMX_VERSION_MINOR   1

Definition at line 19 of file torcomxcore.h.

#define OMX_VERSION_REVISION   2

Definition at line 22 of file torcomxcore.h.

#define OMX_VERSION_STEP   0

Definition at line 25 of file torcomxcore.h.

Function Documentation

QString CommandToString ( OMX_COMMANDTYPE  Command)

Definition at line 110 of file torcomxcore.cpp.

QString DomainToString ( OMX_INDEXTYPE  Domain)

Definition at line 126 of file torcomxcore.cpp.

QString ErrorToString ( OMX_ERRORTYPE  Error)

Definition at line 61 of file torcomxcore.cpp.

QString EventToString ( OMX_EVENTTYPE  Event)

Definition at line 27 of file torcomxcore.cpp.

QString StateToString ( OMX_STATETYPE  State)

Definition at line 46 of file torcomxcore.cpp.