AJA NTV2 SDK  17.1.3.1410
NTV2 SDK 17.1.3.1410
CNTV2CaptionEncoder608 Class Reference

#include <ntv2captionencoder608.h>

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

Public Member Functions

virtual ~CNTV2CaptionEncoder608 ()
 My destructor. More...
 
virtual NTV2CaptionLogMask SetLogMask (const NTV2CaptionLogMask inLogMask)
 Specifies what, if any, debug information I will write to my log stream. More...
 
Enqueueing
virtual bool EnqueuePopOnMessage (const std::string &inMessageStr, const NTV2Line21Channel inChannel=NTV2_CC608_CC1, const UWord inRowNumber=0, const UWord inColumnNumber=0, const NTV2Line21Attrs &inDisplayAttribs=NTV2Line21Attrs())
 Enqueues the given message for eventual "pop-on" display. More...
 
virtual bool EnqueuePaintOnMessage (const std::string &inMessageStr, const bool inEraseFirst=false, const NTV2Line21Channel inChannel=NTV2_CC608_CC1, const UWord inRowNumber=0, const UWord inColumnNumber=0, const NTV2Line21Attrs &inDisplayAttribs=NTV2Line21Attrs())
 Enqueues the given message for eventual "paint-on" display. More...
 
virtual bool EnqueueRollUpMessage (const std::string &inMessageStr, const NTV2Line21Mode inRollMode=NTV2_CC608_CapModeRollUp4, const NTV2Line21Channel inChannel=NTV2_CC608_CC1, const UWord inRowNumber=NTV2_CC608_MaxRow, const UWord inColumnNumber=NTV2_CC608_MinCol, const NTV2Line21Attrs &inDisplayAttribs=NTV2Line21Attrs())
 Enqueues the given message for eventual "roll up" display. More...
 
virtual bool EnqueueTextMessage (const std::string &inMessageStr, const bool inEraseFirst=false, const NTV2Line21Channel inChannel=NTV2_CC608_Text1)
 Enqueues the given message for eventual reception and possible display on a receiver capable of displaying Tx data. More...
 
virtual bool EnqueueCaptionData (const CaptionData &inCaptionData)
 This is a low-level method that enqueues the given CaptionData for eventual transmission. More...
 
virtual bool EnqueueDelay (const uint32_t inFrameCount, const NTV2Line21Channel inChannel=NTV2_CC608_CC1)
 Adds a delay to the given channel queue. More...
 
Dequeueing
virtual bool EncodeNextCaptionBytesIntoLine21 (void *pFrameBuffer, const NTV2PixelFormat inPixelFormat, const NTV2VideoFormat inVideoFormat, const NTV2Line21Field inFieldNum)
 For the given field, pops the next two pending caption bytes from the current message being transmitted, and encodes them into a valid "line 21" waveform in the given frame buffer. If there is no current message being transmitted, the next pending caption message is dequeued and is started transmitting. If there's nothing being transmitted and nothing in my queue, the frame buffer is not modified. More...
 
virtual bool GetNextCaptionData (CaptionData &outCaptionData)
 This high-level method is used to dequeue caption data for an entire frame. More...
 
virtual UByteGetNextLine21TransmitCaptions (const NTV2Line21Field inFieldNum)
 This calls my lower level "GetNextTransmitCaptionBytes" method (below), and is typically called twice per frame (once per field). If there is a pending message in my queue for the designated field, it pulls the next two bytes out of the message, encodes them into a "Line 21" video waveform and returns a pointer to the waveform buffer. If the two bytes complete the current message, the message is automatically "popped" from the queue and the next message (if any) is rippled into place for the next frame. More...
 
virtual bool GetNextTransmitCaptionBytes (const NTV2Line21Field inFieldNum, UByte &outChar1, UByte &outChar2)
 This low-level function is called by the higher level "GetNextLine21TransmitCaptions" function. Typically, this is called twice per frame (once per field). If there is a pending message in my queue for the designated field, it pulls the next two bytes out of the message, and returns them via the "outChar1" and "outChar2" output parameters. If the two bytes complete the current message, the message is automatically "popped" from my queue and the next message (if any) is rippled into place for the next frame. More...
 
