7 #ifndef __NTV2_CAPTION608MESSAGE__ 8 #define __NTV2_CAPTION608MESSAGE__ 43 static const UWord NTV2_CC608_CaptionMsgMaxBytes = 256;
66 virtual std::ostream &
Print (std::ostream & inOutStream)
const;
72 virtual inline bool HasData (
void)
const {
return GetLength () > 0;}
88 virtual UByte ReadNext (
void);
94 virtual inline void SkipNext (
void) {
if (mReadPosition < mLength) mReadPosition++;}
106 virtual inline bool IsPastEnd (
void)
const {
return GetReadPosition () >= GetLength ();}
116 virtual bool Add608Command (
const UWord inCommand);
124 virtual bool Add608String (
const std::string & inMessageStr);
132 virtual bool AddBytePair (
const UByte inByte1,
const UByte inByte2);
144 UByte mData [NTV2_CC608_CaptionMsgMaxBytes];
160 #endif // __NTV2_CAPTION608MESSAGE__ NTV2_CC608_CaptionMessageType
virtual bool IsPastEnd(void) const
Returns "true" if my internal read position is past the end; otherwise returns "false".
AJARefPtr< CNTV2Caption608Message > CNTV2Caption608MessagePtr
virtual bool IsHighPriority(void) const
I am a thread-safe queue of caption messages. Internally, I maintain two queues: one for high-priorit...
I am a reference-counted pointer template class. I am intended to be a proxy for an underlying object...
virtual UWord GetRemainingByteCapacity(void) const
Defines the AJARefPtr template class.
#define IsLine21CaptionChannel(_chan_)
std::ostream & operator<<(std::ostream &inOutStream, const CNTV2Caption608Message &inMsg)
virtual bool IsLowPriority(void) const
virtual UWord GetBytesRemaining(void) const
virtual ~CNTV2Caption608Message()
virtual void SkipNext(void)
Increments my internal read position (if not already past end).
CNTV2Caption608Message NTV2CaptionMessage
Declares the NTV2CaptionLogMask, and the CNTV2CaptionLogConfig class.
virtual bool IsData(void) const
virtual std::ostream & Print(std::ostream &inOutStream) const
Prints a human-readable representation of me to the given output stream.
virtual UWord GetLength(void) const
virtual bool HasData(void) const
CNTV2Caption608MessagePtr CNTV2608MsgPtr
virtual bool IsDelay(void) const
virtual std::ostream & Print(std::ostream &inOutStream, const bool inDumpMessages=true) const
Prints a human-readable representation of me to the given output stream in oldest-to-newest order...
virtual UWord GetReadPosition(void) const
Returns my internal read position.
CNTV2Caption608MessagePtr NTV2CaptionMessagePtr
virtual NTV2Line21Channel GetChannel(void) const
NTV2Line21Channel
The CEA-608 caption channels: CC1 thru CC4, TX1 thru TX4, plus XDS.
Declares several data types used with 608/SD captioning.
virtual NTV2_CC608_CaptionMessageType GetType(void) const