AJA NTV2 SDK  17.5.0.1658
NTV2 SDK 17.5.0.1658
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ntv2vpid.cpp File Reference

Implements the CNTV2VPID class. See the SMPTE 352 standard for details. More...

#include "ntv2vpid.h"
#include "ntv2vpidfromspec.h"
#include "ntv2debug.h"
#include "ntv2utils.h"
#include "ntv2registerexpert.h"
#include <sstream>
Include dependency graph for ntv2vpid.cpp:

Go to the source code of this file.

Classes

class  VPIDTableInitializer
 

Macros

#define NULL   (0)
 
#define VPID_ENUM_CASE_RETURN_STR(enum_name)   case(enum_name): return #enum_name
 
#define YesOrNo(__x__)   ((__x__) ? "Yes" : "No")
 

Functions

static bool stTablesInitialized (false)
 
ostream & operator<< (std::ostream &ostrm, const CNTV2VPID &inData)
 

Variables

static NTV2VideoFormat stTable720p [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable2048p [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable1920p [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable2048psf [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable1920psf [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable2048i [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable1920i [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable3840pSID [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable4096pSID [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable3840psfSID [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable4096psfSID [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable3840pTSI [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable4096pTSI [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable7680p [VPIDPictureRate_ReservedF+1]
 
static NTV2VideoFormat stTable8192p [VPIDPictureRate_ReservedF+1]
 
static VPIDTableInitializer gVPIDTableInitializer
 
static const string sVPIDPictureRate []
 
static const string sVPIDSampling []
 
static const string sVPIDChannel [] = { "1", "2", "3", "4", "5", "6", "7", "8" }
 
static const string sVPIDDynamicRange [] = { "100", "200", "400", "Reserved3" }
 
static const string sVPIDBitDepth [] = { "10 Full", "10", "12", "12 Full" }
 
static const string sVPIDLink [] = { "1", "2", "3", "4", "5", "6", "7", "8" }
 
static const string sVPIDAudio [] = { "Unknown", "Copied", "Additional", "Reserved" }
 
static const string sVPIDTransfer [] = { "SDR", "HLG", "PQ", "Unspecified" }
 
static const string sVPIDColorimetry [] = { "Rec709", "Reserved", "UHDTV", "Unknown" }
 
static const string sVPIDLuminance [] = { "YCbCr", "ICtCp" }
 
static const string sVPIDRGBRange [] = { "Narrow", "Full" }
 

Detailed Description

Implements the CNTV2VPID class. See the SMPTE 352 standard for details.

Definition in file ntv2vpid.cpp.

Macro Definition Documentation

◆ NULL

#define NULL   (0)

Definition at line 18 of file ntv2vpid.cpp.

◆ VPID_ENUM_CASE_RETURN_STR

#define VPID_ENUM_CASE_RETURN_STR (   enum_name)    case(enum_name): return #enum_name

Definition at line 829 of file ntv2vpid.cpp.

◆ YesOrNo

#define YesOrNo (   __x__)    ((__x__) ? "Yes" : "No")

Definition at line 1384 of file ntv2vpid.cpp.

Function Documentation

◆ operator<<()

ostream& operator<< ( std::ostream &  ostrm,
const CNTV2VPID inData 
)

Definition at line 1426 of file ntv2vpid.cpp.

◆ stTablesInitialized()

static bool stTablesInitialized ( false  )
static

Variable Documentation

◆ gVPIDTableInitializer

VPIDTableInitializer gVPIDTableInitializer
static

Definition at line 203 of file ntv2vpid.cpp.

◆ stTable1920i

Definition at line 27 of file ntv2vpid.cpp.

◆ stTable1920p

Definition at line 23 of file ntv2vpid.cpp.

◆ stTable1920psf

NTV2VideoFormat stTable1920psf[VPIDPictureRate_ReservedF+1]
static

Definition at line 25 of file ntv2vpid.cpp.

◆ stTable2048i

Definition at line 26 of file ntv2vpid.cpp.

◆ stTable2048p

Definition at line 22 of file ntv2vpid.cpp.

◆ stTable2048psf

NTV2VideoFormat stTable2048psf[VPIDPictureRate_ReservedF+1]
static

Definition at line 24 of file ntv2vpid.cpp.

◆ stTable3840psfSID

NTV2VideoFormat stTable3840psfSID[VPIDPictureRate_ReservedF+1]
static

Definition at line 30 of file ntv2vpid.cpp.

◆ stTable3840pSID

NTV2VideoFormat stTable3840pSID[VPIDPictureRate_ReservedF+1]
static

Definition at line 28 of file ntv2vpid.cpp.

◆ stTable3840pTSI

NTV2VideoFormat stTable3840pTSI[VPIDPictureRate_ReservedF+1]
static

Definition at line 32 of file ntv2vpid.cpp.

◆ stTable4096psfSID

NTV2VideoFormat stTable4096psfSID[VPIDPictureRate_ReservedF+1]
static

Definition at line 31 of file ntv2vpid.cpp.

◆ stTable4096pSID

NTV2VideoFormat stTable4096pSID[VPIDPictureRate_ReservedF+1]
static

Definition at line 29 of file ntv2vpid.cpp.

◆ stTable4096pTSI

NTV2VideoFormat stTable4096pTSI[VPIDPictureRate_ReservedF+1]
static

Definition at line 33 of file ntv2vpid.cpp.

◆ stTable720p

Definition at line 21 of file ntv2vpid.cpp.

◆ stTable7680p

Definition at line 34 of file ntv2vpid.cpp.

◆ stTable8192p

Definition at line 35 of file ntv2vpid.cpp.

◆ sVPIDAudio

const string sVPIDAudio[] = { "Unknown", "Copied", "Additional", "Reserved" }
static

Definition at line 1330 of file ntv2vpid.cpp.

◆ sVPIDBitDepth

const string sVPIDBitDepth[] = { "10 Full", "10", "12", "12 Full" }
static

Definition at line 1328 of file ntv2vpid.cpp.

◆ sVPIDChannel

const string sVPIDChannel[] = { "1", "2", "3", "4", "5", "6", "7", "8" }
static

Definition at line 1326 of file ntv2vpid.cpp.

◆ sVPIDColorimetry

const string sVPIDColorimetry[] = { "Rec709", "Reserved", "UHDTV", "Unknown" }
static

Definition at line 1332 of file ntv2vpid.cpp.

◆ sVPIDDynamicRange

const string sVPIDDynamicRange[] = { "100", "200", "400", "Reserved3" }
static

Definition at line 1327 of file ntv2vpid.cpp.

◆ sVPIDLink

const string sVPIDLink[] = { "1", "2", "3", "4", "5", "6", "7", "8" }
static

Definition at line 1329 of file ntv2vpid.cpp.

◆ sVPIDLuminance

const string sVPIDLuminance[] = { "YCbCr", "ICtCp" }
static

Definition at line 1333 of file ntv2vpid.cpp.

◆ sVPIDPictureRate

const string sVPIDPictureRate[]
static
Initial value:
= { "None", "Reserved1", "23.98", "24.00", "47.95", "25.00", "29.97", "30.00", "48.00", "50.00", "59.94", "60.00",
"ReservedC", "ReservedD", "ReservedE", "ReservedF" }

Definition at line 1321 of file ntv2vpid.cpp.

◆ sVPIDRGBRange

const string sVPIDRGBRange[] = { "Narrow", "Full" }
static

Definition at line 1334 of file ntv2vpid.cpp.

◆ sVPIDSampling

const string sVPIDSampling[]
static
Initial value:
= { "YCbCr 4:2:2", "YCbCr 4:4:4", "GBR 4:4:4", "YCbCr 4:2:0", "YCbCrA 4:2:2:4", "YCbCrA 4:4:4:4",
"GBRA 4:4:4:4", "Reserved7", "YCbCrD 4:2:2:4", "YCbCrD 4:4:4:4", "GBRD 4:4:4:4", "ReservedB",
"ReservedC", "ReservedD", "ReservedE", "XYZ 4:4:4" }

Definition at line 1323 of file ntv2vpid.cpp.

◆ sVPIDTransfer

const string sVPIDTransfer[] = { "SDR", "HLG", "PQ", "Unspecified" }
static

Definition at line 1331 of file ntv2vpid.cpp.