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)
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;}
99 cout << endl << endl << endl;
104 cout <<
"No AJA devices found" << endl;
106 return deviceCount ? 0 : 1;
std::set< NTV2VideoFormat > NTV2VideoFormatSet
A set of distinct NTV2VideoFormat values.
int main(int argc, const char **argv)
UWord GetNumEmbeddedAudioOutputChannels(void)
NTV2DeviceIDSet NTV2GetSupportedDevices(const NTV2DeviceKinds inKinds=NTV2_DEVICEKIND_ALL)
Returns an NTV2DeviceIDSet of devices supported by the SDK.
I interrogate and control an AJA video/audio capture/playout device.
virtual UWord GetIndexNumber(void) const
static AJAStatus Open(bool incrementRefCount=false)
UWord GetNumHDMIVideoOutputs(void)
NTV2FrameBufferFormatSet NTV2PixelFormats
virtual class DeviceCapabilities & features(void)
UWord GetNumAnalogVideoInputs(void)
std::string NTV2Version(const bool inDetailed=false)
virtual std::string GetDescription(void) const
NTV2DeviceID
Identifies a specific AJA NTV2 device model number. The NTV2DeviceID is actually the PROM part number...
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...
virtual bool GetSerialNumberString(std::string &outSerialNumberString)
Answers with a string that contains my human-readable serial number.
virtual std::string GetDisplayName(void)
Answers with this device's display name.
virtual const NTV2StringList & otherArgs(void) const
virtual const std::string & errorStr(void) const
virtual NTV2DeviceID GetDeviceID(void)
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...
Declares the CNTV2DeviceScanner class.
static int ShowDeviceInfo(CNTV2Card &inCard)
Prints a variety of information about the given device.
UWord GetNumEmbeddedAudioInputChannels(void)
NTV2VideoFormatSet VideoFormats(void)
#define xHEX0N(__x__, __n__)
UWord GetNumAnalogVideoOutputs(void)
static bool IsValidDevice(const std::string &inDeviceSpec)
This file contains some structures, constants, classes and functions that are used in some of the dem...
UWord GetNumHDMIVideoInputs(void)
UWord GetNumVideoOutputs(void)
NTV2PixelFormats PixelFormats(void)
UWord GetNumVideoInputs(void)