AJA NTV2 SDK  17.6.0.1688
NTV2 SDK 17.6.0.1688
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ntv2dolbyplayer.cpp File Reference

Implementation of NTV2DolbyPlayer class. More...

Include dependency graph for ntv2dolbyplayer.cpp:

Go to the source code of this file.

Macros

#define TCFAIL(_expr_)   AJA_sERROR (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)
 
#define TCWARN(_expr_)   AJA_sWARNING(AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)
 
#define TCNOTE(_expr_)   AJA_sNOTICE (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)
 
#define TCINFO(_expr_)   AJA_sINFO (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)
 
#define TCDBG(_expr_)   AJA_sDEBUG (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)
 

Functions

static const uint32_t AUDIOBYTES_MAX_48K (201 *1024)
 The maximum number of bytes of 48KHz audio that can be transferred for a single frame. Worst case, assuming 16 channels of audio (max), 4 bytes per sample, and 67 msec per frame (assuming the lowest possible frame rate of 14.98 fps)... 48,000 samples per second requires 3,204 samples x 4 bytes/sample x 16 = 205,056 bytes 201K will suffice, with 768 bytes to spare. More...
 
static const uint32_t AUDIOBYTES_MAX_192K (824 *1024)
 The maximum number of bytes of 192KHz audio that can be transferred for a single frame. Worst case, assuming 8 channels of audio (max), 4 bytes per sample, and 67 msec per frame (assuming the lowest possible frame rate of 14.98 fps)... 96,000 samples per second requires 12,864 samples x 4 bytes/sample x 16 = 823,296 bytes 824K will suffice. More...
 
static const bool BUFFER_PAGE_ALIGNED ((!(0)))
 
static const ULWord gNumFrequencies (sizeof(gFrequencies)/sizeof(double))
 
std::ostream & operator<< (std::ostream &ioStrm, const DolbyPlayerConfig &inObj)
 

Variables

static const double gFrequencies [] = {250.0, 500.0, 1000.0, 2000.0}
 
static const double gAmplitudes []
 

Detailed Description

Implementation of NTV2DolbyPlayer class.

Definition in file ntv2dolbyplayer.cpp.

Macro Definition Documentation

◆ TCDBG

#define TCDBG (   _expr_)    AJA_sDEBUG (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)

Definition at line 26 of file ntv2dolbyplayer.cpp.

◆ TCFAIL

#define TCFAIL (   _expr_)    AJA_sERROR (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)

Definition at line 22 of file ntv2dolbyplayer.cpp.

◆ TCINFO

#define TCINFO (   _expr_)    AJA_sINFO (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)

Definition at line 25 of file ntv2dolbyplayer.cpp.

◆ TCNOTE

#define TCNOTE (   _expr_)    AJA_sNOTICE (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)

Definition at line 24 of file ntv2dolbyplayer.cpp.

◆ TCWARN

#define TCWARN (   _expr_)    AJA_sWARNING(AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_)

Definition at line 23 of file ntv2dolbyplayer.cpp.

Function Documentation

◆ AUDIOBYTES_MAX_192K()

static const uint32_t AUDIOBYTES_MAX_192K ( 824 *  1024)
static

The maximum number of bytes of 192KHz audio that can be transferred for a single frame. Worst case, assuming 8 channels of audio (max), 4 bytes per sample, and 67 msec per frame (assuming the lowest possible frame rate of 14.98 fps)... 96,000 samples per second requires 12,864 samples x 4 bytes/sample x 16 = 823,296 bytes 824K will suffice.

◆ AUDIOBYTES_MAX_48K()

static const uint32_t AUDIOBYTES_MAX_48K ( 201 *  1024)
static

The maximum number of bytes of 48KHz audio that can be transferred for a single frame. Worst case, assuming 16 channels of audio (max), 4 bytes per sample, and 67 msec per frame (assuming the lowest possible frame rate of 14.98 fps)... 48,000 samples per second requires 3,204 samples x 4 bytes/sample x 16 = 205,056 bytes 201K will suffice, with 768 bytes to spare.

◆ BUFFER_PAGE_ALIGNED()

static const bool BUFFER_PAGE_ALIGNED ( (!(0))  )
static

◆ gNumFrequencies()

static const ULWord gNumFrequencies ( sizeof(gFrequencies)/sizeof(double)  )
static

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ioStrm,
const DolbyPlayerConfig inObj 
)

Definition at line 1428 of file ntv2dolbyplayer.cpp.

Variable Documentation

◆ gAmplitudes

const double gAmplitudes[]
static
Initial value:
= { 0.10, 0.15, 0.20, 0.25, 0.30, 0.35, 0.40, 0.45, 0.50, 0.55, 0.60, 0.65, 0.70, 0.75, 0.80, 0.85,
0.85, 0.80, 0.75, 0.70, 0.65, 0.60, 0.55, 0.50, 0.45, 0.40, 0.35, 0.30, 0.25, 0.20, 0.15, 0.10}

Definition at line 51 of file ntv2dolbyplayer.cpp.

◆ gFrequencies

const double gFrequencies[] = {250.0, 500.0, 1000.0, 2000.0}
static

Definition at line 49 of file ntv2dolbyplayer.cpp.