|
AJA NTV2 SDK
17.0.1.1246
NTV2 SDK 17.0.1.1246
|
Go to the documentation of this file.
8 #ifndef NTV2_TESTPATTERN_GEN_
9 #define NTV2_TESTPATTERN_GEN_
56 #define NTV2_IS_VALID_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ColorBars100 && (__S__) < NTV2_TestPatt_All)
57 #define NTV2_IS_12B_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ZonePlate_12b_RGB && (__S__) < NTV2_TestPatt_All)
112 static ULWord findRGBColorByName (
const std::string & inName);
141 virtual bool DrawTestPattern (
const std::string & inTPName,
160 #if !defined(NTV2_DEPRECATE_16_0)
169 #endif // !defined(NTV2_DEPRECATE_16_0)
175 inline bool getUseRGBSmpteRange (
void)
const {
return mSetRGBSmpteRange;}
180 inline bool setVANCToLegalBlack (
void)
const {
return mSetDstVancBlack;}
186 inline NTV2TestPatternGen & setUseRGBSmpteRange (
const bool useRGBSmpteRange) {mSetRGBSmpteRange = useRGBSmpteRange;
return *
this;}
201 virtual bool DrawSegmentedTestPattern ();
202 virtual bool DrawYCbCrFrame (uint16_t Y, uint16_t Cb, uint16_t Cr);
203 virtual bool DrawBorderFrame ();
204 virtual bool DrawLinearRampFrame ();
205 virtual bool DrawSlantRampFrame ();
206 virtual bool DrawZonePlateFrame ();
207 virtual bool DrawQuadrantBorderFrame ();
208 virtual bool DrawColorQuadrantFrame ();
209 virtual bool DrawColorQuadrantFrameTsi ();
210 virtual bool DrawColorQuadrantFrameTsi2 ();
213 virtual bool DrawTestPatternNarrowHLG();
214 virtual bool DrawTestPatternNarrowPQ();
215 virtual bool DrawTestPatternWidePQ();
216 virtual bool Draw12BitRamp();
217 virtual bool Draw12BitZonePlate();
218 virtual void PrepareForOutput();
220 bool IsSDStandard(
void)
const;
221 bool GetStandard (
int & outStandard,
bool & outIs4K,
bool & outIs8K)
const;
222 virtual bool drawIt (
void);
256 #endif // NTV2_TESTPATTERN_GEN_
@ NTV2_TestPatt_LinearRamp_12b_RGB
NTV2SignalMask getSignalMask(void) const
@ NTV2_TestPatt_TsiAlignment
uint16_t * mpUnpackedLineBuffer
Defines the import/export macros for producing DLLs or LIBs.
NTV2TestPatternSelect NTV2TestPatternID
@ NTV2_TestPatt_CheckField
double mSliderValue
Used for Zone Plate.
@ NTV2_TestPatt_MultiBurst
NTV2TestPatternSelect
Identifies a predefined NTV2 test pattern.
A generic user-space buffer object that has an address and a length. Used most often to share an arbi...
bool getAlphaFromLuma(void) const
@ NTV2_TestPatt_PQ_Wide_12b_RGB
bool mSetDstVancBlack
Set destination VANC lines to legal black?
NTV2TestPatternGen & setAlphaFromLuma(const bool alphaFromLuma)
NTV2PixelFormat mDstPixelFormat
Dest pixel format.
@ NTV2_TestPatt_ColorBars100
uint32_t mBitsPerComponent
NTV2FrameBufferFormat
Identifies a particular video frame buffer format. See Device Frame Buffer Formats for details.
std::vector< uint16_t > mRGBBuffer
@ NTV2_TestPatt_PQ_Narrow_12b_RGB
std::vector< uint8_t > NTV2TestPatBuffer
A byte vector that stores a complete video frame.
@ NTV2_TestPatt_ZonePlate_12b_RGB
const double & getSliderValue(void) const
NTV2TestPatternSet::const_iterator NTV2TestPatternSetConstIter
NTV2TestPatternGen & setSliderValue(const double &sliderValue)
std::vector< uint8_t > NTV2TestPatternBuffer
@ NTV2_TestPatt_FlatField
@ NTV2_TestPatt_HLG_Narrow_12b_RGB
@ NTV2_TestPatt_ColorQuadrantTsi
@ NTV2_TestPatt_ColorQuadrant
@ NTV2_TestPatt_ColorQuadrantBorder
Enumerations for controlling NTV2 devices.
uint8_t * mpDstBuffer
Dest buffer (start of active video)
Declares numerous NTV2 utility functions.
std::vector< char > mData
@ NTV2_TestPatt_SlantRamp
@ NTV2_TestPatt_ColorBars75
@ NTV2_TestPatt_ZonePlate
uint32_t * mpPackedLineBuffer
std::vector< std::string > NTV2StringList
The NTV2 test pattern generator.
#define NTV2_DEPRECATED_f(__f__)
NTV2TestPatternID mPatternID
Pattern number.
uint32_t mSamplesPerPixel
virtual ~NTV2TestPatternGen()
uint32_t mSrcLinePitch
Src bytes per row.
uint32_t mDstFrameWidth
Dest width (pixels)
uint32_t mDstFrameHeight
Dest height (lines)
uint32_t mDstBufferSize
Dest visible buffer size (bytes)
NTV2TestPatternGen & setSignalMask(const NTV2SignalMask signalMask)
uint32_t mDstLinePitch
Dest bytes per row.
@ NTV2_TestPatt_MultiPattern
@ NTV2_TestPatt_LineSweep
uint16_t mCompressionType
@ NTV2_TestPatt_LinearRamp
NTV2SignalMask mSignalMask
Component mask for MultiBurst, LineSweep.
std::vector< uint16_t > mUnPackedRAWBuffer
NTV2TestPatternGen & setVANCToLegalBlack(const bool inClearVANC)
Changes my "clear VANC lines to legal black" setting.
NTV2StringList NTV2TestPatternNames
A list (std::vector) of pattern names.
std::set< NTV2TestPatternSelect > NTV2TestPatternSet