AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
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 ULWord kAppSignature (((((uint32_t)( 'D'))<< 24)|(((uint32_t)( 'E'))<< 16)|(((uint32_t)( 'M'))<< 8)|(((uint32_t)( 'O'))<< 0)))
 Used when reserving the AJA device, this specifies the application signature. More...
 
static const ULWord gNumFrequencies (sizeof(gFrequencies)/sizeof(double))
 

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.

◆ gNumFrequencies()

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

◆ kAppSignature()

static const ULWord kAppSignature ( ((((uint32_t)('D'))<< 24)|(((uint32_t)('E'))<< 16)|(((uint32_t)('M'))<< 8)|(((uint32_t)('O'))<< 0))  )
static

Used when reserving the AJA device, this specifies the application signature.

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 526 of file ntv2dolbyplayer.cpp.

◆ gFrequencies

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

Definition at line 524 of file ntv2dolbyplayer.cpp.