Inquiry
virtual size_t GetQueuedMessageCount (const NTV2Line21Field inFieldNum=NTV2_CC608_Field1) const
 Answers with the current depth of my queue (for the given CC608 field). More...
 
virtual size_t GetQueuedByteCount (const NTV2Line21Field inFieldNum=NTV2_CC608_Field1) const
 Answers with the total number of bytes (including command bytes) that are currently queued (for the given CC608 field). More...
 
virtual void Flush (const NTV2Line21Field inFieldNum=NTV2_CC608_Field1, const bool inAlsoInProgress=true)
 Flushes all queued command bytes for the given CC608 field. More...
 
virtual void FlushChannel (const NTV2Line21Channel inChannel, const bool inAlsoInProgress=true)
 Flushes all queued command bytes for the given caption channel. More...
 
virtual bool Erase (const NTV2Line21Channel inChannel=NTV2_CC608_CC1)
 Clears captions on the given channel by emitting ENM (Erase Non-displayed Memory) and EOC (End Of Caption) control codes. More...
 
virtual void GetQueueInfoForChannel (const NTV2Line21Channel inChannel, size_t &outBytesQueued, size_t &outMessagesQueued) const
 Returns queue information for a given caption channel. More...
 
virtual size_t GetEnqueueByteTally (void) const
 Returns the total number of bytes (including command bytes) that have been enqueued onto me since I was instantiated. More...
 
virtual size_t GetDequeueByteTally (void) const
 Returns the total number of bytes (including command bytes) that have been dequeued from me since I was instantiated. More...
 
virtual size_t GetEnqueueMessageTally (void) const
 Returns the total number of messages that have been enqueued onto me since I was instantiated. More...
 
virtual size_t GetDequeueMessageTally (void) const
 Returns the total number of messages that have been dequeued from me since I was instantiated. More...
 
virtual size_t GetHighestQueueDepth (void) const
 Returns the highest queue depth – i.e., the maximum number of messages I held in either of my queues – since I was instantiated. More...
 
virtual void GetQueueStatsForChannel (const NTV2Line21Channel inChannel, size_t &outEnqueueBytes, size_t &outEnqueueMsgs, size_t &outDequeueBytes, size_t &outDequeueMsgs) const
 Returns stats for a given caption channel. More...
 
- Public Member Functions inherited from CNTV2CaptionLogConfig
 CNTV2CaptionLogConfig (const std::string inLogLabel=std::string())
 Default constructor. More...
 
virtual ~CNTV2CaptionLogConfig ()
 
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 (CNTV2CaptionEncoder608Ptr &outEncoder)
 Creates a new CNTV2CaptionEncoder608 instance. More...
 
- 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)
 

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 53 of file ntv2captionencoder608.h.

Constructor & Destructor Documentation

◆ ~CNTV2CaptionEncoder608()

virtual CNTV2CaptionEncoder608::~CNTV2CaptionEncoder608 ( )
virtual

My destructor.

Member Function Documentation

◆ Create()

static bool CNTV2CaptionEncoder608::Create ( CNTV2CaptionEncoder608Ptr outEncoder)
static

Creates a new CNTV2CaptionEncoder608 instance.

Parameters
[out]outEncoderReceives the newly-created encoder instance.
Returns
True if successful; otherwise False.
Note
This method will catch any "bad_alloc" exception and return False if there's insufficient free memory to allocate the new encoder.

◆ EncodeNextCaptionBytesIntoLine21()

virtual bool CNTV2CaptionEncoder608::EncodeNextCaptionBytesIntoLine21 ( void *  pFrameBuffer,
const NTV2PixelFormat  inPixelFormat,
const NTV2VideoFormat  inVideoFormat,
const NTV2Line21Field  inFieldNum 
)
virtual

For the given field, pops the next two pending caption bytes from the current message being transmitted, and encodes them into a valid "line 21" waveform in the given frame buffer. If there is no current message being transmitted, the next pending caption message is dequeued and is started transmitting. If there's nothing being transmitted and nothing in my queue, the frame buffer is not modified.

