|
AJA NTV2 SDK
17.1.3.1410
NTV2 SDK 17.1.3.1410
|
Go to the documentation of this file.
28 int main (
int argc,
const char ** argv)
33 int channelNumber (1);
34 int doMultiFormat (0);
36 int numAudioLinks (1);
46 {
"device",
'd',
POPT_ARG_STRING, &pDeviceSpec, 0,
"device to use",
"index#, serial#, or model" },
47 {
"channel",
'c',
POPT_ARG_INT, &channelNumber, 0,
"channel to use",
"1-8" },
49 {
"pixelFormat",
'p',
POPT_ARG_STRING, &pPixelFormat, 0,
"pixel format to use",
"'?' or 'list' to list" },
50 {
"videoFormat",
'v',
POPT_ARG_STRING, &pVideoFormat, 0,
"video format to produce",
"'?' or 'list' to list" },
51 {
"audioLinks",
'a',
POPT_ARG_INT, &numAudioLinks, 0,
"# audio systems to link",
"1-4 0=silence" },
60 {cerr <<
"## ERROR: " << popt.
errorStr() << endl;
return 2;}
62 {cout << argv[0] <<
", NTV2 SDK " <<
::NTV2Version() << endl;
return 0;}
65 const string deviceSpec (pDeviceSpec ? pDeviceSpec :
"0");
72 if ((channelNumber < 1) || (channelNumber > 8))
73 {cerr <<
"## ERROR: Invalid channel number " << channelNumber <<
" -- expected 1 thru 8" << endl;
return 1;}
77 const string videoFormatStr (pVideoFormat ? pVideoFormat :
"");
80 if (videoFormatStr ==
"?" || videoFormatStr ==
"list")
83 { cerr <<
"## ERROR: Invalid '--videoFormat' value '" << videoFormatStr <<
"' -- expected values:" << endl
89 const string pixelFormatStr (pPixelFormat ? pPixelFormat :
"");
91 if (pixelFormatStr ==
"?" || pixelFormatStr ==
"list")
95 cerr <<
"## ERROR: Invalid '--pixelFormat' value '" << pixelFormatStr <<
"' -- expected values:" << endl
111 {cout <<
"## ERROR: Initialization failed: " <<
::AJAStatusToString(status) << endl;
return 1;}
122 cout <<
" Frames Frames Buffer" << endl
123 <<
" Played Dropped Level" << endl;
static std::string GetVideoFormatStrings(const NTV2VideoFormatKinds inKinds=VIDEO_FORMATS_NON_4KUHD, const std::string inDeviceSpecifier=std::string())
bool fDoHDMIOutput
If true, enable HDMI output; otherwise, disable HDMI output.
NTV2Channel
These enum values are mostly used to identify a specific widget_framestore. They're also commonly use...
Header file for NTV2Player8K demonstration class.
static bool gGlobalQuit((0))
void SignalHandler(int inSignal)
ULWord GetProcessedFrameCount(void) const
ULWord GetBufferLevel(void) const
int main(int argc, const char **argv)
bool fDoMultiFormat
If true, enable device-sharing; otherwise take exclusive control of device.
#define NTV2_IS_8K_VIDEO_FORMAT(__f__)
@ NTV2_FORMAT_4x3840x2160p_2398
static NTV2VideoFormat GetVideoFormatFromString(const std::string &inStr, const NTV2VideoFormatKinds inKinds=VIDEO_FORMATS_NON_4KUHD)
Returns the NTV2VideoFormat that matches the given string.
bool fDoTsiRouting
If true, enable TSI routing; otherwise route for square division (4K/8K)
I am an object that can play out an 8K or UHD2 test pattern (with timecode) to 4 x 12G SDI outputs of...
static bool IsValidDevice(const std::string &inDeviceSpec)
static void Sleep(const int32_t inMilliseconds)
Suspends execution of the current thread for a given number of milliseconds.
This is returned from the CNTV2Card::AutoCirculateGetStatus function.
static NTV2FrameBufferFormat GetPixelFormatFromString(const std::string &inStr)
Returns the NTV2FrameBufferFormat that matches the given string.
UWord fNumAudioLinks
The number of audio systems to control for multi-link audio (4K/8K)
NTV2VideoFormat fVideoFormat
The video format to use.
@ NTV2_FBF_8BIT_YCBCR
See 8-Bit YCbCr Format.
NTV2Channel fOutputChannel
The device channel to use.
virtual const std::string & errorStr(void) const
std::string NTV2Version(const bool inDetailed=false)
static AJAStatus Open(bool incrementRefCount=false)
virtual AJAStatus Run(void)
Runs me.
bool fDoRGBOnWire
If true, produce RGB on the wire; otherwise output YUV.
std::string AJAStatusToString(const AJAStatus inStatus, const bool inDetailed)
ULWord GetDroppedFrameCount(void) const
virtual AJAStatus Init(void)
Initializes me and prepares me to Run.
static std::string GetPixelFormatStrings(const NTV2PixelFormatKinds inKinds=PIXEL_FORMATS_ALL, const std::string inDeviceSpecifier=std::string())
virtual void GetACStatus(AUTOCIRCULATE_STATUS &outStatus)
Provides status information about my output (playout) process.
Configures an NTV2Player instance.
NTV2PixelFormat fPixelFormat
The pixel format to use.
#define NTV2_IS_VALID_FRAME_BUFFER_FORMAT(__s__)
#define AJA_FAILURE(_status_)