AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
ntv2line21captioner.h
Go to the documentation of this file.
1 
7 #ifndef __NTV2_LINE21_CAPTIONER_
8 #define __NTV2_LINE21_CAPTIONER_
9 
10 #include "ntv2captionlogging.h"
11 #include "ntv2caption608types.h"
12 #include <vector>
13 
14 #if !defined(NULL)
15  #define NULL 0
16 #endif
17 
35 {
36  // Class Methods
37  public:
49  static bool DecodeLine (const UByte * pLineData, UByte & outChar1, UByte & outChar2);
50 
60  static bool DecodeLine (const std::vector<uint8_t> & inLineData, std::vector<uint8_t> & outData);
61 
69  static const UByte * FindFirstDataBit_NTSC (const void * pInVideoLine);
70 
77  static std::vector<uint8_t>::size_type FindFirstDataBit_NTSC (const std::vector<uint8_t> & in2VUYLine);
78 
79 
80  // Class Data
81  public:
82  static const UWord CC_LINE_WIDTH_PIXELS = 720;
83  static const UWord ENCODE_LINE_LENGTH_BYTES = CC_LINE_WIDTH_PIXELS * 2;
84 
85 
86  // Instance Methods
87  public:
92 
96  virtual ~CNTV2Line21Captioner ();
97 
108  virtual UByte * EncodeLine (const UByte inByte1, const UByte inByte2);
109 
110  private:
111  virtual void InitEncodeBuffer (void);
112  virtual UByte * EncodeCharacter (UByte * pBuffer, const UByte inByte);
113 
114  // Instance Data
115  private:
116  UByte mEncodeBuffer [CC_LINE_WIDTH_PIXELS * 2];
117  bool mEncodeBufferInitialized;
119  ULWord mEncodePixelOffset;
120  ULWord mEncodeFirstDataBitOffset;
121 
122 }; // CNTV2Line21Captioner
123 
124 #endif // __NTV2_LINE21_CAPTIONER_
ntv2caption608types.h
Declares several data types used with 608/SD captioning.
ULWord
uint32_t ULWord
Definition: ajatypes.h:255
UWord
uint16_t UWord
Definition: ajatypes.h:253
UByte
uint8_t UByte
Definition: ajatypes.h:250
AJAExport
#define AJAExport
Definition: export.h:33
CNTV2CaptionLogConfig
Definition: ntv2captionlogging.h:77
CNTV2Line21Captioner
Instances of me can encode two ASCII characters into a "line 21" closed-captioning waveform....
Definition: ntv2line21captioner.h:34
ntv2captionlogging.h
Declares the NTV2CaptionLogMask, and the CNTV2CaptionLogConfig class.