AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
CNTV2CaptionDecodeChannel608 Class Reference

#include <ntv2captiondecodechannel608.h>

Inheritance diagram for CNTV2CaptionDecodeChannel608:
[legend]
Collaboration diagram for CNTV2CaptionDecodeChannel608:
[legend]

Public Member Functions

virtual ~CNTV2CaptionDecodeChannel608 ()
 
virtual std::vector< uint32_t > GetStats (void) const
 
virtual bool SubscribeChangeNotification (NTV2Caption608Changed *pInCallback, void *pInUserData=0)
 
virtual bool UnsubscribeChangeNotification (NTV2Caption608Changed *pInCallback, void *pInUserData=0)
 
Decoder Configuration
virtual void Reset (void)
 Restores my state – caption channel CC1, screen 0, cursor at row 15 column 1, pop-on mode, default CEA-608 character set, roll-up base at row 15, and a 15-row Text Mode. More...
 
virtual bool SetChannel (const NTV2Line21Channel inNewChannel)
 Changes the caption channel that I handle. More...
 
virtual bool IsTextChannel (void) const
 Answers true if the caption channel I'm currently handling is Tx1, Tx2, Tx3 or Tx4. More...
 
virtual NTV2Line21CharacterSet GetCurrentCharacterSet (void) const
 Answers with my current character set. More...
 
virtual NTV2Line21Channel GetCurrentChannel (UByte char608_1, UByte char608_2, NTV2Line21Field field)
 
Decoder Operation
virtual bool Parse608Data (const UByte inByte1, const UByte inByte2, std::string &outDebugStr)
 This method pushes caption data into me. It should be called when two new bytes of CEA-608 caption data arrive for this channel. The caller should have already filtered out any "duplicate" commands (i.e. commands that are sent twice on adjacent frames) before calling this method. There's no need to call this if there's no new data for my channel. More...
 
virtual UWord GetRow (void) const
 Answers with the row at which the next caption character will be inserted. More...
 
virtual UWord GetColumn (void) const
 Answers with the column at which the next caption character will be inserted. More...
 
Character Screen Back-Buffer Access
virtual UByte GetOnAirCharacter (const UWord inRow, const UWord inCol, NTV2Line21Attrs &outAttr) const
 Returns the "ASCII-like" character code at the given screen position (including its attributes). More...
 
virtual std::string GetOnAirCharacter (const UWord inRow, const UWord inCol) const
 Returns a string containing the UTF-8 character sequence that best represents the caption character at the given screen position. More...
 
virtual std::string GetOnAirCharacterWithAttributes (const UWord inRow, const UWord inCol, NTV2Line21Attrs &outAttr) const
 Returns a string containing the UTF-8 character sequence that best represents the caption character at the given screen position. More...
 
virtual UWord GetOnAirUTF16CharacterWithAttributes (const UWord inRow, const UWord inCol, NTV2Line21Attrs &outAttr) const
 Returns the UTF-16 character that best represents the caption character at the given screen position. More...
 
virtual NTV2Line21CharacterSet GetOnAirCharacterSet (const UWord inRow, const UWord inCol) const
 Returns the NTV2Line21CharacterSet of the caption character that's currently at the given screen position. More...
 
virtual bool GetCharacterAttributes (const UWord screen, const UWord inRow, const UWord inCol, NTV2Line21Attrs &outAttr) const
 
Text Mode Configuration
virtual UWord GetTextModeDisplayRowCount (void) const
 Returns the number of rows used for displaying Text Mode captions (Tx1/Tx2/Tx3/Tx4). More...
 
virtual bool SetTextModeDisplayRowCount (const UWord inNumRows)
 Changes the number of rows used for displaying Text Mode captions (Tx1/Tx2/Tx3/Tx4). More...
 
virtual const NTV2Line21AttrsGetTextModeDisplayAttributes (void) const
 Returns the display attributes that Text Mode captions are currently using (assuming my caption channel is Tx1/Tx2/Tx3/Tx4). More...
 
virtual void SetTextModeDisplayAttributes (const NTV2Line21Attrs &inAttributes)
 Sets the display attributes that Text Mode captions will use henceforth. More...
 
