MythTV  master
Namespaces | Macros | Functions | Variables
omxcontext.cpp File Reference
#include "omxcontext.h"
#include <cstddef>
#include <cassert>
#include <OMX_Core.h>
#include <QRegExp>
#include <QAtomicInt>
#include "mythlogging.h"
Include dependency graph for omxcontext.cpp:

Go to the source code of this file.

Namespaces

 omxcontext
 

Macros

#define LOC   QString("OMX:%1 ").arg(Id())
 
#define LOCA   QString("OMX: ")
 
#define LOCB(c)   QString("OMX:%1 ").arg((c).Id())
 
#define _STR(s)   #s
 
#define STR(s)   _STR(s)
 
#define STATIC_ASSERT(e)   extern char _dummy[(e) ? 1 : -1]
 
#define CASE2STR(f)   case f: return STR(f)
 
#define FLAG2LIST(_f, _n, _l)
 

Functions

static void ShowFormat (const OMXComponent &cmpnt, LogLevel_t level, uint64_t mask, const OMX_VIDEO_PARAM_PORTFORMATTYPE &fmt)
 
static void ShowFormat (const OMXComponent &cmpnt, LogLevel_t level, uint64_t mask, const OMX_IMAGE_PARAM_PORTFORMATTYPE &fmt)
 
static void ShowFormat (const OMXComponent &cmpnt, LogLevel_t level, uint64_t mask, const OMX_AUDIO_PARAM_PORTFORMATTYPE &fmt)
 
static void ShowFormat (const OMXComponent &cmpnt, LogLevel_t level, uint64_t mask, const OMX_OTHER_PARAM_PORTFORMATTYPE &fmt)
 
template<typename T , OMX_INDEXTYPE type>
void ShowFormats (const OMXComponent &cmpnt, unsigned n, LogLevel_t level, uint64_t mask)
 
const char * omxcontext::Coding2String (OMX_VIDEO_CODINGTYPE eCompressionFormat)
 
const char * omxcontext::Coding2String (OMX_IMAGE_CODINGTYPE eCompressionFormat)
 
const char * omxcontext::Coding2String (OMX_AUDIO_CODINGTYPE eEncoding)
 
const char * omxcontext::Other2String (OMX_OTHER_FORMATTYPE eFormat)
 
const char * omxcontext::Format2String (OMX_COLOR_FORMATTYPE eColorFormat)
 
const char * omxcontext::Event2String (OMX_EVENTTYPE eEvent)
 
const char * omxcontext::Error2String (OMX_ERRORTYPE eError)
 
const char * omxcontext::State2String (OMX_STATETYPE eState)
 
const char * omxcontext::Command2String (OMX_COMMANDTYPE cmd)
 
QString omxcontext::HeaderFlags (OMX_U32 nFlags)
 
const char * omxcontext::Filter2String (OMX_IMAGEFILTERTYPE eType)
 

Variables

static QAtomicInt s_iRefcnt
 
static int s_ref
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("OMX:%1 ").arg(Id())

Definition at line 17 of file omxcontext.cpp.

◆ LOCA

#define LOCA   QString("OMX: ")

Definition at line 18 of file omxcontext.cpp.

◆ LOCB

#define LOCB (   c)    QString("OMX:%1 ").arg((c).Id())

Definition at line 19 of file omxcontext.cpp.

◆ _STR

#define _STR (   s)    #s

Definition at line 23 of file omxcontext.cpp.

◆ STR

#define STR (   s)    _STR(s)

Definition at line 24 of file omxcontext.cpp.

◆ STATIC_ASSERT

#define STATIC_ASSERT (   e)    extern char _dummy[(e) ? 1 : -1]

Definition at line 31 of file omxcontext.cpp.

◆ CASE2STR

#define CASE2STR (   f)    case f: return STR(f)

Definition at line 790 of file omxcontext.cpp.

◆ FLAG2LIST

#define FLAG2LIST (   _f,
  _n,
  _l 
)
Value:
do {\
if ((_n) & OMX_BUFFERFLAG_##_f) {\
(_n) &= ~OMX_BUFFERFLAG_##_f;\
(_l) << STR(_f);\
}\
} while(false)
#define STR(s)
Definition: omxcontext.cpp:24

Definition at line 1107 of file omxcontext.cpp.

Function Documentation

◆ ShowFormat() [1/4]

static void ShowFormat ( const OMXComponent cmpnt,
LogLevel_t  level,
uint64_t  mask,
const OMX_VIDEO_PARAM_PORTFORMATTYPE &  fmt 
)
inlinestatic

Definition at line 369 of file omxcontext.cpp.

Referenced by ShowFormats().

◆ ShowFormat() [2/4]

static void ShowFormat ( const OMXComponent cmpnt,
LogLevel_t  level,
uint64_t  mask,
const OMX_IMAGE_PARAM_PORTFORMATTYPE &  fmt 
)
inlinestatic

Definition at line 379 of file omxcontext.cpp.

◆ ShowFormat() [3/4]

static void ShowFormat ( const OMXComponent cmpnt,
LogLevel_t  level,
uint64_t  mask,
const OMX_AUDIO_PARAM_PORTFORMATTYPE &  fmt 
)
inlinestatic

Definition at line 389 of file omxcontext.cpp.

◆ ShowFormat() [4/4]

static void ShowFormat ( const OMXComponent cmpnt,
LogLevel_t  level,
uint64_t  mask,
const OMX_OTHER_PARAM_PORTFORMATTYPE &  fmt 
)
inlinestatic

Definition at line 398 of file omxcontext.cpp.

◆ ShowFormats()

template<typename T , OMX_INDEXTYPE type>
void ShowFormats ( const OMXComponent cmpnt,
unsigned  n,
LogLevel_t  level,
uint64_t  mask 
)

Definition at line 408 of file omxcontext.cpp.

Variable Documentation

◆ s_iRefcnt

QAtomicInt s_iRefcnt
static

Definition at line 71 of file omxcontext.cpp.

Referenced by OMXComponent::DecrRef(), and OMXComponent::IncrRef().

◆ s_ref

int s_ref
static

Definition at line 72 of file omxcontext.cpp.