AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Implementation of the AJAAncillaryData class. More...
#include "ntv2publicinterface.h"
#include "ancillarydata.h"
#include "ajabase/system/debug.h"
#include "ajabase/system/atomic.h"
#include "ajabase/system/lock.h"
#include <ios>
Go to the source code of this file.
Typedefs | |
typedef map< uint8_t, string > | DIDToStringMap |
typedef DIDToStringMap::const_iterator | DIDToStringMapCI |
typedef pair< uint8_t, string > | DIDToStringPair |
typedef map< AJAAncDIDSIDPair, string > | DIDSIDToStringMap |
typedef DIDSIDToStringMap::const_iterator | DIDSIDToStringMapCI |
typedef pair< AJAAncDIDSIDPair, string > | DIDSIDToStringPair |
Functions | |
const size_t | sENDL (1) |
static uint32_t | ENDIAN_32NtoH (const uint32_t inValue) |
static uint32_t | ENDIAN_32HtoN (const uint32_t inValue) |
const string & | AJAAncDataLinkToString (const AJAAncDataLink inValue, const bool inCompact) |
const string & | AJAAncDataStreamToString (const AJAAncDataStream inValue, const bool inCompact) |
const string & | AJAAncDataChannelToString (const AJAAncDataChannel inValue, const bool inCompact) |
const string & | AJAAncDataSpaceToString (const AJAAncDataSpace inValue, const bool inCompact) |
string | AJAAncLineNumberToString (const uint16_t inValue) |
string | AJAAncHorizOffsetToString (const uint16_t inValue) |
string | AJAAncDataLocToString (const AJAAncDataLoc &inValue, const bool inCompact) |
ostream & | operator<< (ostream &inOutStream, const AJAAncDataLoc &inValue) |
const string & | AJAAncDataCodingToString (const AJAAncDataCoding inValue, const bool inCompact) |
const string & | AJAAncBufferFormatToString (const AJAAncBufferFormat inValue, const bool inCompact) |
const string & | AJAAncDataTypeToString (const AJAAncDataType inValue, const bool inCompact) |
ostream & | operator<< (ostream &inOutStream, const AJAAncDIDSIDPair &inData) |
string | AncChannelSearchSelectToString (const AncChannelSearchSelect inSelect, const bool inCompact) |
static bool | CheckAncParityAndChecksum (const AJAAncillaryData::U16Packet &inYUV16Line, const uint16_t inStartIndex, const uint16_t inTotalCount, const uint16_t inIncrement=2) |
Variables | |
const uint32_t | AJAAncillaryDataWrapperSize = 7 |
const uint32_t | AJAAuxillaryPacketSize = 32 |
static const size_t | gIndexes [] = { 0,1,2,3, 3,4,5,6, 6,7,8,9, 9,10,11,12, 12,13,14,15 } |
static const unsigned | gShifts [] = { 22,12,2,8, 24,14,4,6, 26,16,6,4, 28,18,8,2, 30,20,10,0 } |
static const uint32_t | gMasks [] |
static const string | gEmptyString |
static AJALock | sDIDToStringLock |
static DIDToStringMap | sDIDToStringMap |
static DIDSIDToStringMap | sDIDSIDToStringMap |
static const NTV2DIDSet | sValidHDMIAuxPacketTypes |
Implementation of the AJAAncillaryData class.
Definition in file ancillarydata.cpp.
#define AJA_ENDIAN_16HtoN | ( | __val__ | ) | AJA_ENDIAN_SWAP16(__val__) |
Definition at line 69 of file ancillarydata.cpp.
#define AJA_ENDIAN_16NtoH | ( | __val__ | ) | AJA_ENDIAN_SWAP16(__val__) |
Definition at line 68 of file ancillarydata.cpp.
#define AJA_ENDIAN_32HtoN | ( | __val__ | ) | AJA_ENDIAN_SWAP32(__val__) |
Definition at line 71 of file ancillarydata.cpp.
#define AJA_ENDIAN_32NtoH | ( | __val__ | ) | AJA_ENDIAN_SWAP32(__val__) |
Definition at line 70 of file ancillarydata.cpp.
#define AJA_ENDIAN_64HtoN | ( | __val__ | ) | AJA_ENDIAN_SWAP64(__val__) |
Definition at line 73 of file ancillarydata.cpp.
#define AJA_ENDIAN_64NtoH | ( | __val__ | ) | AJA_ENDIAN_SWAP64(__val__) |
Definition at line 72 of file ancillarydata.cpp.
#define LOGGING_ANC2110RX AJADebug::IsActive(AJA_DebugUnit_Anc2110Rcv) |
Definition at line 22 of file ancillarydata.cpp.
#define LOGGING_ANC2110TX AJADebug::IsActive(AJA_DebugUnit_Anc2110Xmit) |
Definition at line 23 of file ancillarydata.cpp.
#define LOGGING_ANCDATA AJADebug::IsActive(AJA_DebugUnit_AJAAncData) |
Definition at line 21 of file ancillarydata.cpp.
#define LOGMYDEBUG | ( | __x__ | ) | {if (LOGGING_ANCDATA) AJA_sDEBUG (AJA_DebugUnit_AJAAncData, AJAFUNC << ": " << __x__);} |
Definition at line 29 of file ancillarydata.cpp.
#define LOGMYERROR | ( | __x__ | ) | {if (LOGGING_ANCDATA) AJA_sERROR (AJA_DebugUnit_AJAAncData, AJAFUNC << ": " << __x__);} |
Definition at line 25 of file ancillarydata.cpp.
#define LOGMYINFO | ( | __x__ | ) | {if (LOGGING_ANCDATA) AJA_sINFO (AJA_DebugUnit_AJAAncData, AJAFUNC << ": " << __x__);} |
Definition at line 28 of file ancillarydata.cpp.
#define LOGMYNOTE | ( | __x__ | ) | {if (LOGGING_ANCDATA) AJA_sNOTICE (AJA_DebugUnit_AJAAncData, AJAFUNC << ": " << __x__);} |
Definition at line 27 of file ancillarydata.cpp.
#define LOGMYWARN | ( | __x__ | ) | {if (LOGGING_ANCDATA) AJA_sWARNING(AJA_DebugUnit_AJAAncData, AJAFUNC << ": " << __x__);} |
Definition at line 26 of file ancillarydata.cpp.
#define RCV2110DBG | ( | __x__ | ) | {if (LOGGING_ANC2110RX) AJA_sDEBUG (AJA_DebugUnit_Anc2110Rcv, AJAFUNC << ": " << __x__);} |
Definition at line 35 of file ancillarydata.cpp.
#define RCV2110DDBG | ( | __x__ | ) |
Definition at line 54 of file ancillarydata.cpp.
#define RCV2110ERR | ( | __x__ | ) | {if (LOGGING_ANC2110RX) AJA_sERROR (AJA_DebugUnit_Anc2110Rcv, AJAFUNC << ": " << __x__);} |
Definition at line 31 of file ancillarydata.cpp.
#define RCV2110INFO | ( | __x__ | ) | {if (LOGGING_ANC2110RX) AJA_sINFO (AJA_DebugUnit_Anc2110Rcv, AJAFUNC << ": " << __x__);} |
Definition at line 34 of file ancillarydata.cpp.
#define RCV2110NOTE | ( | __x__ | ) | {if (LOGGING_ANC2110RX) AJA_sNOTICE (AJA_DebugUnit_Anc2110Rcv, AJAFUNC << ": " << __x__);} |
Definition at line 33 of file ancillarydata.cpp.
#define RCV2110WARN | ( | __x__ | ) | {if (LOGGING_ANC2110RX) AJA_sWARNING(AJA_DebugUnit_Anc2110Rcv, AJAFUNC << ": " << __x__);} |
Definition at line 32 of file ancillarydata.cpp.
#define XMT2110DBG | ( | __x__ | ) | {if (LOGGING_ANC2110TX) AJA_sDEBUG (AJA_DebugUnit_Anc2110Xmit, AJAFUNC << ": " << __x__);} |
Definition at line 41 of file ancillarydata.cpp.
#define XMT2110DDBG | ( | __x__ | ) |
Definition at line 55 of file ancillarydata.cpp.
#define XMT2110ERR | ( | __x__ | ) | {if (LOGGING_ANC2110TX) AJA_sERROR (AJA_DebugUnit_Anc2110Xmit, AJAFUNC << ": " << __x__);} |
Definition at line 37 of file ancillarydata.cpp.
#define XMT2110INFO | ( | __x__ | ) | {if (LOGGING_ANC2110TX) AJA_sINFO (AJA_DebugUnit_Anc2110Xmit, AJAFUNC << ": " << __x__);} |
Definition at line 40 of file ancillarydata.cpp.
#define XMT2110NOTE | ( | __x__ | ) | {if (LOGGING_ANC2110TX) AJA_sNOTICE (AJA_DebugUnit_Anc2110Xmit, AJAFUNC << ": " << __x__);} |
Definition at line 39 of file ancillarydata.cpp.
#define XMT2110WARN | ( | __x__ | ) | {if (LOGGING_ANC2110TX) AJA_sWARNING(AJA_DebugUnit_Anc2110Xmit, AJAFUNC << ": " << __x__);} |
Definition at line 38 of file ancillarydata.cpp.
typedef map<AJAAncDIDSIDPair, string> DIDSIDToStringMap |
Definition at line 2021 of file ancillarydata.cpp.
typedef DIDSIDToStringMap::const_iterator DIDSIDToStringMapCI |
Definition at line 2022 of file ancillarydata.cpp.
typedef pair<AJAAncDIDSIDPair, string> DIDSIDToStringPair |
Definition at line 2023 of file ancillarydata.cpp.
typedef map<uint8_t, string> DIDToStringMap |
Definition at line 2018 of file ancillarydata.cpp.
typedef DIDToStringMap::const_iterator DIDToStringMapCI |
Definition at line 2019 of file ancillarydata.cpp.
typedef pair<uint8_t, string> DIDToStringPair |
Definition at line 2020 of file ancillarydata.cpp.
const string& AJAAncBufferFormatToString | ( | const AJAAncBufferFormat | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncBufferFormat to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1381 of file ancillarydata.cpp.
const string& AJAAncDataChannelToString | ( | const AJAAncDataChannel | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataChannel value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1253 of file ancillarydata.cpp.
const string& AJAAncDataCodingToString | ( | const AJAAncDataCoding | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataCoding to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1372 of file ancillarydata.cpp.
const string& AJAAncDataLinkToString | ( | const AJAAncDataLink | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataLink value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1234 of file ancillarydata.cpp.
string AJAAncDataLocToString | ( | const AJAAncDataLoc & | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataLoc to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1359 of file ancillarydata.cpp.
const string& AJAAncDataSpaceToString | ( | const AJAAncDataSpace | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataSpace value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1262 of file ancillarydata.cpp.
const string& AJAAncDataStreamToString | ( | const AJAAncDataStream | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataStream value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1243 of file ancillarydata.cpp.
const string& AJAAncDataTypeToString | ( | const AJAAncDataType | inValue, |
const bool | inCompact = true |
||
) |
[in] | inValue | Specifies the AJAAncDataType value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise use the longer symbolic format. |
Definition at line 1391 of file ancillarydata.cpp.
string AJAAncHorizOffsetToString | ( | const uint16_t | inValue | ) |
[in] | inValue | Specifies the horizontal offset location value to be converted. |
Definition at line 1288 of file ancillarydata.cpp.
string AJAAncLineNumberToString | ( | const uint16_t | inValue | ) |
Definition at line 1271 of file ancillarydata.cpp.
string AncChannelSearchSelectToString | ( | const AncChannelSearchSelect | inSelect, |
const bool | inCompact = true |
||
) |
[in] | inSelect | Specifies the AncChannelSearchSelect value to be converted. |
[in] | inCompact | If true (the default), returns the compact representation; otherwise returns the longer symbolic format. |
Definition at line 1649 of file ancillarydata.cpp.
|
static |
Definition at line 1662 of file ancillarydata.cpp.
|
inlinestatic |
Definition at line 78 of file ancillarydata.cpp.
|
inlinestatic |
Definition at line 77 of file ancillarydata.cpp.
ostream& operator<< | ( | ostream & | inOutStream, |
const AJAAncDataLoc & | inValue | ||
) |
Definition at line 1366 of file ancillarydata.cpp.
ostream& operator<< | ( | ostream & | inOutStream, |
const AJAAncDIDSIDPair & | inData | ||
) |
Definition at line 1475 of file ancillarydata.cpp.
const size_t sENDL | ( | 1 | ) |
const uint32_t AJAAncillaryDataWrapperSize = 7 |
Definition at line 81 of file ancillarydata.cpp.
const uint32_t AJAAuxillaryPacketSize = 32 |
Definition at line 82 of file ancillarydata.cpp.
|
static |
Definition at line 1231 of file ancillarydata.cpp.
|
static |
Definition at line 924 of file ancillarydata.cpp.
|
static |
Definition at line 926 of file ancillarydata.cpp.
|
static |
Definition at line 925 of file ancillarydata.cpp.
|
static |
Definition at line 2026 of file ancillarydata.cpp.
|
static |
Definition at line 2024 of file ancillarydata.cpp.
|
static |
Definition at line 2025 of file ancillarydata.cpp.
|
static |
Definition at line 2136 of file ancillarydata.cpp.