Parameters
pFrameBufferA valid, non-NULL pointer to the frame buffer whose "line 21" will be replaced if there are caption bytes to transmit.
[in]inPixelFormatSpecifies the format of the given frame buffer. (Must be 8 or 10 bit YUV.)
[in]inVideoFormatSpecifies the video format. (Currently only NTV2_FORMAT_525_5994 is supported.)
[in]inFieldNumSpecifies the field of interest – NTV2_CC608_Field1 or NTV2_CC608_Field2.
Returns
True if successful; otherwise False.

◆ EnqueueCaptionData()

virtual bool CNTV2CaptionEncoder608::EnqueueCaptionData ( const CaptionData inCaptionData)
virtual

This is a low-level method that enqueues the given CaptionData for eventual transmission.

Parameters
[in]inCaptionDataSpecifies the CaptionData to be enqueued for eventual transmission. Field 1 data bytes are queued for NTV2_CC608_CC1, NTV2_CC608_CC2, NTV2_CC608_Text1, or NTV2_CC608_Text2 transmission. Field 2 data bytes are queued for NTV2_CC608_CC3, NTV2_CC608_CC4, NTV2_CC608_Text3, or NTV2_CC608_Text4 transmission.
Note
Successful use of this function requires a thorough knowledge of the CEA-608 specification.
Returns
True if enqueued successfully; otherwise False.

◆ EnqueueDelay()

virtual bool CNTV2CaptionEncoder608::EnqueueDelay ( const uint32_t  inFrameCount,
const NTV2Line21Channel  inChannel = NTV2_CC608_CC1 
)
virtual

Adds a delay to the given channel queue.

Parameters
[in]inFrameCountSpecifies the delay, in frames.
[in]inChannelSpecifies the CEA-608 caption channel to use. Defaults to NTV2_CC608_CC1.
Note
Successful use of this function requires a thorough knowledge of the CEA-608 specification.
Returns
True if enqueued successfully; otherwise False.

◆ EnqueuePaintOnMessage()

virtual bool CNTV2CaptionEncoder608::EnqueuePaintOnMessage ( const std::string &  inMessageStr,
const bool  inEraseFirst = false,
const NTV2Line21Channel  inChannel = NTV2_CC608_CC1,
const UWord  inRowNumber = 0,
const UWord  inColumnNumber = 0,
const NTV2Line21Attrs inDisplayAttribs = NTV2Line21Attrs() 
)
virtual

Enqueues the given message for eventual "paint-on" display.

Parameters
[in]inMessageStrSpecifies the message to be enqueued for eventual dequeuing/encoding/display. Must not be empty. May contain line-breaks, but only the first four lines will be utilized. Must not utilize any Unicode encoding (e.g., UTF-8). May contain two-byte CEA-608 command sequences for encoding special characters, but these are caption-channel specific, and thus, should match what's specified in the "inChannel" parameter. The caller is also responsible for abiding by the CEA-608 standard practice of immediately preceding each special character with its ASCII equivalent (as downstream decoders that support special characters are expected to "backspace" over the ASCII equivalent with the correct glyph).
[in]inEraseFirstIf true, specifies that the caption area should be erased before displaying the message; otherwise the message will simply be painted on top of what is already in the caption area (the default).
[in]inChannelSpecifies the CEA-608 caption channel to use, which must be CC1, CC2, CC3 or CC4.
[in]inRowNumberSpecifies the row number at which the caption should be displayed. Defaults to zero.
[in]inColumnNumberSpecifies the column number at which the caption should be displayed. Defaults to zero.
[in]pInDisplayAttribsSpecifies a valid, non-NULL pointer to the display attributes to be used. Defaults to the default display attributes.
Returns
True if enqueued successfully; otherwise False.

◆ EnqueuePopOnMessage()

virtual bool CNTV2CaptionEncoder608::EnqueuePopOnMessage ( const std::string &  inMessageStr,
const NTV2Line21Channel  inChannel = NTV2_CC608_CC1,
const UWord  inRowNumber = 0,
const UWord  inColumnNumber = 0,
const NTV2Line21Attrs inDisplayAttribs = NTV2Line21Attrs() 
)
virtual

