The NTV2 test pattern generator.
More...
#include <ntv2testpatterngen.h>
|
|
| NTV2TestPatternGen () |
|
virtual | ~NTV2TestPatternGen () |
|
|
virtual bool | DrawTestPattern (const std::string &inTPName, const NTV2FormatDescriptor &inFormatDesc, NTV2Buffer &inBuffer) |
| Renders the given test pattern or color into a host raster buffer. More...
|
|
virtual bool | DrawTestPattern (const NTV2TestPatternSelect inPattern, const NTV2FormatDescriptor &inFormatDesc, NTV2Buffer &inBuffer) |
| Renders the given test pattern into a host raster buffer. More...
|
|
virtual bool | DrawTestPattern (const NTV2TestPatternID tp, const NTV2FormatDesc &fd, NTV2TestPatBuffer &buf) |
|
virtual bool | DrawTestPattern (const NTV2TestPatternID tp, const uint32_t w, const uint32_t h, const NTV2PixelFormat pf, NTV2TestPatBuffer &buf) |
|
|
bool | getUseRGBSmpteRange (void) const |
|
NTV2SignalMask | getSignalMask (void) const |
|
const double & | getSliderValue (void) const |
|
bool | getAlphaFromLuma (void) const |
|
|
NTV2TestPatternGen & | setUseRGBSmpteRange (const bool useRGBSmpteRange) |
|
NTV2TestPatternGen & | setSignalMask (const NTV2SignalMask signalMask) |
|
NTV2TestPatternGen & | setSliderValue (const double &sliderValue) |
|
NTV2TestPatternGen & | setAlphaFromLuma (const bool alphaFromLuma) |
|
NTV2TestPatternGen & | setVANCToLegalBlack (const bool inClearVANC) |
| Changes my "clear VANC lines to legal black" setting. More...
|
|
The NTV2 test pattern generator.
- Bug:
- NTV2TestPatternGen doesn't work for planar formats.
Definition at line 69 of file ntv2testpatterngen.h.
◆ NTV2TestPatternGen()
NTV2TestPatternGen::NTV2TestPatternGen |
( |
| ) |
|
◆ ~NTV2TestPatternGen()
virtual NTV2TestPatternGen::~NTV2TestPatternGen |
( |
| ) |
|
|
inlinevirtual |
◆ canDrawTestPattern()
- Parameters
-
[in] | inPattern | Specifies the test pattern of interest. |
[in] | inDesc | Specifies a description of the raster being used. |
- Returns
- True, if the given test pattern can be drawn for the given raster description.
Definition at line 2286 of file ntv2testpatterngen.cpp.
◆ Draw12BitRamp()
bool NTV2TestPatternGen::Draw12BitRamp |
( |
| ) |
|
|
protectedvirtual |
◆ Draw12BitZonePlate()
bool NTV2TestPatternGen::Draw12BitZonePlate |
( |
| ) |
|
|
protectedvirtual |
◆ DrawBorderFrame()
bool NTV2TestPatternGen::DrawBorderFrame |
( |
| ) |
|
|
protectedvirtual |
◆ DrawColorQuadrantFrame()
bool NTV2TestPatternGen::DrawColorQuadrantFrame |
( |
| ) |
|
|
protectedvirtual |
◆ DrawColorQuadrantFrameTsi()
bool NTV2TestPatternGen::DrawColorQuadrantFrameTsi |
( |
| ) |
|
|
protectedvirtual |
◆ DrawColorQuadrantFrameTsi2()
bool NTV2TestPatternGen::DrawColorQuadrantFrameTsi2 |
( |
| ) |
|
|
protectedvirtual |
◆ drawIt()
bool NTV2TestPatternGen::drawIt |
( |
void |
| ) |
|
|
protectedvirtual |
◆ DrawLinearRampFrame()
bool NTV2TestPatternGen::DrawLinearRampFrame |
( |
| ) |
|
|
protectedvirtual |
◆ DrawQuadrantBorderFrame()
bool NTV2TestPatternGen::DrawQuadrantBorderFrame |
( |
| ) |
|
|
protectedvirtual |
◆ DrawSegmentedTestPattern()
bool NTV2TestPatternGen::DrawSegmentedTestPattern |
( |
| ) |
|
|
protectedvirtual |
◆ DrawSlantRampFrame()
bool NTV2TestPatternGen::DrawSlantRampFrame |
( |
| ) |
|
|
protectedvirtual |
◆ DrawTestPattern() [1/4]
◆ DrawTestPattern() [2/4]
◆ DrawTestPattern() [3/4]
Renders the given test pattern into a host raster buffer.
- Parameters
-
[in] | inPattern | Specifies the test pattern to be drawn. |
[in] | inFormatDesc | Describes the raster memory. |
| inBuffer | Specifies the host memory buffer to be written. |
- Note
- If the format descriptor describes a "tall" or "taller" (VANC) geometry, the first byte in the specified buffer is presumed to be the start of the VANC region.
-
If my mSetDstVancBlack member is true, the buffer's VANC region will also be cleared to legal black.
- Returns
- True if successful; otherwise false.
- Bug:
- Needs planar pixel format implementations.
Definition at line 2726 of file ntv2testpatterngen.cpp.
◆ DrawTestPattern() [4/4]
Renders the given test pattern or color into a host raster buffer.
- Parameters
-
[in] | inTPName | Specifies the name of the test pattern or web color to be drawn. |
[in] | inFormatDesc | Describes the raster memory. |
| inBuffer | Specifies the host memory buffer to be written. |
- Note
- If the format descriptor describes a "tall" or "taller" (VANC) raster geometry, the first byte in the specified buffer is presumed to be the start of the VANC region.
-
If my mSetDstVancBlack member is true, the buffer's VANC region will also be cleared to legal black.
- Returns
- True if successful; otherwise false.
- Bug:
- Needs planar pixel format implementations.
◆ DrawTestPatternNarrowHLG()
bool NTV2TestPatternGen::DrawTestPatternNarrowHLG |
( |
| ) |
|
|
protectedvirtual |
◆ DrawTestPatternNarrowPQ()
bool NTV2TestPatternGen::DrawTestPatternNarrowPQ |
( |
| ) |
|
|
protectedvirtual |
◆ DrawTestPatternWidePQ()
bool NTV2TestPatternGen::DrawTestPatternWidePQ |
( |
| ) |
|
|
protectedvirtual |
◆ DrawYCbCrFrame()
bool NTV2TestPatternGen::DrawYCbCrFrame |
( |
uint16_t |
Y, |
|
|
uint16_t |
Cb, |
|
|
uint16_t |
Cr |
|
) |
| |
|
protectedvirtual |
◆ DrawZonePlateFrame()
bool NTV2TestPatternGen::DrawZonePlateFrame |
( |
| ) |
|
|
protectedvirtual |
◆ findRGBColorByName()
ULWord NTV2TestPatternGen::findRGBColorByName |
( |
const std::string & |
inName | ) |
|
|
static |
- Returns
- The flat-field RGB "web color" value that corresponds to the given name. The highest-order byte in the 32-bit result is 0x00; the next-lower byte is the Red value (0-255); the next-lower byte is the Green value (0-255); the lowest-order byte is the Blue value (0-255). A zero return value means "not found".
- Parameters
-
[in] | inName | Specifies the "web color" name. The search is done case-insensitively. |
- Note
- "Black" and "White" are not returned, as these are available as ordinary test patterns NTV2_TestPatt_Black and NTV2_TestPatt_White, respectively.
- Bug:
- As currently implemented and documented, this function only returns 8-bit deep color values.
Definition at line 2577 of file ntv2testpatterngen.cpp.
◆ findTestPatternByName()
- Returns
- The test pattern that corresponds to the given name.
- Parameters
-
[in] | inName | Specifies the test pattern name. The search is done case-insensitively. |
Definition at line 2568 of file ntv2testpatterngen.cpp.
◆ getAlphaFromLuma()
bool NTV2TestPatternGen::getAlphaFromLuma |
( |
void |
| ) |
const |
|
inline |
◆ getColorNames()
- Returns
- An ordered collection of strings containing the names of all available flat-field "web colors".
Definition at line 2552 of file ntv2testpatterngen.cpp.
◆ getSignalMask()
◆ getSliderValue()
const double& NTV2TestPatternGen::getSliderValue |
( |
void |
| ) |
const |
|
inline |
◆ GetStandard()
bool NTV2TestPatternGen::GetStandard |
( |
int & |
outStandard, |
|
|
bool & |
outIs4K, |
|
|
bool & |
outIs8K |
|
) |
| const |
|
protected |
◆ getTestPatternNames()
- Returns
- An ordered collection of strings containing the names of all available test patterns.
Definition at line 2542 of file ntv2testpatterngen.cpp.
◆ getUseRGBSmpteRange()
bool NTV2TestPatternGen::getUseRGBSmpteRange |
( |
void |
| ) |
const |
|
inline |
◆ IsSDStandard()
bool NTV2TestPatternGen::IsSDStandard |
( |
void |
| ) |
const |
|
protected |
◆ PrepareForOutput()
void NTV2TestPatternGen::PrepareForOutput |
( |
| ) |
|
|
protectedvirtual |
◆ setAlphaFromLuma()
◆ setSignalMask()
◆ setSliderValue()
◆ setUseRGBSmpteRange()
NTV2TestPatternGen& NTV2TestPatternGen::setUseRGBSmpteRange |
( |
const bool |
useRGBSmpteRange | ) |
|
|
inline |
◆ setVANCToLegalBlack()
Changes my "clear VANC lines to legal black" setting.
- Parameters
-
[in] | inClearVANC | Specify true to have my DrawTestPattern method automatically clear the VANC region (if any) to legal black. |
- Returns
- A non-constant reference to me.
Definition at line 198 of file ntv2testpatterngen.h.
◆ mBitsPerComponent
uint32_t NTV2TestPatternGen::mBitsPerComponent |
|
protected |
◆ mCompressionType
uint16_t NTV2TestPatternGen::mCompressionType |
|
protected |
◆ mData
std::vector<char> NTV2TestPatternGen::mData |
|
protected |
◆ mDataOffset
uint32_t NTV2TestPatternGen::mDataOffset |
|
protected |
◆ mDataSize
uint32_t NTV2TestPatternGen::mDataSize |
|
protected |
◆ mDstBufferSize
uint32_t NTV2TestPatternGen::mDstBufferSize |
|
protected |
◆ mDstFrameHeight
uint32_t NTV2TestPatternGen::mDstFrameHeight |
|
protected |
◆ mDstFrameWidth
uint32_t NTV2TestPatternGen::mDstFrameWidth |
|
protected |
◆ mDstLinePitch
uint32_t NTV2TestPatternGen::mDstLinePitch |
|
protected |
◆ mDstPixelFormat
◆ mNumLines
uint32_t NTV2TestPatternGen::mNumLines |
|
protected |
◆ mNumPixels
uint32_t NTV2TestPatternGen::mNumPixels |
|
protected |
◆ mPatternID
◆ mpDstBuffer
uint8_t* NTV2TestPatternGen::mpDstBuffer |
|
protected |
◆ mpPackedLineBuffer
uint32_t* NTV2TestPatternGen::mpPackedLineBuffer |
|
protected |
◆ mpUnpackedLineBuffer
uint16_t* NTV2TestPatternGen::mpUnpackedLineBuffer |
|
protected |
◆ mRGBBuffer
std::vector<uint16_t> NTV2TestPatternGen::mRGBBuffer |
|
protected |
◆ mSamplesPerPixel
uint32_t NTV2TestPatternGen::mSamplesPerPixel |
|
protected |
◆ mSetAlphaFromLuma
bool NTV2TestPatternGen::mSetAlphaFromLuma |
|
protected |
◆ mSetDstVancBlack
bool NTV2TestPatternGen::mSetDstVancBlack |
|
protected |
◆ mSetRGBSmpteRange
bool NTV2TestPatternGen::mSetRGBSmpteRange |
|
protected |
◆ mSignalMask
◆ mSliderValue
double NTV2TestPatternGen::mSliderValue |
|
protected |
◆ mSrcLinePitch
uint32_t NTV2TestPatternGen::mSrcLinePitch |
|
protected |
◆ mUnPackedRAWBuffer
std::vector<uint16_t> NTV2TestPatternGen::mUnPackedRAWBuffer |
|
protected |
The documentation for this class was generated from the following files: