|
AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Go to the documentation of this file.
94 fieldNum = IsField2() ? 0x01 : 0x00;
95 lineNum = uint8_t(GetLineNumber());
155 <<
"Field: " << (
m_isF2 ?
"F2" :
"F1") << endl
156 <<
"Line: " << dec << uint16_t(
m_lineNum);
static AJAAncDataType RecognizeThisAncillaryData(const AJAAncillaryData *pInAncData)
virtual std::ostream & Print(std::ostream &inOutStream, const bool inDetailed=false) const
Streams a human-readable representation of me to the given output stream.
@ AJAAncDataType_Cea608_Vanc
CEA608 SD Closed Captioning (SMPTE 334 VANC packet)
uint8_t m_DID
Official SMPTE ancillary packet ID (w/o parity)
virtual ~AJAAncillaryData_Cea608_Vanc()
My destructor.
const uint8_t AJAAncillaryData_Cea608_Vanc_SID
@ AJAAncDataType_Unknown
Includes data that is valid, but we don't recognize.
virtual AJAAncillaryData_Cea608_Vanc & operator=(const AJAAncillaryData_Cea608_Vanc &inRHS)
Assignment operator – replaces my contents with the right-hand-side value.
virtual void Clear(void)
Frees my allocated memory, if any, and resets my members to their default values.
virtual AJAStatus GetLine(uint8_t &outFieldNum, uint8_t &outLineNum) const
const uint8_t AJAAncillaryData_Cea608_Vanc_DID
AJAAncDataType
Identifies the ancillary data types that are known to this module.
virtual AJAStatus ParsePayloadData(void)
Parses out (interprets) the "local" ancillary data from my payload data.
AJAStatus AllocDataMemory(const uint32_t inNumBytes)
AJAAncillaryData_Cea608_Vanc()
My default constructor.
This is the base class for handling CEA-608 caption data packets.
I am the principal class that stores a single SMPTE-291 SDI ancillary data packet OR the digitized co...
AJAAncDataCoding m_coding
Analog or digital data.
#define AJA_SUCCESS(_status_)
const uint32_t AJAAncillaryData_Cea608_Vanc_PayloadSize
virtual void Clear(void)
Frees my allocated memory, if any, and resets my members to their default values.
bool m_rcvDataValid
This is set true (or not) by ParsePayloadData()
uint8_t m_SID
Official SMPTE secondary ID (or DBN - w/o parity)
virtual uint8_t Calculate8BitChecksum(void) const
Generates an 8-bit checksum from the DID + SID + DC + payload data.
virtual std::string IDAsString(void) const
virtual AJAStatus GeneratePayloadData(void)
Generate the payload data from my "local" ancillary data.
ByteVector m_payload
My payload data (DC = size)
virtual std::ostream & Print(std::ostream &inOutStream, const bool inDetailed=false) const
Streams a human-readable representation of me to the given output stream.
Declares the AJAAncillaryData_Cea608_Vanc class.
const std::string & AJAAncDataCodingToString(const AJAAncDataCoding inValue, const bool inCompact=true)
@ AJAAncDataCoding_Digital
The ancillary data is in the form of a SMPTE-291 Ancillary Packet.
virtual AJAStatus SetLine(const bool inIsF2, const uint8_t inLineNum)
Sets my SMPTE 334 (CEA608) field/line numbers.
This class handles VANC-based CEA-608 caption data packets (not "analog" Line 21).
AJAAncDataType m_ancType
One of a known set of ancillary data types (or "Custom" if not identified)
AJAAncillaryData_Cea608 & operator=(const AJAAncillaryData_Cea608 &inRHS)
Assignment operator – replaces my contents with the right-hand-side value.
uint8_t m_checksum
My 8-bit checksum: DID + SID + DC + payload (w/o parity) [note: NOT the same as the 9-bit checksum in...