Enqueues the given message for eventual "pop-on" display.

Parameters
[in]inMessageStrSpecifies the message to be enqueued for eventual dequeuing/encoding/display. Must not be empty. May contain line-breaks, but only the first four lines will be utilized. Must not utilize any Unicode encoding (e.g., UTF-8). May contain two-byte CEA-608 command sequences for encoding special characters, but these are caption-channel specific, and thus, should match what's specified in the "inChannel" parameter. The caller is also responsible for abiding by the CEA-608 standard practice of immediately preceding each special character with its ASCII equivalent (as downstream decoders that support special characters are expected to "backspace" over the ASCII equivalent with the correct glyph).
[in]inChannelSpecifies the CEA-608 caption channel to use, which must be CC1, CC2, CC3 or CC4.
[in]inRowNumberSpecifies the row number at which the caption should be displayed. Defaults to zero, which centers it vertically.
[in]inColumnNumberSpecifies the column number at which the caption should be displayed. Defaults to zero, which centers it horizontally.
[in]pInDisplayAttribsSpecifies a valid, non-NULL pointer to the display attributes to be used. Defaults to the default display attributes.
Returns
True if enqueued successfully; otherwise False.

◆ EnqueueRollUpMessage()

virtual bool CNTV2CaptionEncoder608::EnqueueRollUpMessage ( const std::string &  inMessageStr,
const NTV2Line21Mode  inRollMode = NTV2_CC608_CapModeRollUp4,
const NTV2Line21Channel  inChannel = NTV2_CC608_CC1,
const UWord  inRowNumber = NTV2_CC608_MaxRow,
const UWord  inColumnNumber = NTV2_CC608_MinCol,
const NTV2Line21Attrs inDisplayAttribs = NTV2Line21Attrs() 
)
virtual

Enqueues the given message for eventual "roll up" display.

Parameters
[in]inMessageStrSpecifies the message to be enqueued for eventual dequeuing/encoding/display. Must not exceed NTV2_CC608_MaxCol characters in length. Must not be empty. Must not contain any line-break characters. Must not utilize any Unicode encoding (e.g., UTF-8). May contain two-byte CEA-608 command sequences for encoding special characters, but these are caption-channel specific, and thus, should match what's specified in the "inChannel" parameter. The caller is also responsible for abiding by the CEA-608 standard practice of immediately preceding each special character with its ASCII equivalent (as downstream decoders that support special characters are expected to "backspace" over the ASCII equivalent with the correct glyph).
[in]inRollModeSpecifies the "roll-up" behavior to use – 2, 3 or 4-row roll-up. Defaults to NTV2_CC608_CapModeRollUp4 (4-line roll-up).
[in]inChannelSpecifies the CEA-608 caption channel to use, which must be CC1, CC2, CC3 or CC4. Defaults to NTV2_CC608_CC1.
[in]inRowNumberSpecifies the row number at which the caption should be displayed. Defaults to the most appropriate bottom-most row.
[in]inColumnNumberSpecifies the column number at which the caption should be displayed. Defaults to the most appropriate left-most column.
[in]pInDisplayAttribsSpecifies a valid, non-NULL pointer to the display attributes to be used. Defaults to the default display attributes.
Returns
True if enqueued successfully; otherwise False.

◆ EnqueueTextMessage()

virtual bool CNTV2CaptionEncoder608::EnqueueTextMessage ( const std::string &  inMessageStr,
const bool  inEraseFirst = false,
const NTV2Line21Channel  inChannel = NTV2_CC608_Text1 
)
virtual

Enqueues the given message for eventual reception and possible display on a receiver capable of displaying Tx data.

