AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
AJATimeCodeBurn Class Reference

#include <timecodeburn.h>

Public Member Functions

AJA_EXPORT AJATimeCodeBurn (void)
 
virtual AJA_EXPORT ~AJATimeCodeBurn (void)
 
AJA_EXPORT bool RenderTimeCodeFont (AJA_PixelFormat pixelFormat, uint32_t numPixels, uint32_t numLines)
 
AJA_EXPORT bool BurnTimeCode (void *pBaseVideoAddress, const std::string &inTimeCodeStr, const uint32_t inYPercent)
 
AJA_EXPORT bool BurnTimeCode (char *pBaseVideoAddress, const char *pTimeCodeString, const uint32_t percentY)
 

Protected Member Functions

void CopyDigit (int digitOffset, char *pFrameBuff)
 
void writeV210Pixel (char **pBytePtr, int x, int c, int y)
 
void writeYCbCr10PackedPlanerPixel (char **pBytePtr, int x, int y)
 

Detailed Description

Class to support burning a simple timecode over raster.

Definition at line 19 of file timecodeburn.h.

Constructor & Destructor Documentation

◆ AJATimeCodeBurn()

AJATimeCodeBurn::AJATimeCodeBurn ( void  )

Definition at line 21 of file timecodeburn.cpp.

◆ ~AJATimeCodeBurn()

AJATimeCodeBurn::~AJATimeCodeBurn ( void  )
virtual

Definition at line 35 of file timecodeburn.cpp.

Member Function Documentation

◆ BurnTimeCode() [1/2]

bool AJATimeCodeBurn::BurnTimeCode ( char *  pBaseVideoAddress,
const char *  pTimeCodeString,
const uint32_t  percentY 
)

DEPRECATED: Use std::string version of this function.

Definition at line 88 of file timecodeburn.cpp.

◆ BurnTimeCode() [2/2]

bool AJATimeCodeBurn::BurnTimeCode ( void *  pBaseVideoAddress,
const std::string &  inTimeCodeStr,
const uint32_t  inYPercent 
)

Burns a timecode in with simple font 00:00:00;00.

Parameters
[in]pBaseVideoAddressBase address of Raster
[in]inTimeCodeStrA string containing something like "00:00:00:00"
[in]inYPercentPercent down the screen. If 0, will make it 80.
Returns
True if successful; otherwise false.

Definition at line 45 of file timecodeburn.cpp.

◆ CopyDigit()

void AJATimeCodeBurn::CopyDigit ( int  digitOffset,
char *  pFrameBuff 
)
protected

Definition at line 93 of file timecodeburn.cpp.

◆ RenderTimeCodeFont()

bool AJATimeCodeBurn::RenderTimeCodeFont ( AJA_PixelFormat  pixelFormat,
uint32_t  numPixels,
uint32_t  numLines 
)

Render a small set of characters for timecode ahead of time...This needs to be called before BurnTimeCode or BurnTimeCode will fail.

Parameters
[in]pixelFormatSpecifies the pixel format of the rendering buffer.
[in]numPixelsSpecifies the raster bitmap width.
[in]numLinesSpecifies the raster bitmap height.

Definition at line 447 of file timecodeburn.cpp.

◆ writeV210Pixel()

void AJATimeCodeBurn::writeV210Pixel ( char **  pBytePtr,
int  x,
int  c,
int  y 
)
protected

Definition at line 806 of file timecodeburn.cpp.

◆ writeYCbCr10PackedPlanerPixel()

void AJATimeCodeBurn::writeYCbCr10PackedPlanerPixel ( char **  pBytePtr,
int  x,
int  y 
)
protected

Definition at line 844 of file timecodeburn.cpp.


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