|
AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Go to the documentation of this file.
8 #ifndef NTV2_TESTPATTERN_GEN_
9 #define NTV2_TESTPATTERN_GEN_
18 #if !defined(NTV2_DEPRECATE_16_0)
20 #endif // !defined(NTV2_DEPRECATE_16_0)
58 #define NTV2_IS_VALID_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ColorBars100 && (__S__) < NTV2_TestPatt_All)
59 #define NTV2_IS_12B_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ZonePlate_12b_RGB && (__S__) < NTV2_TestPatt_All)
114 static ULWord findRGBColorByName (
const std::string & inName);
143 virtual bool DrawTestPattern (
const std::string & inTPName,
162 #if !defined(NTV2_DEPRECATE_16_0)
171 #endif // !defined(NTV2_DEPRECATE_16_0)
177 inline bool getUseRGBSmpteRange (
void)
const {
return mSetRGBSmpteRange;}
182 inline bool setVANCToLegalBlack (
void)
const {
return mSetDstVancBlack;}
188 inline NTV2TestPatternGen & setUseRGBSmpteRange (
const bool useRGBSmpteRange) {mSetRGBSmpteRange = useRGBSmpteRange;
return *
this;}
203 virtual bool DrawSegmentedTestPattern ();
204 virtual bool DrawYCbCrFrame (uint16_t Y, uint16_t Cb, uint16_t Cr);
205 virtual bool DrawBorderFrame ();
206 virtual bool DrawLinearRampFrame ();
207 virtual bool DrawSlantRampFrame ();
208 virtual bool DrawZonePlateFrame ();
209 virtual bool DrawQuadrantBorderFrame ();
210 virtual bool DrawColorQuadrantFrame ();
211 virtual bool DrawColorQuadrantFrameTsi ();
212 virtual bool DrawColorQuadrantFrameTsi2 ();
215 virtual bool DrawTestPatternNarrowHLG();
216 virtual bool DrawTestPatternNarrowPQ();
217 virtual bool DrawTestPatternWidePQ();
218 virtual bool Draw12BitRamp();
219 virtual bool Draw12BitZonePlate();
220 virtual void PrepareForOutput();
222 bool IsSDStandard(
void)
const;
223 bool GetStandard (
int & outStandard,
bool & outIs4K,
bool & outIs8K)
const;
224 virtual bool drawIt (
void);
258 #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
@ 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
An ordered sequence of pattern names.
std::set< NTV2TestPatternSelect > NTV2TestPatternSet