AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
ntv2player.cpp File Reference

Implementation of NTV2Player class. More...

Include dependency graph for ntv2player.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 ULWord gAncMaxSizeBytes (NTV2_ANCSIZE_MAX)
 The maximum number of bytes of ancillary data that can be transferred for a single field. Each driver instance sets this maximum to the 8K default at startup. It can be changed at runtime, so it's sampled and reset in SetUpVideo. More...
 
static const uint32_t gAudMaxSizeBytes (256 *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 min will suffice, with 768 bytes to spare But it could be more efficient for page-aligned (and page-locked) memory to round to 256K. More...
 
static const bool BUFFER_PAGE_ALIGNED (true)
 
static const ULWord gNumFrequencies (sizeof(gFrequencies)/sizeof(double))
 
ULWord GetRP188RegisterForOutput (const NTV2OutputDestination inOutputDest)
 

Variables

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

Detailed Description

Implementation of NTV2Player class.

Header file for NTV2Player demonstration class.

Definition in file ntv2player.cpp.

Macro Definition Documentation

◆ TCDBG

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

Definition at line 28 of file ntv2player.cpp.

◆ TCFAIL

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

Definition at line 24 of file ntv2player.cpp.

◆ TCINFO

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

Definition at line 27 of file ntv2player.cpp.

◆ TCNOTE

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

Definition at line 26 of file ntv2player.cpp.

◆ TCWARN

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

Definition at line 25 of file ntv2player.cpp.

Function Documentation

◆ BUFFER_PAGE_ALIGNED()

static const bool BUFFER_PAGE_ALIGNED ( true  )
static

◆ gAncMaxSizeBytes()

static ULWord gAncMaxSizeBytes ( NTV2_ANCSIZE_MAX  )
static

The maximum number of bytes of ancillary data that can be transferred for a single field. Each driver instance sets this maximum to the 8K default at startup. It can be changed at runtime, so it's sampled and reset in SetUpVideo.

◆ gAudMaxSizeBytes()

static const uint32_t gAudMaxSizeBytes ( 256 *  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 min will suffice, with 768 bytes to spare But it could be more efficient for page-aligned (and page-locked) memory to round to 256K.

◆ GetRP188RegisterForOutput()

ULWord GetRP188RegisterForOutput ( const NTV2OutputDestination  inOutputDest)

Definition at line 787 of file ntv2player.cpp.

◆ gNumFrequencies()

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

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 52 of file ntv2player.cpp.

◆ gFrequencies

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

Definition at line 50 of file ntv2player.cpp.