Debug
virtual std::string GetDebugPrintRow (const UWord inRow, const bool inShowChars=true) const
 
virtual std::string GetDebugPrintScreen (const bool inShowChars=true) const
 
virtual void SetDebugRowsOfInterest (const UWord inFromRow, const UWord inToRow, const bool inAdd=false)
 
virtual void SetDebugColumnsOfInterest (const UWord inFromCol, const UWord inToCol, const bool inAdd=false)
 
- Public Member Functions inherited from CNTV2CaptionLogConfig
 CNTV2CaptionLogConfig (const std::string inLogLabel=std::string())
 Default constructor. More...
 
virtual ~CNTV2CaptionLogConfig ()
 
virtual NTV2CaptionLogMask SetLogMask (const NTV2CaptionLogMask inLogMask)
 Specifies what, if any, debug information I will write to my log stream. More...
 
virtual NTV2CaptionLogMask GetLogMask (void) const
 Answers with my current caption logging bit mask. More...
 
virtual bool TestLogMask (const NTV2CaptionLogMask inLogMask, const bool inExact=false) const
 Answers true if the given log mask bits are set in my current log mask. More...
 
virtual void SetLogLabel (const std::string &inNewLabel)
 Specifies my logging label. More...
 
virtual void AppendToLogLabel (const std::string &inString)
 Appends the given string to my current log label. More...
 
virtual const std::string & GetLogLabel (void) const
 Answers with my current logging label. More...
 
virtual void SetLogStream (std::ostream &inOutputStream)
 
virtual std::ostream & LogIf (const NTV2CaptionLogMask inLogMask) const
 
virtual std::ostream & Log (void) const
 

Static Public Member Functions

static bool Create (CNTV2CaptionDecodeChannel608Ptr &outInstance)
 Creates and returns a new CNTV2CaptionDecodeChannel608 instance. More...
 
static std::string GetStatTitle (const CaptionDecode608Stats inStat)
 
- Static Public Member Functions inherited from CNTV2CaptionLogConfig
static std::ostream & DumpMemory (const void *pInStartAddress, const size_t inByteCount, std::ostream &inOutputStream=std::cout, const size_t inRadix=16, const size_t inBytesPerGroup=4, const size_t inGroupsPerLine=8, const size_t inAddressRadix=16, const bool inShowAscii=true, const size_t inAddrOffset=0)
 Dumps a contiguous chunk of memory in hex, octal, decimal, with or without ascii, to the given output stream. More...
 
static std::string HexDump32Bytes (const void *pInStartAddress, const size_t inByteCount, const size_t inLimitBytes=32)
 
static std::ostream & DumpYBytes_2vuy (const UByte *pInVideoLine, std::ostream &inOutputStream, const unsigned inFromPixel=0, const unsigned inToPixel=719, const bool inShowRuler=true, const unsigned inHiliteRangeFrom=9999, const unsigned inHiliteRangeTo=9999)
 Dumps the luma values in hexadecimal from the given line of '2vuy' video to the given output stream. More...
 
static std::ostream & DumpYBytes_2vuy (const std::vector< uint8_t > &inVideoLine, std::ostream &inOutputStream, const size_t inFromPixel=0, const size_t inToPixel=719, const bool inShowRuler=true, const size_t inHiliteRangeFrom=9999, const size_t inHiliteRangeTo=9999)
 Dumps the luma values in hexadecimal from the given line of '2vuy' video to the given output stream. More...
 
static std::string GetSeverityLabel (const unsigned inSeverity)
 

Static Public Attributes

static bool sStaticBackBufferTestMode
 

Protected Types

typedef NTV2_CC608_CodePoint NTV2CC608CodePoint
 

Protected Member Functions

