AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
I am a simple, thread-safe queue of CEA-708 caption service blocks. More...
#include <ntv2caption708serviceblockqueue.h>
Public Member Functions | |
CNTV2Caption708ServiceBlockQueue () | |
virtual | ~CNTV2Caption708ServiceBlockQueue () |
virtual void | Flush (void) |
Flushes me. More... | |
virtual bool | IsEmpty (void) const |
Returns true if I'm currently empty. More... | |
virtual size_t | GetCurrentDepth (void) const |
Returns the number of Service Blocks that I contain. More... | |
virtual size_t | GetHighestDepth (void) const |
Returns the highest number of Service Blocks that I contain or ever have contained since I was instantiated. More... | |
virtual size_t | GetEnqueueTally (void) const |
Returns the number of "push" calls that have been made since I was instantiated. More... | |
virtual size_t | GetDequeueTally (void) const |
Returns the number of "pop" calls that have been made since I was instantiated. More... | |
virtual size_t | GetEnqueueByteTally (void) const |
Returns the total number of bytes that have been enqueued since I was instantiated. More... | |
virtual size_t | GetDequeueByteTally (void) const |
Returns the total number of bytes that have been dequeued since I was instantiated. More... | |
virtual bool | PushServiceBlock (const UByte *pInServiceBlockData, const size_t inServiceBlockByteCount) |
Enqueues the given service block. More... | |
virtual bool | PeekNextServiceBlockInfo (size_t &outBlockSize, size_t &outDataSize, int &outServiceNum, bool &outIsExtended) const |
Returns information about the [next] Service Block that's sitting at the top of my queue, if any. My queue is left unchanged. More... | |
virtual size_t | PopServiceBlock (std::vector< UByte > &outData) |
Pops the next Service Block off my queue and copies it into the byte vector. More... | |
virtual size_t | PopServiceBlockData (std::vector< UByte > &outData) |
Pops the next Service Block off my queue and copies just its data into the designated buffer. More... | |
virtual size_t | PopServiceBlock (UByte *pOutDataBuffer) |
virtual size_t | PopServiceBlockData (UByte *pOutDataBuffer) |
virtual void | SetDebugChannel (const int inChannelNum) |
Sets my channel number (used in log messages). More... | |
virtual std::ostream & | Print (std::ostream &inOutStrm, const bool inWithData=false) const |
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 |
Additional Inherited Members | |
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) |
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... | |
I am a simple, thread-safe queue of CEA-708 caption service blocks.
Definition at line 28 of file ntv2caption708serviceblockqueue.h.
|
explicit |
|
virtual |
|
virtual |
Flushes me.
|
virtual |
Returns the number of Service Blocks that I contain.
|
virtual |
Returns the total number of bytes that have been dequeued since I was instantiated.
|
virtual |
Returns the number of "pop" calls that have been made since I was instantiated.
|
virtual |
Returns the total number of bytes that have been enqueued since I was instantiated.
|
virtual |
Returns the number of "push" calls that have been made since I was instantiated.
|
virtual |
Returns the highest number of Service Blocks that I contain or ever have contained since I was instantiated.
|
virtual |
Returns true if I'm currently empty.
|
virtual |
Returns information about the [next] Service Block that's sitting at the top of my queue, if any. My queue is left unchanged.
outBlockSize | Receives the size of the service block, in bytes. |
outDataSize | Receives the size of the service block data, in bytes. |
outServiceNum | Receives the Service Number. |
outIsExtended | Receives "true" if the service block is an "extended" one; otherwise, receives "false". |
|
virtual |
Pops the next Service Block off my queue and copies it into the byte vector.
[out] | outData | Receives the service block byte(s). |
|
virtual |
|
virtual |
Pops the next Service Block off my queue and copies just its data into the designated buffer.
[out] | outData | Receives just the data byte(s) from the service block. |
|
virtual |
|
virtual |
|
virtual |
Enqueues the given service block.
pInServiceBlockData | A valid, non-NULL pointer to a buffer containing the service block data, including the header. |
inServiceBlockByteCount | Specifies the exact number of valid bytes in the source buffer to be copied into my queue. |
|
virtual |
Sets my channel number (used in log messages).
inChannelNum | Specifies my channel number used in log messages. |