Parameters
[in]inMessageStrSpecifies the message to be enqueued for eventual dequeuing/encoding/display. The string must not be empty, nor contain line breaks, nor contain any characters not in the ISO 8859-1 (Latin 1) character set.
[in]inEraseFirstIf true, specifies that the caption area should be erased before displaying the message; otherwise the message will simply be painted on top of what is already in the caption area (the default).
[in]inChannelSpecifies the CEA-608 caption channel to use, which must be Text1, Text2, Text3 or Text4.
Returns
True if enqueued successfully; otherwise False.
Note
Text messages are lower priority than normal captions, and won't get dequeued until all pending CC1/CC2/CC3/CC4 messages have been dequeued.

◆ Erase()

virtual bool CNTV2CaptionEncoder608::Erase ( const NTV2Line21Channel  inChannel = NTV2_CC608_CC1)
virtual

Clears captions on the given channel by emitting ENM (Erase Non-displayed Memory) and EOC (End Of Caption) control codes.

Parameters
[in]inChannelSpecifies the CEA-608 caption channel to use, which must be CC1, CC2, CC3 or CC4. Illegal values are overridden to use the default CC1 value (NTV2_CC608_CC1).
Returns
True if erase control codes were enqueued successfully; otherwise False.

◆ Flush()

virtual void CNTV2CaptionEncoder608::Flush ( const NTV2Line21Field  inFieldNum = NTV2_CC608_Field1,
const bool  inAlsoInProgress = true 
)
virtual

Flushes all queued command bytes for the given CC608 field.

Parameters
[in]inFieldNumSpecifies the c608 caption field of interest. Defaults to NTV2_CC608_Field1.
[in]inAlsoInProgressIf true, also flush any in-progress messages; otherwise leave in-progress messages intact. Defaults to true.

◆ FlushChannel()

virtual void CNTV2CaptionEncoder608::FlushChannel ( const NTV2Line21Channel  inChannel,
const bool  inAlsoInProgress = true 
)
virtual

Flushes all queued command bytes for the given caption channel.

Parameters
[in]inChannelSpecifies the caption channel of interest.
[in]inAlsoInProgressIf true, also flush any in-progress messages for the channel; otherwise leave in-progress messages intact. Defaults to true.

◆ GetDequeueByteTally()

virtual size_t CNTV2CaptionEncoder608::GetDequeueByteTally ( void  ) const
inlinevirtual

Returns the total number of bytes (including command bytes) that have been dequeued from me since I was instantiated.

Definition at line 329 of file ntv2captionencoder608.h.

◆ GetDequeueMessageTally()

virtual size_t CNTV2CaptionEncoder608::GetDequeueMessageTally ( void  ) const
inlinevirtual

Returns the total number of messages that have been dequeued from me since I was instantiated.

Definition at line 339 of file ntv2captionencoder608.h.

◆ GetEnqueueByteTally()

virtual size_t CNTV2CaptionEncoder608::GetEnqueueByteTally ( void  ) const
inlinevirtual

Returns the total number of bytes (including command bytes) that have been enqueued onto me since I was instantiated.

Definition at line 323 of file ntv2captionencoder608.h.

◆ GetEnqueueMessageTally()

virtual size_t CNTV2CaptionEncoder608::GetEnqueueMessageTally ( void  ) const
inlinevirtual

Returns the total number of messages that have been enqueued onto me since I was instantiated.

Definition at line 334 of file ntv2captionencoder608.h.

◆ GetHighestQueueDepth()

virtual size_t CNTV2CaptionEncoder608::GetHighestQueueDepth ( void  ) const
inlinevirtual

Returns the highest queue depth – i.e., the maximum number of messages I held in either of my queues – since I was instantiated.

Definition at line 345 of file ntv2captionencoder608.h.

◆ GetNextCaptionData()

virtual bool CNTV2CaptionEncoder608::GetNextCaptionData ( CaptionData outCaptionData)
virtual

This high-level method is used to dequeue caption data for an entire frame.

Parameters
[out]outCaptionDataReceives the dequeued caption data for an entire frame.
Returns
True if any caption bytes are available in the returned CaptionData structure; otherwise false.

◆ GetNextLine21TransmitCaptions()

virtual UByte* CNTV2CaptionEncoder608::GetNextLine21TransmitCaptions ( const NTV2Line21Field  inFieldNum)
virtual

