|
AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Go to the documentation of this file.
8 #ifndef AJA_ANCILLARYDATA_CEA608_LINE21_H
9 #define AJA_ANCILLARYDATA_CEA608_LINE21_H
52 virtual void Clear (
void);
85 virtual AJAStatus AllocEncodeBuffer (
void);
96 virtual AJAStatus InitEncodeBuffer (
const uint32_t inLineStartOffset, uint32_t & outDataStartOffset);
106 virtual AJAStatus EncodeLine (
const uint8_t inChar1,
const uint8_t inChar2,
const uint32_t inDataStartOffset);
114 virtual uint8_t * EncodeCharacter (uint8_t * ptr,
const uint8_t inChar);
124 virtual uint8_t * EncodeTransition (uint8_t * ptr,
const uint8_t inStartLevel,
const uint8_t inEndLevel);
138 virtual AJAStatus DecodeLine (uint8_t & outChar1, uint8_t & outChar2,
bool & outGotClock)
const;
148 static const uint8_t * CheckDecodeClock (
const uint8_t * pInLine,
bool & outGotClock);
161 static AJAStatus DecodeCharacters (
const uint8_t * ptr, uint8_t & outChar1, uint8_t & outChar2);
172 #endif // AJA_ANCILLARYDATA_CEA608_LINE21_H
const uint32_t AJAAncillaryData_Cea608_Line21_PayloadSize
Declares the AJAAncillaryData class.
virtual void Clear(void)
Frees my allocated memory, if any, and resets my members to their default values.
This class handles "analog" (Line 21) based CEA-608 caption data packets.
const uint8_t AJAAncillaryData_Cea608_Line21_SID
AJAAncDataType
Identifies the ancillary data types that are known to this module.
virtual AJAStatus GeneratePayloadData(void)
Generates the payload data from the "local" ancillary data.
Declaration of the AJAAncillaryDataFactory class.
uint32_t m_dataStartOffset
Offset into the encode buffer where data starts.
static AJAAncDataType RecognizeThisAncillaryData(const AJAAncillaryData *pInAncData)
This is the base class for handling CEA-608 caption data packets.
bool m_bEncodeBufferInitialized
Set 'true' after successfully allocating and initializing the m_payload buffer for encoding.
I am the principal class that stores a single SMPTE-291 SDI ancillary data packet OR the digitized co...
Declares the AJAAncillaryData_Cea608 class.
virtual AJAStatus ParsePayloadData(void)
Parses (interprets) the "local" ancillary data from my payload data.
const uint8_t AJAAncData_AnalogSID
virtual AJAAncillaryData * Clone(void) const
const uint8_t AJAAncData_AnalogDID
const uint8_t AJAAncillaryData_Cea608_Line21_DID
AJAAncillaryData_Cea608 & operator=(const AJAAncillaryData_Cea608 &inRHS)
Assignment operator – replaces my contents with the right-hand-side value.