AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Implementation of NTV2Player class. More...
#include "ntv2player.h"
#include "ntv2debug.h"
#include "ntv2devicescanner.h"
#include "ntv2audiodefines.h"
#include "ntv2testpatterngen.h"
#include "ajabase/common/timebase.h"
#include "ajabase/system/process.h"
#include "ajabase/system/file_io.h"
#include "ajaanc/includes/ancillarydata_hdr_sdr.h"
#include "ajaanc/includes/ancillarydata_hdr_hdr10.h"
#include "ajaanc/includes/ancillarydata_hdr_hlg.h"
#include <fstream>
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)) |
static uint64_t | sTotalAncFileBytes (0) |
static uint64_t | sCurrentAncFileBytes (0) |
ULWord | GetRP188RegisterForOutput (const NTV2OutputDestination inOutputDest) |
Variables | |
static const double | gFrequencies [] = {250.0, 500.0, 1000.0, 2000.0} |
static const double | gAmplitudes [] |
Implementation of NTV2Player class.
Header file for NTV2Player demonstration class.
Definition in file ntv2player.cpp.
#define TCDBG | ( | _expr_ | ) | AJA_sDEBUG (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 30 of file ntv2player.cpp.
#define TCFAIL | ( | _expr_ | ) | AJA_sERROR (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 26 of file ntv2player.cpp.
#define TCINFO | ( | _expr_ | ) | AJA_sINFO (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 29 of file ntv2player.cpp.
#define TCNOTE | ( | _expr_ | ) | AJA_sNOTICE (AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 28 of file ntv2player.cpp.
#define TCWARN | ( | _expr_ | ) | AJA_sWARNING(AJA_DebugUnit_TimecodeGeneric, AJAFUNC << ": " << _expr_) |
Definition at line 27 of file ntv2player.cpp.
|
static |
|
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.
|
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.
ULWord GetRP188RegisterForOutput | ( | const NTV2OutputDestination | inOutputDest | ) |
Definition at line 836 of file ntv2player.cpp.
|
static |
static uint64_t sCurrentAncFileBytes | ( | 0 | ) |
|
static |
|
static |
Definition at line 54 of file ntv2player.cpp.
|
static |
Definition at line 52 of file ntv2player.cpp.