AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
CNTV2CaptionTranslator708to708 Class Reference

#include <ntv2captiontranslator708to708.h>

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

Public Member Functions

virtual ~CNTV2CaptionTranslator708to708 ()
 
virtual void Reset (void)
 
virtual bool GrabInputSmpte334AndParse (const UByte *pVideo, const NTV2VideoFormat videoFormat, const NTV2FrameBufferFormat pixelFormat, bool &outHasParityErrors)
 
virtual bool CreateSMPTE334Anc (const NTV2FrameRate inOutputFrameRate, const NTV2Line21Field inField, UWordPtr &outAncPacketData, size_t &outSize)
 
virtual bool CreateSMPTE334Anc (const NTV2FrameRate inOutputFrameRate, const NTV2Line21Field inField)
 
virtual bool OutputSMPTE334Anc (void *pFrameBuffer, const NTV2VideoFormat inVideoFormat, const NTV2FrameBufferFormat inPixelFormat, const ULWord inLineNumber=0)
 
virtual bool CopyDecoderDataToEncoder (NTV2FrameRate outputFrameRate, NTV2Line21Field field)
 
virtual void Set608TestIDMode (bool bTest)
 
virtual NTV2CaptionLogMask SetLogMask (const NTV2CaptionLogMask inLogMask)
 Specifies what, if any, debug information I will write to my log stream. 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 (CNTV2CaptionTranslator708to708Ptr &outEncoder)
 Creates a new CNTV2CaptionEncoder708 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 26 of file ntv2captiontranslator708to708.h.

Constructor & Destructor Documentation

◆ ~CNTV2CaptionTranslator708to708()

virtual CNTV2CaptionTranslator708to708::~CNTV2CaptionTranslator708to708 ( )
virtual

Member Function Documentation

◆ CopyDecoderDataToEncoder()

virtual bool CNTV2CaptionTranslator708to708::CopyDecoderDataToEncoder ( NTV2FrameRate  outputFrameRate,
NTV2Line21Field  field 
)
virtual

◆ Create()

static bool CNTV2CaptionTranslator708to708::Create ( CNTV2CaptionTranslator708to708Ptr outEncoder)
static

Creates a new CNTV2CaptionEncoder708 instance.

Parameters
[out]outEncoderReceives the newly-created encoder instance.
Returns
True if successful; otherwise False.

◆ CreateSMPTE334Anc() [1/2]

virtual bool CNTV2CaptionTranslator708to708::CreateSMPTE334Anc ( const NTV2FrameRate  inOutputFrameRate,
const NTV2Line21Field  inField 
)
virtual

◆ CreateSMPTE334Anc() [2/2]

virtual bool CNTV2CaptionTranslator708to708::CreateSMPTE334Anc ( const NTV2FrameRate  inOutputFrameRate,
const NTV2Line21Field  inField,
UWordPtr outAncPacketData,
size_t &  outSize 
)
virtual

◆ GrabInputSmpte334AndParse()

virtual bool CNTV2CaptionTranslator708to708::GrabInputSmpte334AndParse ( const UByte pVideo,
const NTV2VideoFormat  videoFormat,
const NTV2FrameBufferFormat  pixelFormat,
bool &  outHasParityErrors 
)
virtual

◆ OutputSMPTE334Anc()

virtual bool CNTV2CaptionTranslator708to708::OutputSMPTE334Anc ( void *  pFrameBuffer,
const NTV2VideoFormat  inVideoFormat,
const NTV2FrameBufferFormat  inPixelFormat,
const ULWord  inLineNumber = 0 
)
virtual

◆ Reset()

virtual void CNTV2CaptionTranslator708to708::Reset ( void  )
virtual

◆ Set608TestIDMode()

virtual void CNTV2CaptionTranslator708to708::Set608TestIDMode ( bool  bTest)
virtual

◆ SetLogMask()

virtual NTV2CaptionLogMask CNTV2CaptionTranslator708to708::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: