|
AJA NTV2 SDK
17.0.1.1246
NTV2 SDK 17.0.1.1246
|
Go to the documentation of this file.
33 <<
"\t" <<
"Device ID: " <<
xHEX0N(deviceID,8) << endl
34 <<
"\t" <<
"Serial Number: '" << (inCard.
GetSerialNumberString(serial) ? serial : serial) <<
"'" << endl
49 cout <<
"\t" << videoFormats << endl
50 <<
"\t" << pixelFormats << endl;
57 int main (
int argc,
const char ** argv)
58 { (void)argc; (void)argv;
67 {
"device",
'd',
POPT_ARG_STRING, &pDeviceSpec, 0,
"device to use",
"index#, serial#, or model" },
73 {cerr <<
"## ERROR: " << popt.
errorStr() << endl;
return 2;}
75 {cerr <<
"## ERROR: Unexpected argument(s): " << popt.
otherArgs() << endl;
return 2;}
77 {cout << argv[0] <<
", NTV2 SDK " <<
::NTV2Version() << endl;
return 0;}
81 const string deviceSpec (pDeviceSpec ? pDeviceSpec :
"");
82 if (!deviceSpec.empty())
89 {cerr <<
"## ERROR: Failed to open '" << deviceSpec <<
"'";
return 2;}
101 cout << deviceCount <<
" AJA device(s) found" << endl;
102 uint32_t deviceIndex(0);
106 cout << endl << endl << endl;
112 cout <<
"No AJA devices found" << endl;
114 return deviceCount ? 0 : 1;
UWord NTV2DeviceGetNumEmbeddedAudioOutputChannels(const NTV2DeviceID inDeviceID)
virtual const NTV2StringList & otherArgs(void) const
UWord NTV2DeviceGetNumHDMIVideoInputs(const NTV2DeviceID inDeviceID)
NTV2FrameBufferFormatSet NTV2PixelFormats
This class is used to enumerate AJA devices that are attached and known to the local host computer.
NTV2DeviceIDSet NTV2GetSupportedDevices(const NTV2DeviceKinds inKinds=NTV2_DEVICEKIND_ALL)
Returns an NTV2DeviceIDSet of devices supported by the SDK.
std::set< NTV2VideoFormat > NTV2VideoFormatSet
A set of distinct NTV2VideoFormat values.
static bool GetFirstDeviceFromArgument(const std::string &inArgument, CNTV2Card &outDevice)
Rescans the host, and returns an open CNTV2Card instance for the AJA device that matches a command li...
UWord NTV2DeviceGetNumAnalogVideoInputs(const NTV2DeviceID inDeviceID)
NTV2DeviceID
Identifies a specific AJA NTV2 device model number. The NTV2DeviceID is actually the PROM part number...
static int ShowDeviceInfo(CNTV2Card &inCard)
Prints a variety of information about the given device.
int main(int argc, const char **argv)
virtual std::string GetDisplayName(void)
Answers with this device's display name.
static bool IsValidDevice(const std::string &inDeviceSpec)
Declares the CNTV2DeviceScanner class.
virtual bool GetSerialNumberString(std::string &outSerialNumberString)
Answers with a string that contains my human-readable serial number.
UWord NTV2DeviceGetNumVideoInputs(const NTV2DeviceID inDeviceID)
UWord NTV2DeviceGetNumHDMIVideoOutputs(const NTV2DeviceID inDeviceID)
virtual const std::string & errorStr(void) const
std::string NTV2Version(const bool inDetailed=false)
I interrogate and control an AJA video/audio capture/playout device.
UWord NTV2DeviceGetNumAnalogVideoOutputs(const NTV2DeviceID inDeviceID)
UWord NTV2DeviceGetNumEmbeddedAudioInputChannels(const NTV2DeviceID inDeviceID)
static AJAStatus Open(bool incrementRefCount=false)
This file contains some structures, constants, classes and functions that are used in some of the dem...
static bool GetDeviceAtIndex(const ULWord inDeviceIndexNumber, CNTV2Card &outDevice)
Rescans the host, and returns an open CNTV2Card instance for the AJA device having the given zero-bas...
bool NTV2DeviceGetSupportedPixelFormats(const NTV2DeviceID inDeviceID, NTV2PixelFormats &outFormats)
Returns a set of distinct NTV2FrameBufferFormat values supported on the given device.
virtual size_t GetNumDevices(void) const
Returns the number of AJA devices found on the local host.
virtual NTV2DeviceID GetDeviceID(void)
UWord NTV2DeviceGetNumVideoOutputs(const NTV2DeviceID inDeviceID)
virtual bool GetSupportedVideoFormats(NTV2VideoFormatSet &outFormats)
Returns a std::set of NTV2VideoFormat values that I support.
#define xHEX0N(__x__, __n__)