8 #ifndef NTV2_TESTPATTERN_GEN_ 9 #define NTV2_TESTPATTERN_GEN_ 18 #if !defined(NTV2_DEPRECATE_16_0) 20 #endif // !defined(NTV2_DEPRECATE_16_0) 60 #define NTV2_IS_VALID_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ColorBars100 && (__S__) < NTV2_TestPatt_All) 61 #define NTV2_IS_12B_PATTERN(__S__) ((__S__) >= NTV2_TestPatt_ZonePlate_12b_RGB && (__S__) < NTV2_TestPatt_All) 122 static ULWord findRGBColorByName (
const std::string & inName);
151 virtual bool DrawTestPattern (
const std::string & inTPName,
170 #if !defined(NTV2_DEPRECATE_16_0) 179 #endif // !defined(NTV2_DEPRECATE_16_0) 185 inline bool getUseRGBSmpteRange (
void)
const {
return mSetRGBSmpteRange;}
196 inline NTV2TestPatternGen & setUseRGBSmpteRange (
const bool useRGBSmpteRange) {mSetRGBSmpteRange = useRGBSmpteRange;
return *
this;}
211 virtual bool DrawSegmentedTestPattern ();
212 virtual bool DrawYCbCrFrame (uint16_t Y, uint16_t Cb, uint16_t Cr);
213 virtual bool DrawBorderFrame ();
214 virtual bool DrawLinearRampFrame ();
215 virtual bool DrawSlantRampFrame ();
216 virtual bool DrawZonePlateFrame ();
217 virtual bool DrawNoiseUniformFrame();
218 virtual bool DrawNoiseGaussianFrame();
219 virtual bool DrawQuadrantBorderFrame ();
220 virtual bool DrawColorQuadrantFrame ();
221 virtual bool DrawColorQuadrantFrameTsi ();
222 virtual bool DrawColorQuadrantFrameTsi2 ();
225 virtual bool DrawTestPatternNarrowHLG();
226 virtual bool DrawTestPatternNarrowPQ();
227 virtual bool DrawTestPatternWidePQ();
228 virtual bool Draw12BitRamp();
229 virtual bool Draw12BitZonePlate();
230 virtual void PrepareForOutput();
232 bool IsSDStandard(
void)
const;
233 bool GetStandard (
int & outStandard,
bool & outIs4K,
bool & outIs8K)
const;
234 virtual bool drawIt (
void);
268 #endif // NTV2_TESTPATTERN_GEN_
bool setVANCToLegalBlack(void) const
uint8_t * mpDstBuffer
Dest buffer (start of active video)
uint32_t mDstFrameHeight
Dest height (lines)
The NTV2 test pattern generator.
std::set< NTV2TestPatternSelect > NTV2TestPatternSet
NTV2FrameBufferFormat
Identifies a particular video frame buffer pixel format. See Device Frame Buffer Formats for details...
const double & getSliderValue(void) const
std::vector< uint16_t > mRGBBuffer
uint32_t mDstLinePitch
Dest bytes per row.
uint32_t mSrcLinePitch
Src bytes per row.
Enumerations for controlling NTV2 devices.
uint32_t mSamplesPerPixel
Defines the import/export macros for producing DLLs or LIBs.
std::vector< uint16_t > mUnPackedRAWBuffer
std::vector< uint8_t > NTV2TestPatternBuffer
uint32_t mDstFrameWidth
Dest width (pixels)
std::vector< std::string > NTV2StringList
NTV2TestPatternGen & setSignalMask(const NTV2SignalMask signalMask)
uint16_t mCompressionType
uint32_t mBitsPerComponent
NTV2PixelFormat mDstPixelFormat
Dest pixel format.
std::vector< uint8_t > NTV2TestPatBuffer
Describes a user-space buffer on the host computer. I have an address and a length, plus some optional attributes (allocated by SDK?, page-aligned? etc.).
uint32_t * mpPackedLineBuffer
uint32_t mDstBufferSize
Dest visible buffer size (bytes)
NTV2TestPatternGen & setSliderValue(const double &sliderValue)
Declares numerous NTV2 utility functions.
NTV2SignalMask mSignalMask
Component mask for MultiBurst, LineSweep.
NTV2TestPatternGen & setAlphaFromLuma(const bool alphaFromLuma)
bool getAlphaFromLuma(void) const
NTV2TestPatternGen & setVANCToLegalBlack(const bool inClearVANC)
Changes my "clear VANC lines to legal black" setting.
double mSliderValue
Used for Zone Plate.
NTV2SignalMask getSignalMask(void) const
bool mSetDstVancBlack
Set destination VANC lines to legal black?
NTV2StringList NTV2TestPatternNames
An ordered sequence of pattern names.
#define NTV2_DEPRECATED_16_0(__f__)
virtual ~NTV2TestPatternGen()
NTV2TestPatternSelect NTV2TestPatternID
std::vector< char > mData
NTV2TestPatternSet::const_iterator NTV2TestPatternSetConstIter
uint16_t * mpUnpackedLineBuffer
NTV2TestPatternID mPatternID
Pattern number.
NTV2TestPatternSelect
Identifies a predefined NTV2 test pattern.