AJA NTV2 SDK  18.1.0.2262
NTV2 SDK 18.1.0.2262
ntv2devicescanner.cpp File Reference

Implementation of CNTV2DeviceScanner class. More...

#include "ntv2devicescanner.h"
#include "ntv2devicefeatures.h"
#include "ntv2utils.h"
#include "ajabase/common/common.h"
#include "ajabase/system/debug.h"
#include "ajabase/system/lock.h"
#include <sstream>
#include "ajabase/system/info.h"
#include "ajabase/common/json.hpp"
#include <fstream>
#include "ajabase/system/file_io.h"
Include dependency graph for ntv2devicescanner.cpp:

Go to the source code of this file.

Macros

#define VDFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDINFO(__x__)   AJA_sINFO (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define VDDBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)
 
#define C2FAIL(__x__)   AJA_sERROR (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)
 
#define C2WARN(__x__)   AJA_sWARNING(AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)
 
#define C2NOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)
 
#define C2INFO(__x__)   AJA_sINFO (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)
 
#define C2DBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)
 

Typedefs

using json = nlohmann::json
 

Functions

NTV2DeviceInfoList GetDeviceInfoList (void)
 
ostream & operator<< (ostream &inOutStr, const NTV2DeviceInfoList &inList)
 
ostream & operator<< (ostream &inOutStr, const NTV2AudioSampleRateList &inList)
 
ostream & operator<< (ostream &inOutStr, const NTV2AudioChannelsPerFrameList &inList)
 
ostream & operator<< (ostream &inOutStr, const NTV2AudioSourceList &inList)
 
ostream & operator<< (ostream &inOutStr, const NTV2AudioBitsPerSampleList &inList)
 
ostream & operator<< (ostream &inOutStr, const NTV2DeviceInfo &inInfo)
 
ostream & operator<< (ostream &inOutStr, const NTV2AudioPhysicalFormat &inFormat)
 
std::ostream & operator<< (std::ostream &inOutStr, const NTV2AudioPhysicalFormatList &inList)
 Streams the AudioPhysicalFormatList to an output stream in a human-readable format. More...
 

Variables

static NTV2DeviceInfoList sDevInfoList
 
static AJALock sDevInfoListLock
 

Detailed Description

Implementation of CNTV2DeviceScanner class.

Definition in file ntv2devicescanner.cpp.

Macro Definition Documentation

◆ C2DBUG

#define C2DBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)

Definition at line 34 of file ntv2devicescanner.cpp.

◆ C2FAIL

#define C2FAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)

Definition at line 30 of file ntv2devicescanner.cpp.

◆ C2INFO

#define C2INFO (   __x__)    AJA_sINFO (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)

Definition at line 33 of file ntv2devicescanner.cpp.

◆ C2NOTE

#define C2NOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)

Definition at line 32 of file ntv2devicescanner.cpp.

◆ C2WARN

#define C2WARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_CP2, AJAFUNC << ": " << __x__)

Definition at line 31 of file ntv2devicescanner.cpp.

◆ VDDBUG

#define VDDBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 28 of file ntv2devicescanner.cpp.

◆ VDFAIL

#define VDFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 24 of file ntv2devicescanner.cpp.

◆ VDINFO

#define VDINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 27 of file ntv2devicescanner.cpp.

◆ VDNOTE

#define VDNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 26 of file ntv2devicescanner.cpp.

◆ VDWARN

#define VDWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_VDev, AJAFUNC << ": " << __x__)

Definition at line 25 of file ntv2devicescanner.cpp.

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 21 of file ntv2devicescanner.cpp.

Function Documentation

◆ GetDeviceInfoList()

NTV2DeviceInfoList GetDeviceInfoList ( void  )

Definition at line 103 of file ntv2devicescanner.cpp.

◆ operator<<() [1/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2DeviceInfoList inList 
)

Definition at line 413 of file ntv2devicescanner.cpp.

◆ operator<<() [2/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2AudioSampleRateList inList 
)

Definition at line 581 of file ntv2devicescanner.cpp.

◆ operator<<() [3/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2AudioChannelsPerFrameList inList 
)

Definition at line 590 of file ntv2devicescanner.cpp.

◆ operator<<() [4/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2AudioSourceList inList 
)

Definition at line 599 of file ntv2devicescanner.cpp.

◆ operator<<() [5/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2AudioBitsPerSampleList inList 
)

Definition at line 615 of file ntv2devicescanner.cpp.

◆ operator<<() [6/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2DeviceInfo inInfo 
)

Definition at line 624 of file ntv2devicescanner.cpp.

◆ operator<<() [7/8]

ostream& operator<< ( ostream &  inOutStr,
const NTV2AudioPhysicalFormat inFormat 
)

Definition at line 694 of file ntv2devicescanner.cpp.

◆ operator<<() [8/8]

std::ostream& operator<< ( std::ostream &  inOutStr,
const NTV2AudioPhysicalFormatList inList 
)

Streams the AudioPhysicalFormatList to an output stream in a human-readable format.

Parameters
inOutStrThe output stream into which the AudioPhysicalFormatList is to be streamed.
[in]inListSpecifies the AudioPhysicalFormatList to be streamed.
Returns
The output stream.

Definition at line 712 of file ntv2devicescanner.cpp.

Variable Documentation

◆ sDevInfoList

NTV2DeviceInfoList sDevInfoList
static

Definition at line 79 of file ntv2devicescanner.cpp.

◆ sDevInfoListLock

AJALock sDevInfoListLock
static

Definition at line 80 of file ntv2devicescanner.cpp.