virtual bool Parse608CharacterData (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608TabOffsetCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608CharacterSetCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608AttributeCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608PACCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608MidRowCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608SpecialCharacter (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool Parse608MiscCommand (UByte char608_1, UByte char608_2, std::string &outDebugStr)
 
virtual bool DoResumeCaptionLoading (void)
 
virtual bool DoBackspace (void)
 
virtual bool DoDeleteToEndOfRow (void)
 
virtual bool DoRollUpCaption (const UWord inRows)
 
virtual bool DoFlashOn (void)
 
virtual bool DoResumeDirectCaptioning (void)
 
virtual bool DoTextRestart (void)
 
virtual bool DoResumeTextDisplay (void)
 
virtual bool DoEraseDisplayedMemory (void)
 
virtual bool DoCarriageReturn (void)
 
virtual bool DoEraseNonDisplayedMemory (void)
 
virtual bool DoEndOfCaption (void)
 
virtual void SetAttributes (const UWord inRow, const UWord inCol, const NTV2Line21Attrs inAttr)
 
virtual bool EraseScreen (const UWord screen)
 
virtual bool SetRow (const UWord inNewRow)
 
virtual bool IncrementRow (const int inDelta=1)
 
virtual bool SetColumn (const UWord inNewCol)
 
virtual bool IncrementColumn (const int inDelta=1)
 
virtual bool SetCaptionMode (const NTV2Line21Mode inNewCaptionMode)
 
virtual NTV2Line21Mode GetCaptionMode (void) const
 
virtual UWord GetCurrentScreen (void) const
 
virtual bool SetCurrentScreen (const UWord inNewScreen)
 
virtual void MoveRollUpWindow (const UWord inNewBaseRow)
 
virtual void InsertCharacter (const UByte char608_1, const UByte char608_2, const NTV2Line21Attrs inAttr)
 
virtual void InsertCharacter (const UByte char608_1, const UByte char608_2)
 
virtual void InsertTextCharacter (const UByte inASCIIChar)
 
virtual void Notify_ChannelChanged (const NTV2Line21Channel inOldChannel, const NTV2Line21Channel inNewChannel) const
 
virtual void Notify_CurrentRowChanged (const UWord inOldRow, const UWord inNewRow) const
 
virtual void Notify_CurrentColumnChanged (const UWord inOldCol, const UWord inNewCol) const
 
virtual void Notify_CurrentScreenChanged (const UWord inOldScreen, const UWord inNewScreen) const
 
virtual void Notify_CaptionModeChanged (const NTV2Line21Mode inOldMode, const NTV2Line21Mode inNewMode) const
 
virtual void Notify_ScreenCharChanged (const UWord inScreenNum, const UWord inRow, const UWord inCol, const NTV2_CC608_CodePoint inOldCodePoint, const NTV2_CC608_CodePoint inNewCodePoint) const
 
virtual void Notify_ScreenAttrChanged (const UWord inScreenNum, const UWord inRow, const UWord inCol, const NTV2Line21Attrs &inOldAttr, const NTV2Line21Attrs &inNewAttr) const
 
 CNTV2CaptionDecodeChannel608 ()
 

Additional Inherited Members

- Protected Attributes inherited from CNTV2CaptionLogConfig
NTV2CaptionLogMask mLogMask
 Determines what messages are logged. More...
 
std::string mLogLabel
 My debug label. More...
 
void * mpLabelLock
 Protects my debug label from simultaneous access by more than one thread. More...
 

Detailed Description

Definition at line 64 of file ntv2captiondecodechannel608.h.

Member Typedef Documentation

◆ NTV2CC608CodePoint

Constructor & Destructor Documentation

◆ ~CNTV2CaptionDecodeChannel608()

virtual CNTV2CaptionDecodeChannel608::~CNTV2CaptionDecodeChannel608 ( )
virtual

◆ CNTV2CaptionDecodeChannel608()

CNTV2CaptionDecodeChannel608::CNTV2CaptionDecodeChannel608 ( )
explicitprotected

Member Function Documentation

◆ Create()

static bool CNTV2CaptionDecodeChannel608::Create ( CNTV2CaptionDecodeChannel608Ptr outInstance)
static

Creates and returns a new CNTV2CaptionDecodeChannel608 instance.

Parameters
[out]outInstanceReceives the newly-created CNTV2CaptionDecodeChannel608 instance.
Returns
True if successful; otherwise false.

◆ DoBackspace()

virtual bool CNTV2CaptionDecodeChannel608::DoBackspace ( void  )
protectedvirtual

◆ DoCarriageReturn()

virtual bool CNTV2CaptionDecodeChannel608::DoCarriageReturn ( void  )
protectedvirtual

◆ DoDeleteToEndOfRow()

virtual bool CNTV2CaptionDecodeChannel608::DoDeleteToEndOfRow ( void  )
protectedvirtual

◆ DoEndOfCaption()

virtual bool CNTV2CaptionDecodeChannel608::DoEndOfCaption ( void  )
protectedvirtual

◆ DoEraseDisplayedMemory()

virtual bool CNTV2CaptionDecodeChannel608::DoEraseDisplayedMemory ( void  )
protectedvirtual

◆ DoEraseNonDisplayedMemory()

virtual bool CNTV2CaptionDecodeChannel608::DoEraseNonDisplayedMemory ( void  )
protectedvirtual

◆ DoFlashOn()

virtual bool CNTV2CaptionDecodeChannel608::DoFlashOn ( void  )
protectedvirtual

◆ DoResumeCaptionLoading()

virtual bool CNTV2CaptionDecodeChannel608::DoResumeCaptionLoading ( void  )
protectedvirtual

◆ DoResumeDirectCaptioning()

virtual bool CNTV2CaptionDecodeChannel608::DoResumeDirectCaptioning ( void  )
protectedvirtual

◆ DoResumeTextDisplay()

virtual bool CNTV2CaptionDecodeChannel608::DoResumeTextDisplay ( void  )
protectedvirtual

◆ DoRollUpCaption()

virtual bool CNTV2CaptionDecodeChannel608::DoRollUpCaption ( const UWord  inRows)
protectedvirtual

◆ DoTextRestart()

virtual bool CNTV2CaptionDecodeChannel608::DoTextRestart ( void  )
protectedvirtual

◆ EraseScreen()

virtual bool CNTV2CaptionDecodeChannel608::EraseScreen ( const UWord  screen)
protectedvirtual

◆ GetCaptionMode()

virtual NTV2Line21Mode CNTV2CaptionDecodeChannel608::GetCaptionMode ( void  ) const
inlineprotectedvirtual

Definition at line 287 of file ntv2captiondecodechannel608.h.

◆ GetCharacterAttributes()

virtual bool CNTV2CaptionDecodeChannel608::GetCharacterAttributes ( const UWord  screen,
const UWord  inRow,
const UWord  inCol,
NTV2Line21Attrs outAttr 
) const
virtual

◆ GetColumn()

virtual UWord CNTV2CaptionDecodeChannel608::GetColumn ( void  ) const
inlinevirtual

Answers with the column at which the next caption character will be inserted.

Returns
My current column position, a value from 1 to 32.

Definition at line 136 of file ntv2captiondecodechannel608.h.

◆ GetCurrentChannel()

virtual NTV2Line21Channel CNTV2CaptionDecodeChannel608::GetCurrentChannel ( UByte  char608_1,
UByte  char608_2,
NTV2Line21Field  field 
)
virtual

◆ GetCurrentCharacterSet()

virtual NTV2Line21CharacterSet CNTV2CaptionDecodeChannel608::GetCurrentCharacterSet ( void  ) const
inlinevirtual

Answers with my current character set.

Returns
My current character set.

Definition at line 105 of file ntv2captiondecodechannel608.h.

◆ GetCurrentScreen()

virtual UWord CNTV2CaptionDecodeChannel608::GetCurrentScreen ( void  ) const
inlineprotectedvirtual

Definition at line 289 of file ntv2captiondecodechannel608.h.

◆ GetDebugPrintRow()

virtual std::string CNTV2CaptionDecodeChannel608::GetDebugPrintRow ( const UWord  inRow,
const bool  inShowChars = true 
) const
virtual

◆ GetDebugPrintScreen()

virtual std::string CNTV2CaptionDecodeChannel608::GetDebugPrintScreen ( const bool  inShowChars = true) const
virtual

◆ GetOnAirCharacter() [1/2]

virtual std::string CNTV2CaptionDecodeChannel608::GetOnAirCharacter ( const UWord  inRow,
const UWord  inCol 
) const
virtual

Returns a string containing the UTF-8 character sequence that best represents the caption character at the given screen position.

Parameters
[in]inRowThe row number (1-15).
[in]inColThe column number (1-32).
Returns
A string that contains the UTF8 character sequence that best represents the on-screen caption character. The returned string will be empty upon failure, or if there is no best representation for the character.

◆ GetOnAirCharacter() [2/2]

virtual UByte CNTV2CaptionDecodeChannel608::GetOnAirCharacter ( const UWord  inRow,
const UWord  inCol,
NTV2Line21Attrs outAttr 
) const
virtual

Returns the "ASCII-like" character code at the given screen position (including its attributes).

Parameters
[in]inRowThe row number (1-15).
[in]inColThe column number (1-32).
[out]outAttrAn NTV2Line21Attributes variable that is to receive the display attributes of the on-screen character.
Returns
The character code of the character at the given screen position.

◆ GetOnAirCharacterSet()

virtual NTV2Line21CharacterSet CNTV2CaptionDecodeChannel608::GetOnAirCharacterSet ( const UWord  inRow,
const UWord  inCol 
) const
virtual

Returns the NTV2Line21CharacterSet of the caption character that's currently at the given screen position.

Parameters
[in]inRowThe row number (1-15).
[in]inColThe column number (1-32).
Returns
The NTV2Line21CharacterSet of the caption character that's currently at the given screen position.

◆ GetOnAirCharacterWithAttributes()

virtual std::string CNTV2CaptionDecodeChannel608::GetOnAirCharacterWithAttributes ( const UWord  inRow,
const UWord  inCol,
NTV2Line21Attrs outAttr 
) const
virtual

Returns a string containing the UTF-8 character sequence that best represents the caption character at the given screen position.

Parameters
[in]inRowThe row number (1-15).
[in]inColThe column number (1-32).
[out]outAttrAn NTV2Line21Attributes variable that is to receive the display attributes of the on-screen character.
Returns
A string that contains the UTF8 character sequence that best represents the on-screen caption character. The returned string will be empty upon failure, or if there is no best representation for the character.

◆ GetOnAirUTF16CharacterWithAttributes()

virtual UWord CNTV2CaptionDecodeChannel608::GetOnAirUTF16CharacterWithAttributes ( const UWord  inRow,
const UWord  inCol,
NTV2Line21Attrs outAttr 
) const
virtual

Returns the UTF-16 character that best represents the caption character at the given screen position.

Parameters
[in]inRowThe row number (1-15).
[in]inColThe column number (1-32).
[out]outAttrReceives the NTV2Line21Attributes of the on-screen character.
Returns
The UTF-16 character that best represents the on-screen caption character, or zero upon failure.

◆ GetRow()

virtual UWord CNTV2CaptionDecodeChannel608::GetRow ( void  ) const
inlinevirtual

Answers with the row at which the next caption character will be inserted.

Returns
My current row position, a value from 1 to 15.

Definition at line 130 of file ntv2captiondecodechannel608.h.

◆ GetStats()

virtual std::vector<uint32_t> CNTV2CaptionDecodeChannel608::GetStats ( void  ) const
virtual

◆ GetStatTitle()

static std::string CNTV2CaptionDecodeChannel608::GetStatTitle ( const CaptionDecode608Stats  inStat)
static

◆ GetTextModeDisplayAttributes()

virtual const NTV2Line21Attrs& CNTV2CaptionDecodeChannel608::GetTextModeDisplayAttributes ( void  ) const
inlinevirtual

Returns the display attributes that Text Mode captions are currently using (assuming my caption channel is Tx1/Tx2/Tx3/Tx4).

Returns
My current Text Mode caption display attributes.

Definition at line 216 of file ntv2captiondecodechannel608.h.

◆ GetTextModeDisplayRowCount()

virtual UWord CNTV2CaptionDecodeChannel608::GetTextModeDisplayRowCount ( void  ) const
inlinevirtual

Returns the number of rows used for displaying Text Mode captions (Tx1/Tx2/Tx3/Tx4).

Returns
The number of rows used for displaying Text Mode captions.

Definition at line 201 of file ntv2captiondecodechannel608.h.

◆ IncrementColumn()

virtual bool CNTV2CaptionDecodeChannel608::IncrementColumn ( const int  inDelta = 1)
protectedvirtual

◆ IncrementRow()

virtual bool CNTV2CaptionDecodeChannel608::IncrementRow ( const int  inDelta = 1)
protectedvirtual

◆ InsertCharacter() [1/2]

virtual void CNTV2CaptionDecodeChannel608::InsertCharacter ( const UByte  char608_1,
const UByte  char608_2 
)
protectedvirtual

◆ InsertCharacter() [2/2]

virtual void CNTV2CaptionDecodeChannel608::InsertCharacter ( const UByte  char608_1,
const UByte  char608_2,
const NTV2Line21Attrs  inAttr 
)
protectedvirtual

◆ InsertTextCharacter()

virtual void CNTV2CaptionDecodeChannel608::InsertTextCharacter ( const UByte  inASCIIChar)
protectedvirtual

◆ IsTextChannel()

virtual bool CNTV2CaptionDecodeChannel608::IsTextChannel ( void  ) const
inlinevirtual

Answers true if the caption channel I'm currently handling is Tx1, Tx2, Tx3 or Tx4.

Returns
True if I'm currently handling one of the Text Mode caption channels; otherwise false.

Definition at line 99 of file ntv2captiondecodechannel608.h.

◆ MoveRollUpWindow()

virtual void CNTV2CaptionDecodeChannel608::MoveRollUpWindow ( const UWord  inNewBaseRow)
protectedvirtual

◆ Notify_CaptionModeChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_CaptionModeChanged ( const NTV2Line21Mode  inOldMode,
const NTV2Line21Mode  inNewMode 
) const
protectedvirtual

◆ Notify_ChannelChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_ChannelChanged ( const NTV2Line21Channel  inOldChannel,
const NTV2Line21Channel  inNewChannel 
) const
protectedvirtual

◆ Notify_CurrentColumnChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_CurrentColumnChanged ( const UWord  inOldCol,
const UWord  inNewCol 
) const
protectedvirtual

◆ Notify_CurrentRowChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_CurrentRowChanged ( const UWord  inOldRow,
const UWord  inNewRow 
) const
protectedvirtual

◆ Notify_CurrentScreenChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_CurrentScreenChanged ( const UWord  inOldScreen,
const UWord  inNewScreen 
) const
protectedvirtual

◆ Notify_ScreenAttrChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_ScreenAttrChanged ( const UWord  inScreenNum,
const UWord  inRow,
const UWord  inCol,
const NTV2Line21Attrs inOldAttr,
const NTV2Line21Attrs inNewAttr 
) const
protectedvirtual

◆ Notify_ScreenCharChanged()

virtual void CNTV2CaptionDecodeChannel608::Notify_ScreenCharChanged ( const UWord  inScreenNum,
const UWord  inRow,
const UWord  inCol,
const NTV2_CC608_CodePoint  inOldCodePoint,
const NTV2_CC608_CodePoint  inNewCodePoint 
) const
protectedvirtual

◆ Parse608AttributeCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608AttributeCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608CharacterData()

virtual bool CNTV2CaptionDecodeChannel608::Parse608CharacterData ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608CharacterSetCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608CharacterSetCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608Data()

virtual bool CNTV2CaptionDecodeChannel608::Parse608Data ( const UByte  inByte1,
const UByte  inByte2,
std::string &  outDebugStr 
)
virtual

This method pushes caption data into me. It should be called when two new bytes of CEA-608 caption data arrive for this channel. The caller should have already filtered out any "duplicate" commands (i.e. commands that are sent twice on adjacent frames) before calling this method. There's no need to call this if there's no new data for my channel.

Parameters
[in]inByte1The first caption data byte. The parity bit must have already been stripped off.
[in]inByte2The second caption data byte. The parity bit must have already been stripped off.
[out]outDebugStrReceives a string that contains some useful information if this call fails.
Returns
True if successful; otherwise false.

◆ Parse608MidRowCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608MidRowCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608MiscCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608MiscCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608PACCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608PACCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608SpecialCharacter()

virtual bool CNTV2CaptionDecodeChannel608::Parse608SpecialCharacter ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Parse608TabOffsetCommand()

virtual bool CNTV2CaptionDecodeChannel608::Parse608TabOffsetCommand ( UByte  char608_1,
UByte  char608_2,
std::string &  outDebugStr 
)
protectedvirtual

◆ Reset()

virtual void CNTV2CaptionDecodeChannel608::Reset ( void  )
virtual

Restores my state – caption channel CC1, screen 0, cursor at row 15 column 1, pop-on mode, default CEA-608 character set, roll-up base at row 15, and a 15-row Text Mode.

Reimplemented in CNTV2CaptionTranslatorChannel608to708.

◆ SetAttributes()

virtual void CNTV2CaptionDecodeChannel608::SetAttributes ( const UWord  inRow,
const UWord  inCol,
const NTV2Line21Attrs  inAttr 
)
protectedvirtual

◆ SetCaptionMode()

virtual bool CNTV2CaptionDecodeChannel608::SetCaptionMode ( const NTV2Line21Mode  inNewCaptionMode)
protectedvirtual

◆ SetChannel()

virtual bool CNTV2CaptionDecodeChannel608::SetChannel ( const NTV2Line21Channel  inNewChannel)
virtual

Changes the caption channel that I handle.

Parameters
[in]inNewChannelSpecifies the caption channel I'll be handling.
Returns
True if successful; otherwise false.

Reimplemented in CNTV2CaptionTranslatorChannel608to708.

◆ SetColumn()

virtual bool CNTV2CaptionDecodeChannel608::SetColumn ( const UWord  inNewCol)
protectedvirtual

◆ SetCurrentScreen()

virtual bool CNTV2CaptionDecodeChannel608::SetCurrentScreen ( const UWord  inNewScreen)
protectedvirtual

◆ SetDebugColumnsOfInterest()

virtual void CNTV2CaptionDecodeChannel608::SetDebugColumnsOfInterest ( const UWord  inFromCol,
const UWord  inToCol,
const bool  inAdd = false 
)
virtual

◆ SetDebugRowsOfInterest()

virtual void CNTV2CaptionDecodeChannel608::SetDebugRowsOfInterest ( const UWord  inFromRow,
const UWord  inToRow,
const bool  inAdd = false 
)
virtual

◆ SetRow()

virtual bool CNTV2CaptionDecodeChannel608::SetRow ( const UWord  inNewRow)
protectedvirtual

◆ SetTextModeDisplayAttributes()

virtual void CNTV2CaptionDecodeChannel608::SetTextModeDisplayAttributes ( const NTV2Line21Attrs inAttributes)
inlinevirtual

Sets the display attributes that Text Mode captions will use henceforth.

Parameters
[in]inAttributesSpecifies the new display attributes for Text Mode captions will have going forward.
Note
This has no effect on captions that have already been decoded (that may be currently displayed).

Definition at line 223 of file ntv2captiondecodechannel608.h.

◆ SetTextModeDisplayRowCount()

virtual bool CNTV2CaptionDecodeChannel608::SetTextModeDisplayRowCount ( const UWord  inNumRows)
virtual

Changes the number of rows used for displaying Text Mode captions (Tx1/Tx2/Tx3/Tx4).

Parameters
[in]inNumRowsSpecifies the number of rows to use for displaying Text Mode captions. Must be at least 1 and no more than 32.
Returns
True if successful; otherwise false.

◆ SubscribeChangeNotification()

virtual bool CNTV2CaptionDecodeChannel608::SubscribeChangeNotification ( NTV2Caption608Changed pInCallback,
void *  pInUserData = 0 
)
virtual

◆ UnsubscribeChangeNotification()

virtual bool CNTV2CaptionDecodeChannel608::UnsubscribeChangeNotification ( NTV2Caption608Changed pInCallback,
void *  pInUserData = 0 
)
virtual

Member Data Documentation

◆ sStaticBackBufferTestMode

bool CNTV2CaptionDecodeChannel608::sStaticBackBufferTestMode
static

Definition at line 348 of file ntv2captiondecodechannel608.h.


The documentation for this class was generated from the following file: