AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
ntv2outputtestpattern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 #ifndef _NTV2OUTPUT_TEST_PATTERN_H
10 #define _NTV2OUTPUT_TEST_PATTERN_H
11 
12 #include "ntv2democommon.h"
13 
14 
18 typedef struct TestPatConfig : public PlayerConfig
19 {
20  public:
21  std::string fTestPatternName;
22 
26  inline explicit TestPatConfig (const std::string & inDeviceSpecifier = "0")
27  : PlayerConfig (inDeviceSpecifier),
28  fTestPatternName ("100% ColorBars")
29  {
30  }
31 
32  AJALabelValuePairs Get (const bool inCompact = false) const;
33 
35 
36 std::ostream & operator << (std::ostream & ioStrm, const TestPatConfig & inObj);
37 
38 
44 {
45  // Public Instance Methods
46  public:
47 
53  NTV2OutputTestPattern (const TestPatConfig & inConfig);
54 
56 
61  AJAStatus Init (void);
62 
68  AJAStatus EmitPattern (void);
69 
70 
71  // Protected Instance Methods
72  protected:
77  AJAStatus SetUpVideo (void);
78 
82  void RouteOutputSignal (void);
83 
84 
85  // Private Member Data
86  private:
87  TestPatConfig mConfig;
88  CNTV2Card mDevice;
89  NTV2DeviceID mDeviceID;
90  NTV2TaskMode mSavedTaskMode;
91  NTV2XptConnections mSavedConnections;
92 
93 }; // NTV2OutputTestPattern
94 
95 #endif // _NTV2OUTPUT_TEST_PATTERN_H
AJAStatus Init(void)
Initializes me and prepares me to Run.
AJALabelValuePairs Get(const bool inCompact=(0)) const
I interrogate and control an AJA video/audio capture/playout device.
Definition: ntv2card.h:28
NTV2TaskMode
Describes the task mode state. See also: Sharing AJA Devices With Other Applications.
AJAStatus
Definition: types.h:380
Configures an NTV2OutputTestPattern instance.
std::string fTestPatternName
Name of the test pattern to use.
std::vector< AJALabelValuePair > AJALabelValuePairs
An ordered sequence of label/value pairs.
Definition: info.h:71
NTV2DeviceID
Identifies a specific AJA NTV2 device model number. The NTV2DeviceID is actually the PROM part number...
Definition: ntv2enums.h:20
NTV2OutputTestPattern(const TestPatConfig &inConfig)
Constructs me using the given configuration settings.
std::ostream & operator<<(std::ostream &ioStrm, const TestPatConfig &inObj)
AJAStatus EmitPattern(void)
Generates, transfers and displays the test pattern on the output.
AJAStatus SetUpVideo(void)
Sets up my AJA device to play video.
TestPatConfig TestPatConfig
Configures an NTV2OutputTestPattern instance.
I generate and transfer a test pattern into an AJA device&#39;s frame buffer for steady-state playout usi...
This file contains some structures, constants, classes and functions that are used in some of the dem...
Configures an NTV2Player instance.
void RouteOutputSignal(void)
Sets up board routing for playout.
std::map< NTV2InputXptID, NTV2OutputXptID > NTV2XptConnections
TestPatConfig(const std::string &inDeviceSpecifier="0")
Constructs a default CCPlayer configuration.