AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
ntv2captiontranslatorchannel608to708.h
Go to the documentation of this file.
1 
7 #ifndef __NTV2_CEA608to708_TRANSLATORCHANNEL_
8 #define __NTV2_CEA608to708_TRANSLATORCHANNEL_
9 
11 #include "ntv2captionencoder708.h"
13 
14 
15 #ifdef MSWindows
16  #include "windows.h"
17  #include "stdio.h"
18 #endif
19 
20 
21 // Number of 708 screen coordinate "cells" per 608 text row (i.e. 5)
23 
24 
25 const int NTV2_CC708DefaultPopOnWindowID = 0; // The first of NTV2_CC708NumPopOnWindows consecutive indices alternately used for PopOn mode
27 
31 
32 
33 // Default 608 Window Parms
37 
38 const int NTV2_CC708Default608PopOnWindowStyleID = 2; // Window Styles depend on mode
41 
42 const int NTV2_CC708Default608PopOnPenStyleID = 4; // Pen Styles depend on mode
45 
46 
47 // Default 608 Window Attributes
57 
58 
59 // Default 608 Pen Attributes
67 
68 
70 
71 
72 
73 // composite struct to hold status for each window
74 //
75 typedef struct CC708WindowStatus
76 {
77  bool bDefined;
78  bool bDirty;
84 
85 } CC708WindowStatus; // , *CC708WindowStatusPtr;
86 
87 
88 
123 
125 {
126  // CLASS METHODS
127  public:
128  static bool Create (CNTV2CaptionTranslatorChannel608to708Ptr & outInstance);
129 
130 
131  // INSTANCE METHODS
132  public:
134 
135  virtual void Reset (void);
136 
137  virtual void Set708ServiceNumber (int serviceNum);
138  virtual inline int Get708ServiceNumber (void) const {return m_708ServiceNum;}
139 
140  virtual void Set708TranslateEnable (bool enable);
141  virtual inline bool Get708TranslateEnable (void) const {return m_708TranslateEnable;}
142 
143  virtual bool SetChannel (const NTV2Line21Channel inChannel); // Override
144 
145 
146  virtual bool Init608CCWindowStatus (int winID, NTV2Line21Mode mode = NTV2_CC608_CapModePopOn);
147  virtual bool Init608CCWindowParms (CC708WindowParms & outParms, const NTV2Line21Mode inMode = NTV2_CC608_CapModePopOn) const;
148  virtual bool Init608CCWindowAttributes (CC708WindowAttr & outAttr, const NTV2Line21Mode inMode = NTV2_CC608_CapModePopOn) const;
149  virtual bool Init608CCPenAttributes (CC708PenAttr & outAttr, const NTV2Line21Mode inMode = NTV2_CC608_CapModePopOn) const;
150  virtual bool Init608CCPenColor (CC708PenColor & outColor, const NTV2Line21Mode inMode = NTV2_CC608_CapModePopOn) const;
151  virtual bool Init608CCPenLocation (CC708PenLocation & outLoc, const NTV2Line21Mode inMode = NTV2_CC608_CapModePopOn) const;
152 
153  virtual bool DeleteWindow (int winID);
154  virtual bool IsWindowDefined (const int winID) const;
155  virtual bool IsWindowDirty (const int winID) const;
156 
157  virtual bool GetCurrentEditWindowID (int * pWindowID = NULL, NTV2Line21Mode mode = NTV2_CC608_CapModeUnknown, bool * pbNewWindow = NULL);
158  virtual int GetCurrentModeWindowID (void);
159 
160  virtual bool GetNextServiceBlockInfoFromQueue (size_t & outBlockSize, size_t & outDataSize, int & outServiceNum, bool & outIsExtended);
161  virtual size_t GetNextServiceBlockFromQueue (UByte * pOutDataBuffer);
162  virtual size_t GetNextServiceBlockDataFromQueue (UByte * pOutDataBuffer);
163 
164 
165  // PROTECTED METHODS
166  protected:
167 
168  virtual bool Parse608CharacterData (UByte char608_1, UByte char608_2, std::string & outDebugStr);
169  virtual bool Parse608TabOffsetCommand (UByte char608_1, UByte char608_2, std::string & outDebugStr);
170  virtual bool Parse608CharacterSetCommand (UByte char608_1, UByte char608_2, std::string & outDebugStr);
171  virtual bool Parse608AttributeCommand (UByte char608_1, UByte char608_2, std::string & outDebugStr);
172  virtual bool Parse608PACCommand (UByte char608_1, UByte char608_2, std::string & outDebugStr);
173  virtual bool Parse608MidRowCommand (UByte char608_1, UByte char608_2, std::string & outDebugStr);
174  virtual bool Parse608SpecialCharacter (UByte char608_1, UByte char608_2, std::string & outDebugStr);
175 
176  virtual bool DoBackspace (void);
177  virtual bool DoDeleteToEndOfRow (void);
178  virtual bool DoRollUpCaption (const UWord inRowCount);
179  virtual bool DoFlashOn (void);
180  virtual bool DoTextRestart (void);
181  virtual bool DoResumeTextDisplay (void);
182  virtual bool DoEraseDisplayedMemory (void);
183  virtual bool DoCarriageReturn (void);
184  virtual bool DoEraseNonDisplayedMemory (void);
185  virtual bool DoEndOfCaption (void);
186 
187  virtual bool GetCurrentPenLocation (CC708PenLocation & outLoc, int inWindowID = NTV2_CC708WindowIDMin - 1) const;
188  virtual UWord GetWindowRowOffset (int windowID) const;
189  virtual bool GetCurrentPenColor (CC708PenColor & outColor) const;
190  virtual bool GetCurrentPenAttributes (CC708PenAttr & outAttr) const;
191 
192  static bool Convert608CharacterTo708 (const UByte inChar608, UByte & outChar708_1, UByte & outChar708_2);
193 
194  virtual bool QueueServiceBlock_CharacterData (int serviceNum, UByte ccChar);
195  virtual bool QueueServiceBlock_TwoByteData (int serviceNum, UByte ccChar1, UByte ccChar2);
196  virtual bool QueueServiceBlock_SetCurrentWindow (int serviceNum, int windowID);
197  virtual bool QueueServiceBlock_DefineWindow (const int inServiceNum, const int inWindowID, const CC708WindowParms & inParms);
198  virtual bool QueueServiceBlock_ClearWindows (int serviceNum, UByte windowMap);
199  virtual bool QueueServiceBlock_DeleteWindows (int serviceNum, UByte windowEnables);
200  virtual bool QueueServiceBlock_DisplayWindows (int serviceNum, UByte windowMap);
201  virtual bool QueueServiceBlock_HideWindows (int serviceNum, UByte windowMap);
202  virtual bool QueueServiceBlock_ToggleWindows (int serviceNum, UByte windowMap);
203  virtual bool QueueServiceBlock_SetWindowAttributes (const int inServiceNum, const CC708WindowAttr & inAttr);
204  virtual bool QueueServiceBlock_SetPenAttributes (const int inServiceNum, const CC708PenAttr & inAttr);
205  virtual bool QueueServiceBlock_SetPenColor (const int inServiceNum, const CC708PenColor & inColor);
206  virtual bool QueueServiceBlock_SetPenLocation (const int inServiceNum, const CC708PenLocation & pLoc);
207  virtual bool QueueServiceBlock_Delay (int serviceNum, const UByte delay);
208  virtual bool QueueServiceBlock_DelayCancel (int serviceNum);
209  virtual bool QueueServiceBlock_Reset (int serviceNum);
210 
211 
212  // PRIVATE METHODS
213  private:
214  // Hidden constructor, copy constructor, and assignment operator
218 
219 
220  // INSTANCE DATA
221  private:
222  int m_708ServiceNum;
223  int m_608PopOn_OnScreenWindowID;
224  int m_608PopOn_OffScreenWindowID;
225  int m_608RollUp_WindowID;
226  int m_608PaintOn_WindowID;
227  int m_608Text_WindowID;
228  int m_lastUsedWindowID;
229  bool m_708TranslateEnable;
230 
231  CC708WindowStatus m_windowStatus [NTV2_CC708NumWindows];
232  CNTV2CaptionEncoder708Ptr m_708Encoder;
233  CNTV2Caption708ServiceBlockQueue m_SvcBlockQueue;
234 
235 }; // CNTV2CaptionTranslatorChannel608to708
236 
237 #endif // __NTV2_CEA608to708_TRANSLATORCHANNEL_
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_SetWindowAttributes
virtual bool QueueServiceBlock_SetWindowAttributes(const int inServiceNum, const CC708WindowAttr &inAttr)
NTV2_CC708Default608EffectSpeed
const int NTV2_CC708Default608EffectSpeed
Definition: ntv2captiontranslatorchannel608to708.h:54
CC708WindowStatus::penAttr
CC708PenAttr penAttr
Definition: ntv2captiontranslatorchannel608to708.h:81
CC708WindowParms
Definition: ntv2captionencoder708.h:302
CC708WindowStatus
Definition: ntv2captiontranslatorchannel608to708.h:75
NTV2_CC708Default608PrintDir
const int NTV2_CC708Default608PrintDir
Definition: ntv2captiontranslatorchannel608to708.h:49
NTV2_CC708Default608Opacity
const int NTV2_CC708Default608Opacity
Definition: ntv2captiontranslatorchannel608to708.h:69
CC708WindowStatus::windowAttr
CC708WindowAttr windowAttr
Definition: ntv2captiontranslatorchannel608to708.h:80
CNTV2CaptionTranslatorChannel608to708::Init608CCPenColor
virtual bool Init608CCPenColor(CC708PenColor &outColor, const NTV2Line21Mode inMode=NTV2_CC608_CapModePopOn) const
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_SetCurrentWindow
virtual bool QueueServiceBlock_SetCurrentWindow(int serviceNum, int windowID)
NTV2_CC708DefaultTextWindowID
const int NTV2_CC708DefaultTextWindowID
Definition: ntv2captiontranslatorchannel608to708.h:30
CNTV2CaptionTranslatorChannel608to708::~CNTV2CaptionTranslatorChannel608to708
virtual ~CNTV2CaptionTranslatorChannel608to708()
CNTV2CaptionTranslatorChannel608to708::GetCurrentPenColor
virtual bool GetCurrentPenColor(CC708PenColor &outColor) const
CNTV2CaptionTranslatorChannel608to708::DoTextRestart
virtual bool DoTextRestart(void)
CC708WindowStatus::windowParms
CC708WindowParms windowParms
True if window has any content (i.e. characters) written to it.
Definition: ntv2captiontranslatorchannel608to708.h:79
NULL
#define NULL
Definition: ntv2caption608types.h:19
NTV2_CC708BorderTypeNone
@ NTV2_CC708BorderTypeNone
Definition: ntv2captionencoder708.h:390
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_ClearWindows
virtual bool QueueServiceBlock_ClearWindows(int serviceNum, UByte windowMap)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_Delay
virtual bool QueueServiceBlock_Delay(int serviceNum, const UByte delay)
AJARefPtr
I am a reference-counted pointer template class. I am intended to be a proxy for an underlying object...
Definition: ajarefptr.h:89
NTV2_CC708TextTagDialog
@ NTV2_CC708TextTagDialog
Definition: ntv2captionencoder708.h:454
CNTV2CaptionTranslatorChannel608to708::GetNextServiceBlockInfoFromQueue
virtual bool GetNextServiceBlockInfoFromQueue(size_t &outBlockSize, size_t &outDataSize, int &outServiceNum, bool &outIsExtended)
NTV2_CC708FontStyleMonoSansSerif
@ NTV2_CC708FontStyleMonoSansSerif
Definition: ntv2captionencoder708.h:442
NTV2_CC708Default608Underline
const int NTV2_CC708Default608Underline
Definition: ntv2captiontranslatorchannel608to708.h:65
CNTV2CaptionTranslatorChannel608to708::Parse608MidRowCommand
virtual bool Parse608MidRowCommand(UByte char608_1, UByte char608_2, std::string &outDebugStr)
CNTV2CaptionTranslatorChannel608to708::DoDeleteToEndOfRow
virtual bool DoDeleteToEndOfRow(void)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_DefineWindow
virtual bool QueueServiceBlock_DefineWindow(const int inServiceNum, const int inWindowID, const CC708WindowParms &inParms)
CNTV2CaptionTranslatorChannel608to708::DoResumeTextDisplay
virtual bool DoResumeTextDisplay(void)
NTV2_CC708Default608TextTag
const int NTV2_CC708Default608TextTag
Definition: ntv2captiontranslatorchannel608to708.h:62
NTV2_CC708NumPopOnWindows
const int NTV2_CC708NumPopOnWindows
Definition: ntv2captiontranslatorchannel608to708.h:26
NTV2_CC708Default608DisplayEffect
const int NTV2_CC708Default608DisplayEffect
Definition: ntv2captiontranslatorchannel608to708.h:52
CC708WindowAttr
Definition: ntv2captionencoder708.h:400
CC708WindowStatus::penColor
CC708PenColor penColor
Definition: ntv2captiontranslatorchannel608to708.h:82
CNTV2CaptionTranslatorChannel608to708::IsWindowDirty
virtual bool IsWindowDirty(const int winID) const
CNTV2CaptionTranslatorChannel608to708::Init608CCWindowAttributes
virtual bool Init608CCWindowAttributes(CC708WindowAttr &outAttr, const NTV2Line21Mode inMode=NTV2_CC608_CapModePopOn) const
CNTV2CaptionTranslatorChannel608to708::GetCurrentEditWindowID
virtual bool GetCurrentEditWindowID(int *pWindowID=0, NTV2Line21Mode mode=NTV2_CC608_CapModeUnknown, bool *pbNewWindow=0)
NTV2_CC708Default608PenSize
const int NTV2_CC708Default608PenSize
Definition: ntv2captiontranslatorchannel608to708.h:60
CNTV2CaptionTranslatorChannel608to708::IsWindowDefined
virtual bool IsWindowDefined(const int winID) const
CNTV2CaptionTranslatorChannel608to708::Reset
virtual void Reset(void)
Restores my state – caption channel CC1, screen 0, cursor at row 15 column 1, pop-on mode,...
NTV2_CC708Default608FontStyle
const int NTV2_CC708Default608FontStyle
Definition: ntv2captiontranslatorchannel608to708.h:61
CNTV2CaptionTranslatorChannel608to708::Set708TranslateEnable
virtual void Set708TranslateEnable(bool enable)
NTV2_CC708Default608Italics
const int NTV2_CC708Default608Italics
Definition: ntv2captiontranslatorchannel608to708.h:64
NTV2_CC708DefaultPopOnWindowID
const int NTV2_CC708DefaultPopOnWindowID
Definition: ntv2captiontranslatorchannel608to708.h:25
NTV2_CC708PenOffsetNormal
@ NTV2_CC708PenOffsetNormal
Definition: ntv2captionencoder708.h:478
NTV2_CC708Default608PopOnPenStyleID
const int NTV2_CC708Default608PopOnPenStyleID
Definition: ntv2captiontranslatorchannel608to708.h:42
NTV2_CC608_TextRowHeight
const int NTV2_CC608_TextRowHeight
Definition: ntv2captiontranslatorchannel608to708.h:22
NTV2_CC708Default608WordWrap
const int NTV2_CC708Default608WordWrap
Definition: ntv2captiontranslatorchannel608to708.h:51
CNTV2CaptionTranslatorChannel608to708::Parse608SpecialCharacter
virtual bool Parse608SpecialCharacter(UByte char608_1, UByte char608_2, std::string &outDebugStr)
CNTV2CaptionTranslatorChannel608to708::DoCarriageReturn
virtual bool DoCarriageReturn(void)
CNTV2CaptionTranslatorChannel608to708::Get708TranslateEnable
virtual bool Get708TranslateEnable(void) const
Definition: ntv2captiontranslatorchannel608to708.h:141
NTV2_CC708Default608PopOnWindowStyleID
const int NTV2_CC708Default608PopOnWindowStyleID
Definition: ntv2captiontranslatorchannel608to708.h:38
CNTV2CaptionTranslatorChannel608to708::DeleteWindow
virtual bool DeleteWindow(int winID)
NTV2_CC708DefaultRollUpAnchorV
const int NTV2_CC708DefaultRollUpAnchorV
Definition: ntv2captiontranslatorchannel608to708.h:36
CNTV2CaptionTranslatorChannel608to708::Parse608CharacterData
virtual bool Parse608CharacterData(UByte char608_1, UByte char608_2, std::string &outDebugStr)
CNTV2CaptionTranslatorChannel608to708::GetNextServiceBlockDataFromQueue
virtual size_t GetNextServiceBlockDataFromQueue(UByte *pOutDataBuffer)
CNTV2CaptionDecodeChannel608
Definition: ntv2captiondecodechannel608.h:64
NTV2_CC708Default608WindowPriority
const int NTV2_CC708Default608WindowPriority
Definition: ntv2captiontranslatorchannel608to708.h:34
CC708WindowStatus::bDefined
bool bDefined
Definition: ntv2captiontranslatorchannel608to708.h:77
CC708PenColor
Definition: ntv2captionencoder708.h:530
NTV2_CC708ScreenCellHeight
const int NTV2_CC708ScreenCellHeight
Definition: ntv2captionencoder708.h:183
CNTV2CaptionTranslatorChannel608to708Ptr
AJARefPtr< CNTV2CaptionTranslatorChannel608to708 > CNTV2CaptionTranslatorChannel608to708Ptr
Definition: ntv2captiontranslatorchannel608to708.h:121
CNTV2Caption708ServiceBlockQueue
I am a simple, thread-safe queue of CEA-708 caption service blocks.
Definition: ntv2caption708serviceblockqueue.h:28
NTV2_CC708Default608TextPenStyleID
const int NTV2_CC708Default608TextPenStyleID
Definition: ntv2captiontranslatorchannel608to708.h:44
NTV2_CC708PenEdgeTypeNone
@ NTV2_CC708PenEdgeTypeNone
Definition: ntv2captionencoder708.h:494
NTV2_CC608_CapModeUnknown
@ NTV2_CC608_CapModeUnknown
Unknown or invalid caption mode.
Definition: ntv2caption608types.h:126
CNTV2CaptionTranslatorChannel608to708::Set708ServiceNumber
virtual void Set708ServiceNumber(int serviceNum)
CNTV2CaptionTranslatorChannel608to708::Create
static bool Create(CNTV2CaptionTranslatorChannel608to708Ptr &outInstance)
CNTV2CaptionTranslatorChannel608to708::GetNextServiceBlockFromQueue
virtual size_t GetNextServiceBlockFromQueue(UByte *pOutDataBuffer)
NTV2_CC708Default608PenEdgeType
const int NTV2_CC708Default608PenEdgeType
Definition: ntv2captiontranslatorchannel608to708.h:66
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_DeleteWindows
virtual bool QueueServiceBlock_DeleteWindows(int serviceNum, UByte windowEnables)
CNTV2CaptionTranslatorChannel608to708::Init608CCWindowParms
virtual bool Init608CCWindowParms(CC708WindowParms &outParms, const NTV2Line21Mode inMode=NTV2_CC608_CapModePopOn) const
NTV2_CC708NoWordWrap
const bool NTV2_CC708NoWordWrap
Definition: ntv2captionencoder708.h:363
CNTV2CaptionTranslatorChannel608to708::GetWindowRowOffset
virtual UWord GetWindowRowOffset(int windowID) const
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_Reset
virtual bool QueueServiceBlock_Reset(int serviceNum)
UWord
uint16_t UWord
Definition: ajatypes.h:244
NTV2_CC708Default608TextWindowStyleID
const int NTV2_CC708Default608TextWindowStyleID
Definition: ntv2captiontranslatorchannel608to708.h:40
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_TwoByteData
virtual bool QueueServiceBlock_TwoByteData(int serviceNum, UByte ccChar1, UByte ccChar2)
CC708PenAttr
Definition: ntv2captionencoder708.h:504
NTV2_CC708ScrollDirBtoT
@ NTV2_CC708ScrollDirBtoT
Definition: ntv2captionencoder708.h:357
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_SetPenColor
virtual bool QueueServiceBlock_SetPenColor(const int inServiceNum, const CC708PenColor &inColor)
NTV2_CC708Default608Justify
const int NTV2_CC708Default608Justify
Definition: ntv2captiontranslatorchannel608to708.h:48
CNTV2CaptionTranslatorChannel608to708::GetCurrentModeWindowID
virtual int GetCurrentModeWindowID(void)
CNTV2CaptionTranslatorChannel608to708::SetChannel
virtual bool SetChannel(const NTV2Line21Channel inChannel)
Changes the caption channel that I handle.
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_SetPenLocation
virtual bool QueueServiceBlock_SetPenLocation(const int inServiceNum, const CC708PenLocation &pLoc)
CNTV2CaptionTranslatorChannel608to708::Init608CCPenAttributes
virtual bool Init608CCPenAttributes(CC708PenAttr &outAttr, const NTV2Line21Mode inMode=NTV2_CC608_CapModePopOn) const
CNTV2CaptionTranslatorChannel608to708
Definition: ntv2captiontranslatorchannel608to708.h:124
NTV2_CC708DefaultRollUpWindowID
const int NTV2_CC708DefaultRollUpWindowID
Definition: ntv2captiontranslatorchannel608to708.h:28
NTV2_CC708Default608ScrollDir
const int NTV2_CC708Default608ScrollDir
Definition: ntv2captiontranslatorchannel608to708.h:50
CNTV2CaptionTranslatorChannel608to708::DoEraseDisplayedMemory
virtual bool DoEraseDisplayedMemory(void)
NTV2_CC708Default608RollUpWindowStyleID
const int NTV2_CC708Default608RollUpWindowStyleID
Definition: ntv2captiontranslatorchannel608to708.h:39
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_SetPenAttributes
virtual bool QueueServiceBlock_SetPenAttributes(const int inServiceNum, const CC708PenAttr &inAttr)
ntv2captiondecodechannel608.h
Declares the CNTV2CaptionDecodeChannel608 class.
NTV2_CC708Default608PenOffset
const int NTV2_CC708Default608PenOffset
Definition: ntv2captiontranslatorchannel608to708.h:63
CNTV2CaptionTranslatorChannel608to708::Convert608CharacterTo708
static bool Convert608CharacterTo708(const UByte inChar608, UByte &outChar708_1, UByte &outChar708_2)
NTV2_CC708Default608TextEffectSpeed
const int NTV2_CC708Default608TextEffectSpeed
Definition: ntv2captiontranslatorchannel608to708.h:55
CNTV2CaptionTranslatorChannel608to708::Parse608AttributeCommand
virtual bool Parse608AttributeCommand(UByte char608_1, UByte char608_2, std::string &outDebugStr)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_DisplayWindows
virtual bool QueueServiceBlock_DisplayWindows(int serviceNum, UByte windowMap)
NTV2_CC708DispEffectSnap
@ NTV2_CC708DispEffectSnap
Definition: ntv2captionencoder708.h:369
NTV2Line21Mode
NTV2Line21Mode
The CEA-608 modes: pop-on, roll-up (2, 3 and 4-line), and paint-on.
Definition: ntv2caption608types.h:123
NTV2_CC708OpacitySolid
@ NTV2_CC708OpacitySolid
Definition: ntv2captionencoder708.h:206
CNTV2CaptionTranslatorChannel608to708::DoFlashOn
virtual bool DoFlashOn(void)
UByte
uint8_t UByte
Definition: ajatypes.h:241
CNTV2CaptionTranslatorChannel608to708::Parse608TabOffsetCommand
virtual bool Parse608TabOffsetCommand(UByte char608_1, UByte char608_2, std::string &outDebugStr)
NTV2_CC708DefaultPaintOnWindowID
const int NTV2_CC708DefaultPaintOnWindowID
Definition: ntv2captiontranslatorchannel608to708.h:29
CNTV2CaptionTranslatorChannel608to708::GetCurrentPenAttributes
virtual bool GetCurrentPenAttributes(CC708PenAttr &outAttr) const
ntv2captionencoder708.h
Declares the CNTV2CaptionEncoder708 class.
NTV2_CC708NoUnderline
const bool NTV2_CC708NoUnderline(false)
NTV2_CC708DefaultRollUpAnchorH
const int NTV2_CC708DefaultRollUpAnchorH
Definition: ntv2captiontranslatorchannel608to708.h:35
NTV2_CC708Default608EffectDir
const int NTV2_CC708Default608EffectDir
Definition: ntv2captiontranslatorchannel608to708.h:53
CC708WindowStatus::bDirty
bool bDirty
True if this window has been "defined" with a DefineWindow command.
Definition: ntv2captiontranslatorchannel608to708.h:78
NTV2Line21Channel
NTV2Line21Channel
The CEA-608 caption channels: CC1 thru CC4, TX1 thru TX4, plus XDS.
Definition: ntv2caption608types.h:82
NTV2_CC708PrintDirLtoR
@ NTV2_CC708PrintDirLtoR
Definition: ntv2captionencoder708.h:345
NTV2_CC708WindowIDMin
@ NTV2_CC708WindowIDMin
Definition: ntv2captionencoder708.h:188
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_HideWindows
virtual bool QueueServiceBlock_HideWindows(int serviceNum, UByte windowMap)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_DelayCancel
virtual bool QueueServiceBlock_DelayCancel(int serviceNum)
CNTV2CaptionTranslatorChannel608to708::DoEraseNonDisplayedMemory
virtual bool DoEraseNonDisplayedMemory(void)
CNTV2CaptionTranslatorChannel608to708::DoBackspace
virtual bool DoBackspace(void)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_ToggleWindows
virtual bool QueueServiceBlock_ToggleWindows(int serviceNum, UByte windowMap)
CNTV2CaptionTranslatorChannel608to708::GetCurrentPenLocation
virtual bool GetCurrentPenLocation(CC708PenLocation &outLoc, int inWindowID=NTV2_CC708WindowIDMin - 1) const
NTV2_CC708NumWindows
@ NTV2_CC708NumWindows
Definition: ntv2captionencoder708.h:190
CC708PenLocation
Definition: ntv2captionencoder708.h:549
CNTV2CaptionTranslatorChannel608to708::Init608CCPenLocation
virtual bool Init608CCPenLocation(CC708PenLocation &outLoc, const NTV2Line21Mode inMode=NTV2_CC608_CapModePopOn) const
NTV2_CC708PenSizeStandard
@ NTV2_CC708PenSizeStandard
Definition: ntv2captionencoder708.h:430
NTV2_CC708Default608BorderType
const int NTV2_CC708Default608BorderType
Definition: ntv2captiontranslatorchannel608to708.h:56
NTV2_CC708NoItalics
const bool NTV2_CC708NoItalics(false)
CNTV2CaptionTranslatorChannel608to708::DoEndOfCaption
virtual bool DoEndOfCaption(void)
CNTV2CaptionTranslatorChannel608to708::DoRollUpCaption
virtual bool DoRollUpCaption(const UWord inRowCount)
CNTV2CaptionTranslatorChannel608to708::QueueServiceBlock_CharacterData
virtual bool QueueServiceBlock_CharacterData(int serviceNum, UByte ccChar)
CNTV2CaptionTranslatorChannel608to708::Parse608PACCommand
virtual bool Parse608PACCommand(UByte char608_1, UByte char608_2, std::string &outDebugStr)
NTV2_CC608_CapModePopOn
@ NTV2_CC608_CapModePopOn
Pop-on caption mode.
Definition: ntv2caption608types.h:127
CNTV2CaptionTranslatorChannel608to708::Parse608CharacterSetCommand
virtual bool Parse608CharacterSetCommand(UByte char608_1, UByte char608_2, std::string &outDebugStr)
CC708WindowStatus::penLoc
CC708PenLocation penLoc
Definition: ntv2captiontranslatorchannel608to708.h:83
NTV2_CC708Default608RollUpPenStyleID
const int NTV2_CC708Default608RollUpPenStyleID
Definition: ntv2captiontranslatorchannel608to708.h:43
CC708WindowStatus
struct CC708WindowStatus CC708WindowStatus
CNTV2CaptionTranslatorChannel608to708::Get708ServiceNumber
virtual int Get708ServiceNumber(void) const
Definition: ntv2captiontranslatorchannel608to708.h:138
NTV2_CC708EffectDirLtoR
@ NTV2_CC708EffectDirLtoR
Definition: ntv2captionencoder708.h:379
CNTV2CaptionTranslatorChannel608to708::Init608CCWindowStatus
virtual bool Init608CCWindowStatus(int winID, NTV2Line21Mode mode=NTV2_CC608_CapModePopOn)
NTV2_CC708JustifyLeft
@ NTV2_CC708JustifyLeft
Definition: ntv2captionencoder708.h:334
ntv2caption708serviceblockqueue.h
Declares the CNTV2Caption708ServiceBlockQueue class.
NTV2_CC608_MaxRow
const UWord NTV2_CC608_MaxRow(15)
The maximum permissible row index number (located at the bottom of the screen).