AJA NTV2 SDK
17.5.0.1492
NTV2 SDK 17.5.0.1492
|
This library contains the principal classes and data types that interface with the NTV2 device driver, plus a number of utility classes that deal with NTV2-specific data formats.
Most NTV2 functions and class methods return a bool value of true for “success” and false for “failure”. NTV2 functions and classes do not intentionally or explicitly throw exceptions. Under unusual and extreme conditions (e.g. memory exhaustion), it's possible for an exception to be thrown (e.g. std::bad_alloc).
The CNTV2DeviceScanner class is used to enumerate or find available devices.
The CNTV2Card class is used to interrogate and control an NTV2 device. Normally an instance of this class is obtained from one of the CNTV2DeviceScanner class methods.
CNTV2Card has a very large number of instance methods that inquire about and/or control different aspects of the hardware, which can be organized into several API groups. Here are some examples (this list is not comprehensive):
The “NTV2Device…” functions describe AJA NTV2 device capabilities. All of the functions accept an NTV2DeviceID parameter that identifies the AJA device model (and in many cases firmware personality) of interest.
See also Determining Firmware Features for more information.
These functions have names starting with “NTV2DeviceCanDo…” and return a bool
value that answers Yes or No for a particular device capability. Most of them accept a single NTV2DeviceID parameter, like NTV2DeviceCanDoAnalogAudio, which answers true if the device is capable of working with analog audio. A smaller set of functions accept two parameters: the NTV2DeviceID parameter, and a second enumeration parameter, for determining if a device is capable of working with a particular video format (e.g., NTV2DeviceCanDoVideoFormat) or frame buffer format (NTV2DeviceCanDoFrameBufferFormat), etc.
For example, to find out which Thunderbolt-connected devices support NTV2_FBF_10BIT_RGB, you can code the following:
These functions are similar to the “Can Do” functions. They also return a bool
value that answers Yes or No for a particular device capability. For example, you may want to know if a device has bi-directional SDI connectors:
These functions return a count of a particular device feature. For example, to find out which devices have at least one HDMI output:
The CNTV2SignalRouter class is used to help perform Widget Signal Routing.
See Widget Signal Routing for more details.