MythTV  master
Macros | Functions | Variables
privatedecoder_vda.cpp File Reference
#include "mythlogging.h"
#include "mythframe.h"
#include "mythavutil.h"
#include "util-osx-cocoa.h"
#include "privatedecoder_vda.h"
#include "util-osx.h"
#include "H264Parser.h"
#include <CoreServices/CoreServices.h>
#include "libavformat/avformat.h"
#include "libavutil/imgutils.h"
Include dependency graph for privatedecoder_vda.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("VDADec: ")
 
#define ERR   QString("VDADec error: ")
 
#define INIT_ST   OSStatus vda_st; bool ok = true
 
#define CHECK_ST
 
#define VDA_RB16(x)
 
#define VDA_RB24(x)
 
#define VDA_RB32(x)
 
#define VDA_WB32(p, d)
 

Functions

QString vda_err_to_string (OSStatus err)
 
static const uint8_t * avc_find_startcode_internal (const uint8_t *p, const uint8_t *end)
 
const uint8_t * avc_find_startcode (const uint8_t *p, const uint8_t *end)
 
int avc_parse_nal_units (AVIOContext *pb, const uint8_t *buf_in, int size)
 
int avc_parse_nal_units_buf (const uint8_t *buf_in, uint8_t **buf, int *size)
 
int isom_write_avcc (AVIOContext *pb, const uint8_t *data, int len)
 

Variables

VDALibrarygVDALib = nullptr
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("VDADec: ")

Definition at line 5 of file privatedecoder_vda.cpp.

◆ ERR

#define ERR   QString("VDADec error: ")

Definition at line 6 of file privatedecoder_vda.cpp.

◆ INIT_ST

#define INIT_ST   OSStatus vda_st; bool ok = true

Definition at line 81 of file privatedecoder_vda.cpp.

◆ CHECK_ST

#define CHECK_ST
Value:
ok &= (vda_st == kVDADecoderNoErr); \
if (!ok) \
LOG(VB_GENERAL, LOG_ERR, LOC + QString("Error at %1:%2 (#%3, %4)") \
.arg(__FILE__).arg( __LINE__).arg(vda_st) \
.arg(vda_err_to_string(vda_st)))
#define LOC
QString vda_err_to_string(OSStatus err)

Definition at line 82 of file privatedecoder_vda.cpp.

◆ VDA_RB16

#define VDA_RB16 (   x)
Value:
((((const uint8_t*)(x))[0] << 8) | \
((const uint8_t*)(x)) [1])

Definition at line 115 of file privatedecoder_vda.cpp.

◆ VDA_RB24

#define VDA_RB24 (   x)
Value:
((((const uint8_t*)(x))[0] << 16) | \
(((const uint8_t*)(x))[1] << 8) | \
((const uint8_t*)(x))[2])

Definition at line 119 of file privatedecoder_vda.cpp.

◆ VDA_RB32

#define VDA_RB32 (   x)
Value:
((((const uint8_t*)(x))[0] << 24) | \
(((const uint8_t*)(x))[1] << 16) | \
(((const uint8_t*)(x))[2] << 8) | \
((const uint8_t*)(x))[3])

Definition at line 124 of file privatedecoder_vda.cpp.

◆ VDA_WB32

#define VDA_WB32 (   p,
  d 
)
Value:
{ \
((uint8_t*)(p))[3] = (d); \
((uint8_t*)(p))[2] = (d) >> 8; \
((uint8_t*)(p))[1] = (d) >> 16; \
((uint8_t*)(p))[0] = (d) >> 24; }
static const uint16_t * d

Definition at line 130 of file privatedecoder_vda.cpp.

Function Documentation

◆ vda_err_to_string()

QString vda_err_to_string ( OSStatus  err)

Definition at line 89 of file privatedecoder_vda.cpp.

◆ avc_find_startcode_internal()

static const uint8_t* avc_find_startcode_internal ( const uint8_t *  p,
const uint8_t *  end 
)
static

Definition at line 136 of file privatedecoder_vda.cpp.

Referenced by avc_find_startcode().

◆ avc_find_startcode()

const uint8_t* avc_find_startcode ( const uint8_t *  p,
const uint8_t *  end 
)

Definition at line 177 of file privatedecoder_vda.cpp.

Referenced by avc_parse_nal_units().

◆ avc_parse_nal_units()

int avc_parse_nal_units ( AVIOContext *  pb,
const uint8_t *  buf_in,
int  size 
)

Definition at line 185 of file privatedecoder_vda.cpp.

Referenced by avc_parse_nal_units_buf(), and PrivateDecoderVDA::GetFrame().

◆ avc_parse_nal_units_buf()

int avc_parse_nal_units_buf ( const uint8_t *  buf_in,
uint8_t **  buf,
int *  size 
)

Definition at line 205 of file privatedecoder_vda.cpp.

Referenced by isom_write_avcc().

◆ isom_write_avcc()

int isom_write_avcc ( AVIOContext *  pb,
const uint8_t *  data,
int  len 
)

Definition at line 220 of file privatedecoder_vda.cpp.

Referenced by PrivateDecoderVDA::Init().

Variable Documentation

◆ gVDALib

VDALibrary* gVDALib = nullptr

Definition at line 22 of file privatedecoder_vda.cpp.

Referenced by VDALibrary::GetVDALibrary().