AJA NTV2 SDK  18.0.0.2717
NTV2 SDK 18.0.0.2717
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 PLFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLINFO(__x__)   AJA_sINFO (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLDBUG(__x__)   AJA_sDEBUG (AJA_DebugUnit_Plugins, 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

◆ PLDBUG

#define PLDBUG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 28 of file ntv2devicescanner.cpp.

◆ PLFAIL

#define PLFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 24 of file ntv2devicescanner.cpp.

◆ PLINFO

#define PLINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 27 of file ntv2devicescanner.cpp.

◆ PLNOTE

#define PLNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 26 of file ntv2devicescanner.cpp.

◆ PLWARN

#define PLWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 25 of file ntv2devicescanner.cpp.

Typedef Documentation

◆ json

Definition at line 21 of file ntv2devicescanner.cpp.

Function Documentation

◆ GetDeviceInfoList()

NTV2DeviceInfoList GetDeviceInfoList ( void  )

Definition at line 128 of file ntv2devicescanner.cpp.

◆ operator<<() [1/8]

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

Definition at line 642 of file ntv2devicescanner.cpp.

◆ operator<<() [2/8]

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

Definition at line 617 of file ntv2devicescanner.cpp.

◆ operator<<() [3/8]

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

Definition at line 721 of file ntv2devicescanner.cpp.

◆ operator<<() [4/8]

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

Definition at line 608 of file ntv2devicescanner.cpp.

◆ operator<<() [5/8]

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

Definition at line 626 of file ntv2devicescanner.cpp.

◆ operator<<() [6/8]

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

Definition at line 651 of file ntv2devicescanner.cpp.

◆ operator<<() [7/8]

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

Definition at line 440 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 739 of file ntv2devicescanner.cpp.

Variable Documentation

◆ sDevInfoList

NTV2DeviceInfoList sDevInfoList
static

Definition at line 84 of file ntv2devicescanner.cpp.

◆ sDevInfoListLock

AJALock sDevInfoListLock
static

Definition at line 85 of file ntv2devicescanner.cpp.