AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Implementation of NTV2DolbyPlayer class. More...
#include "ntv2dolbyplayer.h"
#include "ntv2debug.h"
#include "ntv2devicescanner.h"
#include "ntv2testpatterngen.h"
#include "ntv2audiodefines.h"
#include "ajabase/common/timebase.h"
#include "ajabase/system/process.h"
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 [] |
Implementation of NTV2DolbyPlayer class.
Definition in file ntv2dolbyplayer.cpp.
#define TCDBG | ( | _expr_ | ) | AJA_sDEBUG (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 26 of file ntv2dolbyplayer.cpp.
#define TCFAIL | ( | _expr_ | ) | AJA_sERROR (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 22 of file ntv2dolbyplayer.cpp.
#define TCINFO | ( | _expr_ | ) | AJA_sINFO (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 25 of file ntv2dolbyplayer.cpp.
#define TCNOTE | ( | _expr_ | ) | AJA_sNOTICE (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 24 of file ntv2dolbyplayer.cpp.
#define TCWARN | ( | _expr_ | ) | AJA_sWARNING(AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 23 of file ntv2dolbyplayer.cpp.
|
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.
|
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.
|
static |
|
static |
std::ostream& operator<< | ( | std::ostream & | ioStrm, |
const DolbyPlayerConfig & | inObj | ||
) |
Definition at line 1428 of file ntv2dolbyplayer.cpp.
|
static |
Definition at line 51 of file ntv2dolbyplayer.cpp.
|
static |
Definition at line 49 of file ntv2dolbyplayer.cpp.