AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
ntv2player4k.cpp File Reference

Implementation of ntv2player4k class. More...

Include dependency graph for ntv2player4k.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 ((!(0)))
 
static const ULWord gNumFrequencies (sizeof(gFrequencies)/sizeof(double))
 

Variables

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

Detailed Description

Implementation of ntv2player4k class.

Definition in file ntv2player4k.cpp.

Macro Definition Documentation

◆ TCDBG

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

Definition at line 27 of file ntv2player4k.cpp.

◆ TCFAIL

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

Definition at line 23 of file ntv2player4k.cpp.

◆ TCINFO

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

Definition at line 26 of file ntv2player4k.cpp.

◆ TCNOTE

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

Definition at line 25 of file ntv2player4k.cpp.

◆ TCWARN

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

Definition at line 24 of file ntv2player4k.cpp.

Function Documentation

◆ BUFFER_PAGE_ALIGNED()

static const bool BUFFER_PAGE_ALIGNED ( (!(0))  )
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.

◆ gNumFrequencies()

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

Variable Documentation

◆ gFrequencies

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

Definition at line 49 of file ntv2player4k.cpp.