![]() |
AJA NTV2 SDK
17.6.0.1688
NTV2 SDK 17.6.0.1688
|
#include <ntv2caption708service.h>
Public Member Functions | |
CNTV2Caption708Service () | |
virtual | ~CNTV2Caption708Service () |
virtual void | InitService (const int inServiceIndex) |
virtual bool | SetServiceInfo (const NTV2_CC708ServiceInfo &inNewSvcInfo) |
virtual bool | ParseInputServiceBlockToLocalQueue (const UByte *pInData, const size_t inByteCount) |
Parses the given Service Block into elementary commands and enqueues them as independent Service Blocks. More... | |
virtual size_t | GetCommandSize (const UByte *pInData, const size_t inByteCount) const |
Answers with the size of the 708 command that starts at the first byte in the given buffer. More... | |
virtual size_t | Parse708Command (const UByte *pInData, const size_t inByteCount) |
Parses the 708 command that starts at the first byte in the given buffer. More... | |
virtual size_t | DebugParse708Command (const UByte *pInData, const size_t inByteCount) const |
virtual bool | SetCurrentWindow (const int inWindowID) |
Specifies my current window ID, replacing the former value. See CEA-708-D section 8.10.5.1. Subsequent calls to SetWindowAttributes, SetPenAttributes, SetPenLocation, etc. will affect this window. More... | |
virtual bool | ClearWindows (const UByte inWindowMap) |
Clears text from the given set of windows. See CEA-708-D section 8.10.5.3. More... | |
virtual bool | DeleteWindows (const UByte inWindowMap) |
Deletes the window definitions for the given set of windows. See CEA-708-D section 8.10.5.4. More... | |
virtual bool | DisplayWindows (const UByte inWindowMap) |
Shows (unhides) the given set of windows. See CEA-708-D section 8.10.5.5. More... | |
virtual bool | HideWindows (const UByte inWindowMap) |
Hides the given set of windows. See CEA-708-D section 8.10.5.6. More... | |
virtual bool | ToggleWindows (const UByte inWindowMap) |
Toggles the display/hide status for the given set of windows. See CEA-708C section 8.10.5.7. More... | |
virtual bool | DefineWindow (const int inWindowID, const CC708WindowParms &inParameters) |
Defines a new window with the given ID and initial parameters, or updates the existing window's parameters. In either case, the given window becomes the new "current" window. See CEA-708-D section 8.10.5.2. More... | |
virtual bool | SetWindowAttributes (const CC708WindowAttr &inAttributes) |
Specifies new attributes for my current window. See CEA-708-D section 8.10.5.8. More... | |
virtual void | SetPenAttributes (const CC708PenAttr &inAttributes) |
Specifies new pen attributes for my current window. See CEA-708-D section 8.10.5.9. More... | |
virtual void | SetPenColor (const CC708PenColor &inColor) |
Specifies a new pen color for my current window. See CEA-708-D section 8.10.5.10. More... | |
virtual void | SetPenLocation (const CC708PenLocation &inLocation) |
Specifies a new pen location for my current window. See CEA-708-D section 8.10.5.11. More... | |
virtual void | Delay (const int inTenthsSec) |
Delays service data interpretation. See CEA-708-D Section 8.10.5.12. More... | |
virtual void | DelayCancel (void) |
Cancels an Active Delay Command. See CEA-708-D section 8.10.5.13. More... | |
virtual void | Reset (void) |
Resets the Caption Channel Service. See CEA-708-D section 8.10.5.14. More... | |
virtual void | AddCharacter (const UByte inChar, const CC708CodeGroup inCodeGroup) |
virtual void | DoETX (void) |
virtual void | DoBS (void) |
virtual void | DoFF (void) |
virtual void | DoCR (void) |
virtual void | DoHCR (void) |
virtual bool | PeekNextServiceBlockInfo (size_t &outBlockSize, size_t &outDataSize, int &outServiceNum, bool &outIsExtended) const |
virtual size_t | PopServiceBlock (std::vector< UByte > &outData) |
virtual size_t | PopServiceBlockData (std::vector< UByte > &outData) |
virtual size_t | PopServiceBlock (UByte *pData) |
virtual size_t | PopServiceBlockData (UByte *pData) |
virtual NTV2CaptionLogMask | SetLogMask (const NTV2CaptionLogMask inLogMask) |
Specifies what, if any, debug information I will write to my log stream. More... | |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
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... | |
Definition at line 19 of file ntv2caption708service.h.
CNTV2Caption708Service::CNTV2Caption708Service | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Clears text from the given set of windows. See CEA-708-D section 8.10.5.3.
[in] | inWindowMap | Specifies the set of windows to be affected, where each bit of the given 8-bit value corresponds to a window ID (0 thru 7). If the map's bit is set, the window having the ID corresponding to that bit will be affected. |
|
virtual |
|
virtual |
Defines a new window with the given ID and initial parameters, or updates the existing window's parameters. In either case, the given window becomes the new "current" window. See CEA-708-D section 8.10.5.2.
[in] | inWindowID | Specifies the new window's ID. |
[in] | inParameters | Specifies the new window's initial parameters. |
|
virtual |
Delays service data interpretation. See CEA-708-D Section 8.10.5.12.
|
virtual |
Cancels an Active Delay Command. See CEA-708-D section 8.10.5.13.
|
virtual |
Deletes the window definitions for the given set of windows. See CEA-708-D section 8.10.5.4.
[in] | inWindowMap | Specifies the set of windows to be affected, where each bit of the given 8-bit value corresponds to a window ID (0 thru 7). If the map's bit is set, the window having the ID corresponding to that bit will be affected. |
|
virtual |
Shows (unhides) the given set of windows. See CEA-708-D section 8.10.5.5.
[in] | inWindowMap | Specifies the set of windows to be affected, where each bit of the given 8-bit value corresponds to a window ID (0 thru 7). If the map's bit is set, the window having the ID corresponding to that bit will be affected. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Answers with the size of the 708 command that starts at the first byte in the given buffer.
[in] | pInData | Specifies the valid, non-NULL address of the command buffer. |
[in] | inByteCount | Specifies the number of valid data bytes in the buffer. |
|
virtual |
Hides the given set of windows. See CEA-708-D section 8.10.5.6.
[in] | inWindowMap | Specifies the set of windows to be affected, where each bit of the given 8-bit value corresponds to a window ID (0 thru 7). If the map's bit is set, the window having the ID corresponding to that bit will be affected. |
|
virtual |
|
virtual |
Parses the 708 command that starts at the first byte in the given buffer.
[in] | pInData | Specifies the valid, non-NULL address of the command buffer. |
[in] | inByteCount | Specifies the number of valid data bytes in the buffer. |
|
virtual |
Parses the given Service Block into elementary commands and enqueues them as independent Service Blocks.
[in] | pInData | Specifies a valid, non-NULL address of the first Data Word of Service Block (NOT the Service Block header!). |
[in] | inByteCount | Specifies the number of data bytes in the Service Block. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Resets the Caption Channel Service. See CEA-708-D section 8.10.5.14.
|
virtual |
Specifies my current window ID, replacing the former value. See CEA-708-D section 8.10.5.1. Subsequent calls to SetWindowAttributes, SetPenAttributes, SetPenLocation, etc. will affect this window.
[in] | inWindowID | Specifies the window that is to become the current one. Must be 0 thru 7. |
|
virtual |
Specifies what, if any, debug information I will write to my log stream.
[in] | inLogMask | A bit mask that specifies what information will be logged. |
Reimplemented from CNTV2CaptionLogConfig.
|
virtual |
Specifies new pen attributes for my current window. See CEA-708-D section 8.10.5.9.
[in] | inAttributes | Specifies the pen attributes to use. |
|
virtual |
Specifies a new pen color for my current window. See CEA-708-D section 8.10.5.10.
[in] | inColor | Specifies the pen color to use. |
|
virtual |
Specifies a new pen location for my current window. See CEA-708-D section 8.10.5.11.
[in] | inLocation | Specifies the pen location to use. |
|
virtual |
|
virtual |
Specifies new attributes for my current window. See CEA-708-D section 8.10.5.8.
[in] | inAttributes | Specifies the window attributes to use. |
|
virtual |
Toggles the display/hide status for the given set of windows. See CEA-708C section 8.10.5.7.
[in] | inWindowMap | Specifies the set of windows to be affected, where each bit of the given 8-bit value corresponds to a window ID (0 thru 7). If the map's bit is set, the window having the ID corresponding to that bit will be affected. |