This calls my lower level "GetNextTransmitCaptionBytes" method (below), and is typically called twice per frame (once per field). If there is a pending message in my queue for the designated field, it pulls the next two bytes out of the message, encodes them into a "Line 21" video waveform and returns a pointer to the waveform buffer. If the two bytes complete the current message, the message is automatically "popped" from the queue and the next message (if any) is rippled into place for the next frame.

Parameters
[in]inFieldNumSpecifies the field of interest – NTV2_CC608_Field1 or NTV2_CC608_Field2.
Returns
Pointer to the properly encoded Line 21 video data, or NULL if error.

◆ GetNextTransmitCaptionBytes()

virtual bool CNTV2CaptionEncoder608::GetNextTransmitCaptionBytes ( const NTV2Line21Field  inFieldNum,
UByte outChar1,
UByte outChar2 
)
virtual

This low-level function is called by the higher level "GetNextLine21TransmitCaptions" function. Typically, this is called twice per frame (once per field). If there is a pending message in my queue for the designated field, it pulls the next two bytes out of the message, and returns them via the "outChar1" and "outChar2" output parameters. If the two bytes complete the current message, the message is automatically "popped" from my queue and the next message (if any) is rippled into place for the next frame.

Parameters
[in]inFieldNumSpecifies the field – NTV2_CC608_Field1 or NTV2_CC608_Field2.
[out]outChar1Receives the first byte code, with the appropriate parity applied.
[out]outChar2Receives the second byte code, with the appropriate parity applied.
Returns
True if any data was available; otherwise false.

◆ GetQueuedByteCount()

virtual size_t CNTV2CaptionEncoder608::GetQueuedByteCount ( const NTV2Line21Field  inFieldNum = NTV2_CC608_Field1) const
virtual

Answers with the total number of bytes (including command bytes) that are currently queued (for the given CC608 field).

Parameters
[in]inFieldNumSpecifies the c608 caption field of interest. Defaults to NTV2_CC608_Field1.
Returns
The current number of queued bytes.

◆ GetQueuedMessageCount()

virtual size_t CNTV2CaptionEncoder608::GetQueuedMessageCount ( const NTV2Line21Field  inFieldNum = NTV2_CC608_Field1) const
virtual

Answers with the current depth of my queue (for the given CC608 field).

Parameters
[in]inFieldNumSpecifies the c608 caption field of interest. Defaults to NTV2_CC608_Field1.
Returns
The current number of queued messages.

◆ GetQueueInfoForChannel()

virtual void CNTV2CaptionEncoder608::GetQueueInfoForChannel ( const NTV2Line21Channel  inChannel,
size_t &  outBytesQueued,
size_t &  outMessagesQueued 
) const
virtual

Returns queue information for a given caption channel.

Parameters
[in]inChannelSpecifies the CEA608 caption channel of interest.
[out]outBytesQueuedReceives the total number of message bytes queued for the given channel.
[out]outMessagesQueuedReceives the total number of messages queued for the given channel.

◆ GetQueueStatsForChannel()

virtual void CNTV2CaptionEncoder608::GetQueueStatsForChannel ( const NTV2Line21Channel  inChannel,
size_t &  outEnqueueBytes,
size_t &  outEnqueueMsgs,
size_t &  outDequeueBytes,
size_t &  outDequeueMsgs 
) const
virtual

Returns stats for a given caption channel.

Parameters
[in]inChannelSpecifies the CEA608 caption channel of interest.
[out]outEnqueueBytesReceives the total number of message bytes enqueued for the given channel.
[out]outEnqueueMsgsReceives the total number of messages enqueued for the given channel.
[out]outDequeueBytesReceives the total number of message bytes ever dequeued for the given channel.
[out]outDequeueMsgsReceives the total number of messages dequeued for the given channel.

◆ SetLogMask()

virtual NTV2CaptionLogMask CNTV2CaptionEncoder608::SetLogMask ( const NTV2CaptionLogMask  inLogMask)
virtual

Specifies what, if any, debug information I will write to my log stream.

Parameters
[in]inLogMaskA bit mask that specifies what information will be logged.

Reimplemented from CNTV2CaptionLogConfig.


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