MythTV  master
Macros | Functions
privatedecoder_omx.cpp File Reference
#include "privatedecoder_omx.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <OMX_Video.h>
#include <QMutexLocker>
#include "libavutil/pixdesc.h"
#include "libavcodec/avcodec.h"
#include "libavutil/imgutils.h"
#include "avformatdecoder.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "omxcontext.h"
#include "mythavutil.h"
Include dependency graph for privatedecoder_omx.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("DOMX:%1 ").arg(m_videc.Id())
 
#define _STR(s)   #s
 
#define STR(s)   _STR(s)
 
#define FRAMESETHDR(f, h)   ((f)->priv[2] = reinterpret_cast<unsigned char* >(h))
 
#define FRAMESETHDRNONE(f)   ((f)->priv[2] = nullptr)
 
#define FRAME2HDR(f)   ((OMX_BUFFERHEADERTYPE*)((f)->priv[2]))
 
#define FRAMESETREF(f, r)   ((f)->priv[1] = reinterpret_cast<unsigned char* >(r))
 
#define FRAMESETREFNONE(f)   ((f)->priv[1] = nullptr)
 
#define FRAME2REF(f)   ((AVBufferRef*)((f)->priv[1]))
 
#define HDR2FRAME(h)   ((VideoFrame*)((h)->pAppPrivate))
 
#define VIDEO_DECODE   "video_decode"
 
#define CASE2STR(f)   case f: return STR(f)
 
#define CASE2STR_(f)   case f: return #f
 

Functions

static const char * H264Profile2String (int profile)
 
static OMX_TICKS Pts2Ticks (AVStream *stream, int64_t pts)
 
static int64_t Ticks2Pts (AVStream *stream, OMX_TICKS ticks)
 

Macro Definition Documentation

◆ LOC

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

Definition at line 29 of file privatedecoder_omx.cpp.

◆ _STR

#define _STR (   s)    #s

Definition at line 32 of file privatedecoder_omx.cpp.

◆ STR

#define STR (   s)    _STR(s)

Definition at line 33 of file privatedecoder_omx.cpp.

◆ FRAMESETHDR

#define FRAMESETHDR (   f,
 
)    ((f)->priv[2] = reinterpret_cast<unsigned char* >(h))

Definition at line 36 of file privatedecoder_omx.cpp.

◆ FRAMESETHDRNONE

#define FRAMESETHDRNONE (   f)    ((f)->priv[2] = nullptr)

Definition at line 37 of file privatedecoder_omx.cpp.

◆ FRAME2HDR

#define FRAME2HDR (   f)    ((OMX_BUFFERHEADERTYPE*)((f)->priv[2]))

Definition at line 38 of file privatedecoder_omx.cpp.

◆ FRAMESETREF

#define FRAMESETREF (   f,
  r 
)    ((f)->priv[1] = reinterpret_cast<unsigned char* >(r))

Definition at line 39 of file privatedecoder_omx.cpp.

◆ FRAMESETREFNONE

#define FRAMESETREFNONE (   f)    ((f)->priv[1] = nullptr)

Definition at line 40 of file privatedecoder_omx.cpp.

◆ FRAME2REF

#define FRAME2REF (   f)    ((AVBufferRef*)((f)->priv[1]))

Definition at line 41 of file privatedecoder_omx.cpp.

◆ HDR2FRAME

#define HDR2FRAME (   h)    ((VideoFrame*)((h)->pAppPrivate))

Definition at line 42 of file privatedecoder_omx.cpp.

◆ VIDEO_DECODE

#define VIDEO_DECODE   "video_decode"

Definition at line 48 of file privatedecoder_omx.cpp.

◆ CASE2STR

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

Definition at line 1290 of file privatedecoder_omx.cpp.

◆ CASE2STR_

#define CASE2STR_ (   f)    case f: return #f

Definition at line 1291 of file privatedecoder_omx.cpp.

Function Documentation

◆ H264Profile2String()

static const char * H264Profile2String ( int  profile)
static

Definition at line 1293 of file privatedecoder_omx.cpp.

Referenced by PrivateDecoderOMX::Init().

◆ Pts2Ticks()

static OMX_TICKS Pts2Ticks ( AVStream *  stream,
int64_t  pts 
)
inlinestatic

Definition at line 73 of file privatedecoder_omx.cpp.

Referenced by PrivateDecoderOMX::ProcessPacket().

◆ Ticks2Pts()

static int64_t Ticks2Pts ( AVStream *  stream,
OMX_TICKS  ticks 
)
inlinestatic

Definition at line 82 of file privatedecoder_omx.cpp.

Referenced by PrivateDecoderOMX::GetBufferedFrame().