AJA NTV2 SDK  17.5.0.1658
NTV2 SDK 17.5.0.1658
ntv2supportlogger.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
7 #include "ntv2supportlogger.h"
8 #include "ntv2devicescanner.h"
9 #include "ntv2devicefeatures.h"
10 #include "ntv2konaflashprogram.h"
11 #include "ntv2registerexpert.h"
12 #include "ntv2registersmb.h"
13 #include "ntv2rp188.h"
14 #include "ajabase/common/common.h"
15 #include "ajabase/persistence/persistence.h"
16 #include "ajabase/system/info.h"
17 #include <algorithm>
18 #include <sstream>
19 #include <vector>
20 #include <iterator>
21 
22 #if defined(MSWindows)
23  #define PATH_DELIMITER "\\"
24 #else
25  #define PATH_DELIMITER "/"
26 #endif
27 
28 using namespace std;
29 
30 
31 typedef map <NTV2Channel, AUTOCIRCULATE_STATUS> ChannelToACStatus;
32 typedef ChannelToACStatus::const_iterator ChannelToACStatusConstIter;
33 typedef pair <NTV2Channel, AUTOCIRCULATE_STATUS> ChannelToACStatusPair;
34 typedef map <uint16_t, NTV2TimeCodeList> FrameToTCList;
35 typedef FrameToTCList::const_iterator FrameToTCListConstIter;
36 typedef pair <uint16_t, NTV2TimeCodeList> FrameToTCListPair;
37 typedef map <NTV2Channel, FrameToTCList> ChannelToPerFrameTCList;
38 typedef ChannelToPerFrameTCList::const_iterator ChannelToPerFrameTCListConstIter;
39 typedef pair <NTV2Channel, FrameToTCList> ChannelToPerFrameTCListPair;
40 
41 
42 static string makeHeader(ostringstream & oss, const string & inName)
43 {
44  oss << setfill('=') << setw(96) << " " << inName << ":" << setfill(' ') << endl << endl;
45  return oss.str();
46 }
47 
48 static string timecodeToString (const NTV2_RP188 & inRP188)
49 {
50  ostringstream oss;
51  if (inRP188.IsValid())
52  {
53  const CRP188 foo(inRP188);
54  oss << foo;
55  }
56  else
57  oss << "---";
58  return oss.str();
59 }
60 
61 static string appSignatureToString (const ULWord inAppSignature)
62 {
63  ostringstream oss;
64  const string sigStr(NTV2_4CC_AS_STRING(inAppSignature));
65  if (isprint(sigStr.at(0)) && isprint(sigStr.at(1)) && isprint(sigStr.at(2)) && isprint(sigStr.at(3)))
66  oss << "'" << sigStr << "'";
67  else if (inAppSignature)
68  oss << "0x" << hex << setw (8) << setfill ('0') << inAppSignature << dec << " (" << inAppSignature << ")";
69  else
70  oss << "'----' (0)";
71  return oss.str();
72 }
73 
74 static string pidToString (const uint32_t inPID)
75 {
76  ostringstream oss;
77  #if defined (MSWindows)
78  oss << inPID;
79  //TCHAR filename [MAX_PATH];
80  //HANDLE processHandle (OpenProcess (PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, inPID));
81  //if (processHandle)
82  //{
83  // if (GetModuleFileNameEx (processHandle, NULL, filename, MAX_PATH))
84  // oss << " (" << filename << ")";
85  // CloseHandle (processHandle);
86  //}
87  #elif defined (AJALinux)
88  oss << inPID;
89  #elif defined (AJAMac)
90  oss << inPID;
91  // char pathbuf [PROC_PIDPATHINFO_MAXSIZE];
92  // const int rc (::proc_pidpath (pid_t (inPID), pathbuf, sizeof (pathbuf)));
93  // if (rc == 0 && ::strlen (pathbuf))
94  // oss << " (" << string (pathbuf) << ")";
95  #else
96  oss << inPID;
97  #endif
98  return oss.str();
99 }
100 
101 // NTV2_AUDIO_BUFFER_SIZE_8MB 8MB buffer: 16-ch: 130,560 samples 8-ch: 261,120 samples 6-ch: 348,160 samples
102 // NTV2_AUDIO_BUFFER_SIZE_4MB 4MB buffer: 0x00400000(4,194,304 bytes) - 0x00004000(16,384 bytes) = 0x003FC000(4,177,920 bytes) 16-ch: 65,280 samples 8-ch: 130,560 samples 6-ch: 174,080 samples
103 // NTV2_AUDIO_BUFFER_SIZE_2MB 2MB buffer: 16-ch: 32,640 samples 8-ch: 65,280 samples 6-ch: 87,040 samples
104 // NTV2_AUDIO_BUFFER_SIZE_1MB 1MB buffer: 16-ch: 16,320 samples 8-ch: 32,640 samples 6-ch: 43,520 samples
105 // Returns the maximum number of samples for a given NTV2AudioBufferSize and maximum audio channel count...
106 static uint32_t maxSampleCountForNTV2AudioBufferSize (const NTV2AudioBufferSize inBufferSize, const uint16_t inChannelCount)
107 { // NTV2_AUDIO_BUFFER_SIZE_1MB NTV2_AUDIO_BUFFER_SIZE_4MB NTV2_AUDIO_BUFFER_SIZE_2MB NTV2_AUDIO_BUFFER_SIZE_8MB NTV2_AUDIO_BUFFER_INVALID
108  static uint32_t gMaxSampleCount16 [] = { 16320, 65280, 32640, 130560, 0 };
109  static uint32_t gMaxSampleCount8 [] = { 32640, 130560, 65280, 261120, 0 };
110  static uint32_t gMaxSampleCount6 [] = { 87040, 174080, 87040, 348160, 0 };
111  if (NTV2_IS_VALID_AUDIO_BUFFER_SIZE (inBufferSize))
112  switch (inChannelCount)
113  {
114  case 16: return gMaxSampleCount16 [inBufferSize];
115  case 8: return gMaxSampleCount8 [inBufferSize];
116  case 6: return gMaxSampleCount6 [inBufferSize];
117  default: break;
118  }
119  return 0;
120 }
121 
122 static NTV2VideoFormat getVideoFormat (CNTV2Card & device, const NTV2Channel inChannel)
123 {
125  device.GetVideoFormat(result, inChannel);
126  return result;
127 }
128 
129 static NTV2PixelFormat getPixelFormat (CNTV2Card & device, const NTV2Channel inChannel)
130 {
132  device.GetFrameBufferFormat(inChannel, result);
133  return result;
134 }
135 
136 static NTV2Mode getMode (CNTV2Card & device, const NTV2Channel inChannel)
137 {
138  NTV2Mode result(NTV2_MODE_INVALID);
139  device.GetMode(inChannel, result);
140  return result;
141 }
142 
143 static bool isEnabled (CNTV2Card & device, const NTV2Channel inChannel)
144 {
145  bool result(false);
146  device.IsChannelEnabled(inChannel, result);
147  return result;
148 }
149 
150 static ULWord getActiveFrame (CNTV2Card & device, const NTV2Channel inChannel)
151 {
152  ULWord frameNum(0);
153  if (NTV2_IS_INPUT_MODE(::getMode(device, inChannel)))
154  device.GetInputFrame(inChannel, frameNum);
155  else
156  device.GetOutputFrame(inChannel, frameNum);
157  return frameNum;
158 }
159 
160 static string getActiveFrameStr (CNTV2Card & device, const NTV2Channel inChannel)
161 {
162  if (!isEnabled(device, inChannel))
163  return "---";
164  ostringstream oss;
165  oss << DEC(::getActiveFrame(device, inChannel));
166  return oss.str();
167 }
168 
170 {
171  ULWord result(0);
172  if (NTV2_IS_OUTPUT_MODE (mode))
173  device.ReadAudioLastOut (result, audioSystem); // read head
174  else
175  device.ReadAudioLastIn (result, audioSystem); // write head
176  return result;
177 }
178 
179 static ULWord getNumAudioChannels (CNTV2Card & device, NTV2AudioSystem audioSystem)
180 {
181  ULWord numChannels = 1;
182  device.GetNumberAudioChannels(numChannels, audioSystem);
183  return numChannels;
184 }
185 
186 static ULWord bytesToSamples (CNTV2Card & device, NTV2AudioSystem audioSystem, const ULWord inBytes)
187 {
188  return inBytes / sizeof (uint32_t) / getNumAudioChannels(device, audioSystem);
189 }
190 
192 {
193  ULWord bytes = readCurrentAudioPosition(device, audioSystem, mode);
194  return bytesToSamples(device, audioSystem, bytes);
195 }
196 
197 static ULWord getMaxNumSamples (CNTV2Card & device, NTV2AudioSystem audioSystem)
198 {
199  NTV2AudioBufferSize bufferSize;
200  device.GetAudioBufferSize(bufferSize, audioSystem);
201 
202  return maxSampleCountForNTV2AudioBufferSize (bufferSize, uint16_t(getNumAudioChannels(device, audioSystem)));
203 }
204 
206 {
207  for (UWord chan (0); chan < ::NTV2DeviceGetNumVideoChannels (device.GetDeviceID()); chan++)
208  if (device.AutoCirculateGetStatus (NTV2Channel(chan), outStatus))
209  if (!outStatus.IsStopped())
210  if (outStatus.GetAudioSystem() == audioSystem)
211  {
213  device.GetMode(NTV2Channel(chan), mode);
214  if ((outStatus.IsInput() && NTV2_IS_INPUT_MODE (mode))
215  || (outStatus.IsOutput() && NTV2_IS_OUTPUT_MODE (mode)))
216  return NTV2Channel(chan);
217  }
218  return NTV2_CHANNEL_INVALID;
219 }
220 
221 static bool detectInputChannelPairs (CNTV2Card & device, const NTV2AudioSource inAudioSource,
222  const NTV2EmbeddedAudioInput inEmbeddedSource,
223  NTV2AudioChannelPairs & outChannelPairsPresent)
224 {
225  outChannelPairsPresent.clear();
226  switch (inAudioSource)
227  {
228  default: return false;
229 
230  case NTV2_AUDIO_EMBEDDED: return NTV2_IS_VALID_EMBEDDED_AUDIO_INPUT (inEmbeddedSource)
231  // Input detection is based on the audio de-embedder (as opposed to the SDI spigot)...
232  ? device.GetDetectedAudioChannelPairs (NTV2AudioSystem(inEmbeddedSource), outChannelPairsPresent)
233  : false;
234 
235  case NTV2_AUDIO_AES: return device.GetDetectedAESChannelPairs (outChannelPairsPresent);
236 
239  {outChannelPairsPresent.insert(NTV2_AudioChannel1_2); return true;} // Assume chls 1&2 if an analog signal present
240  break;
241 
243  {
245  if (!device.GetHDMIInputAudioChannels (hdmiChls))
246  return false;
249  chPair = NTV2AudioChannelPair(chPair + 1))
250  outChannelPairsPresent.insert (chPair);
251  return true;
252  }
253  break;
254  }
255  return false;
256 }
257 
258 static bool getBitfileDate (CNTV2Card & device, string & outDateString, NTV2XilinxFPGA whichFPGA)
259 {
260  BITFILE_INFO_STRUCT bitFileInfo;
261  memset(&bitFileInfo, 0, sizeof(BITFILE_INFO_STRUCT));
262  bitFileInfo.whichFPGA = whichFPGA;
263  bool bBitFileInfoAvailable = false; // BitFileInfo is implemented only on 5.2 and later drivers.
264  bBitFileInfoAvailable = device.DriverGetBitFileInformation(bitFileInfo);
265  if( bBitFileInfoAvailable )
266  {
267  outDateString = bitFileInfo.designNameStr;
268  if (outDateString.find(".ncd") != string::npos)
269  {
270  outDateString = outDateString.substr(0, outDateString.find(".ncd"));
271  outDateString += ".bit ";
272  outDateString += bitFileInfo.dateStr;
273  outDateString += " ";
274  outDateString += bitFileInfo.timeStr;
275  }
276  else if (outDateString.find(";") != string::npos)
277  {
278  outDateString = outDateString.substr(0, outDateString.find(";"));
279  outDateString += ".bit ";
280  outDateString += bitFileInfo.dateStr;
281  outDateString += " ";
282  outDateString += bitFileInfo.timeStr;
283  }
284  else if (outDateString.find(".bit") != string::npos && outDateString != ".bit")
285  {
286  outDateString = bitFileInfo.designNameStr;
287  outDateString += " ";
288  outDateString += bitFileInfo.dateStr;
289  outDateString += " ";
290  outDateString += bitFileInfo.timeStr;
291  }
292  else
293  {
294  outDateString = "bad bitfile date string";
295  return false;
296  }
297  }
298  else
299  return false;
300  return true;
301 }
302 
303 AJAExport ostream & operator << (ostream & outStream, const CNTV2SupportLogger & inData)
304 {
305  outStream << inData.ToString();
306  return outStream;
307 }
308 
310  : mDevice (card),
311  mDispose (false),
312  mSections (sections)
313 {
314 }
315 
317  : mDevice (*(new CNTV2Card(cardIndex))),
318  mDispose (true),
319  mSections (sections)
320 {
321 }
322 
324 {
325  if (mDispose)
326  delete &mDevice;
327 }
328 
330 {
331  // Bump this whenever the formatting of the support log changes drastically
332  return 2;
333 }
334 
335 void CNTV2SupportLogger::PrependToSection (uint32_t section, const string & sectionData)
336 {
337  if (mPrependMap.find(section) != mPrependMap.end())
338  {
339  mPrependMap.at(section).insert(0, "\n");
340  mPrependMap.at(section).insert(0, sectionData);
341  }
342  else
343  {
344  mPrependMap[section] = sectionData;
345  mPrependMap.at(section).append("\n");
346  }
347 }
348 
349 void CNTV2SupportLogger::AppendToSection (uint32_t section, const string & sectionData)
350 {
351  if (mAppendMap.find(section) != mAppendMap.end())
352  {
353  mAppendMap.at(section).append("\n");
354  mAppendMap.at(section).append(sectionData);
355  }
356  else
357  {
358  mAppendMap[section] = "\n";
359  mAppendMap.at(section).append(sectionData);
360  }
361 }
362 
363 void CNTV2SupportLogger::AddHeader (const string & sectionName, const string & sectionData)
364 {
365  ostringstream oss;
366  makeHeader(oss, sectionName);
367  oss << sectionData << "\n";
368  mHeaderStr.append(oss.str());
369 }
370 
371 void CNTV2SupportLogger::AddFooter (const string & sectionName, const string & sectionData)
372 {
373  ostringstream oss;
374  makeHeader(oss, sectionName);
375  oss << sectionData << "\n";
376  mFooterStr.append(oss.str());
377 }
378 
379 // Use this macro to handle generating text for each section
380 // - the header
381 // - the prepend if any
382 // - the method that fills the section
383 // - the append if any
384 #define LoggerSectionToFunctionMacro(_SectionEnum_, _SectionString_, _SectionMethod_) \
385  if (mSections & _SectionEnum_) \
386  { \
387  makeHeader(oss, _SectionString_); \
388  if (mPrependMap.find(_SectionEnum_) != mPrependMap.end()) \
389  oss << mPrependMap.at(_SectionEnum_); \
390  \
391  _SectionMethod_(oss); \
392  \
393  if (mAppendMap.find(_SectionEnum_) != mAppendMap.end()) \
394  oss << mAppendMap.at(_SectionEnum_); \
395  }
396 
397 string CNTV2SupportLogger::ToString (void) const
398 {
399  ostringstream oss;
400  vector<char> dateBufferLocal(128, 0);
401  vector<char> dateBufferUTC(128, 0);
402 
403  // get the wall time and format it
404  time_t now = time(AJA_NULL);
405  struct tm *localTimeinfo;
406  localTimeinfo = localtime(reinterpret_cast<const time_t*>(&now));
407  strcpy(&dateBufferLocal[0], "");
408  if (localTimeinfo)
409  ::strftime(&dateBufferLocal[0], dateBufferLocal.size(), "%B %d, %Y %I:%M:%S %p %Z (local)", localTimeinfo);
410 
411  struct tm *utcTimeinfo;
412  utcTimeinfo = gmtime(reinterpret_cast<const time_t*>(&now));
413  strcpy(&dateBufferUTC[0], "");
414  if (utcTimeinfo)
415  ::strftime(&dateBufferUTC[0], dateBufferUTC.size(), "%Y-%m-%dT%H:%M:%SZ UTC", utcTimeinfo);
416 
417  oss << "Begin NTV2 Support Log" << "\n" <<
418  "Version: " << CNTV2SupportLogger::Version() << "\n"
419  "Generated: " << &dateBufferLocal[0] <<
420  " " << &dateBufferUTC[0] << "\n\n" << flush;
421 
422  if (!mHeaderStr.empty())
423  oss << mHeaderStr;
424 
425  // Go ahead and show info even if the device is not open
427 
428  if (mDevice.IsOpen())
429  {
430  LoggerSectionToFunctionMacro(NTV2_SupportLoggerSectionAutoCirculate, "AutoCirculate", FetchAutoCirculateLog)
434  }
435 
436  if (!mFooterStr.empty())
437  oss << mFooterStr;
438  oss << endl << "End NTV2 Support Log";
439  return oss.str();
440 }
441 
442 void CNTV2SupportLogger::ToString (string & outString) const
443 {
444  outString = ToString();
445 }
446 
447 static inline string HEX0NStr (const uint32_t inNum, const uint16_t inWidth) {ostringstream oss; oss << HEX0N(inNum,inWidth); return oss.str();}
448 static inline string xHEX0NStr(const uint32_t inNum, const uint16_t inWidth) {ostringstream oss; oss << xHEX0N(inNum,inWidth); return oss.str();}
449 template <typename T> string DECStr (const T inT) {ostringstream oss; oss << DEC(inT); return oss.str();}
450 
451 void CNTV2SupportLogger::FetchInfoLog (ostringstream & oss) const
452 {
453  string str;
454  AJALabelValuePairs infoTable;
455  AJASystemInfo::append(infoTable, "SDK/DRIVER INFO", "");
456  AJASystemInfo::append(infoTable, "NTV2 SDK Version", ::NTV2GetVersionString(true));
457  AJASystemInfo::append(infoTable, "supportlog Built", string(__DATE__ " at " __TIME__));
458  if (mDevice.IsOpen())
459  {
460  AJASystemInfo::append(infoTable, "Driver Version", mDevice.GetDriverVersionString());
461  #if defined(AJAMac)
462  ULWord drvrType(0), dextType(0x44455854); // 'DEXT'
463  mDevice.ReadRegister(kVRegDriverType, drvrType);
464  if (!drvrType)
465  str = "Kernel Extension ('KEXT')";
466  else if (drvrType == dextType)
467  str = "DriverKit ('DEXT')";
468  else
469  { ostringstream oss;
470  oss << "(Unknown/Invalid " << xHEX0N(drvrType,8) << ")";
471  str = oss.str();
472  }
473  AJASystemInfo::append(infoTable, "Driver Type", str);
474  #endif // defined(AJAMac)
475  }
476  AJASystemInfo::append(infoTable, "Watcher Nub Protocol Version", "Built-in RPC support");
477 
478  if (mDevice.IsOpen())
479  {
480  AJASystemInfo::append(infoTable, "DEVICE INFO", "");
481  AJASystemInfo::append(infoTable, "Device", mDevice.GetDisplayName());
482  str = xHEX0NStr(mDevice.GetDeviceID(),8) + " (" + string(::NTV2DeviceIDString(mDevice.GetDeviceID())) + ")";
483  AJASystemInfo::append(infoTable, "Device ID", str);
484  AJASystemInfo::append(infoTable, "Serial Number", (mDevice.GetSerialNumberString(str) ? str : "Not programmed"));
485  AJASystemInfo::append(infoTable, "Video Bitfile", (getBitfileDate(mDevice, str, eFPGAVideoProc) ? str : "Not available"));
486  AJASystemInfo::append(infoTable, "PCI FPGA Version", mDevice.GetPCIFPGAVersionString());
487  ULWord numBytes(0);
488  string dateStr, timeStr, connType;
489  if (mDevice.GetInstalledBitfileInfo(numBytes, dateStr, timeStr))
490  {
491  AJASystemInfo::append(infoTable, "Installed Bitfile ByteCount", DECStr(numBytes));
492  AJASystemInfo::append(infoTable, "Installed Bitfile Build Date", dateStr + " " + timeStr);
493  }
494 
495  if (::NTV2DeviceHasLPProductCode(mDevice.GetDeviceID()))
496  {
497  std::string urlString;
498  bool hasIP = mDevice.GetLPTunnelPortURLString(urlString);
499  AJASystemInfo::append(infoTable, ("Tunnel URL: " + (hasIP ? urlString : "No URL")));
500  hasIP = mDevice.GetLPExternalPortURLString(urlString);
501  AJASystemInfo::append(infoTable, ("External URL: " + (hasIP ? urlString : "No URL")));
502  }
503 
504  if (mDevice.IsIPDevice())
505  {
506  PACKAGE_INFO_STRUCT pkgInfo;
507  if (mDevice.GetPackageInformation(pkgInfo))
508  {
509  AJASystemInfo::append(infoTable, "Package", pkgInfo.packageNumber);
510  AJASystemInfo::append(infoTable, "Build", pkgInfo.buildNumber);
511  AJASystemInfo::append(infoTable, "Build Date", pkgInfo.date);
512  AJASystemInfo::append(infoTable, "Build Time", pkgInfo.time);
513  }
514 
515  CNTV2KonaFlashProgram ntv2Card(mDevice.GetIndexNumber());
516  MacAddr mac1, mac2;
517  if (ntv2Card.ReadMACAddresses(mac1, mac2))
518  {
519  AJASystemInfo::append(infoTable, "MAC1", mac1.AsString());
520  AJASystemInfo::append(infoTable, "MAC2", mac2.AsString());
521  }
522 
523  ULWord cfg(0);
524  mDevice.ReadRegister((kRegSarekFwCfg + SAREK_REGS), cfg);
525  if (cfg & SAREK_2022_2)
526  {
527  ULWord dnaLo(0), dnaHi(0);
528  if (ntv2Card.ReadRegister(kRegSarekDNALow + SAREK_REGS, dnaLo))
529  if (ntv2Card.ReadRegister(kRegSarekDNAHi + SAREK_REGS, dnaHi))
530  AJASystemInfo::append(infoTable, "Device DNA", string(HEX0NStr(dnaHi,8)+HEX0NStr(dnaLo,8)));
531  }
532 
533  string licenseInfo;
534  ntv2Card.ReadLicenseInfo(licenseInfo);
535  AJASystemInfo::append(infoTable, "License", licenseInfo);
536 
537  if (cfg & SAREK_2022_2)
538  {
539  ULWord licenseStatus(0);
540  ntv2Card.ReadRegister(kRegSarekLicenseStatus + SAREK_REGS, licenseStatus);
541  AJASystemInfo::append(infoTable, "License Present", licenseStatus & SAREK_LICENSE_PRESENT ? "Yes" : "No");
542  AJASystemInfo::append(infoTable, "License Status", licenseStatus & SAREK_LICENSE_VALID ? "License is valid" : "License NOT valid");
543  AJASystemInfo::append(infoTable, "License Enable Mask", xHEX0NStr(licenseStatus & 0xff,2));
544  }
545  } // if IsIPDevice
546  if (mDevice.IsRemote())
547  {
548  if (!mDevice.GetHostName().empty())
549  AJASystemInfo::append(infoTable, "Host Name", mDevice.GetHostName());
550  if (!mDevice.GetDescription().empty())
551  AJASystemInfo::append(infoTable, "Device Description", mDevice.GetDescription());
552  } // if remote/fake device
553  #if defined(AJAMac)
554  connType = mDevice.GetConnectionType();
555  if (!connType.empty())
556  AJASystemInfo::append(infoTable, "Driver Connection", connType);
557  #endif // AJAMac
558  } // if IsOpen
559 
560  AJASystemInfo hostInfo;
561 
562  // append the system info from AJASystemInfo
563  AJASystemInfo::append(infoTable, "HOST INFO");
564  hostInfo.GetLabelValuePairs(infoTable, false);
565 
566  // append the health status of the persistence database files
567  std::vector<std::pair<std::string, bool> > persistenceChecks;
568  persistenceChecks.push_back(std::pair<std::string, bool>("User Persistence Health", false));
569  persistenceChecks.push_back(std::pair<std::string, bool>("System Persistence Health", true));
570  std::vector<std::pair<std::string, bool> >::const_iterator it(persistenceChecks.begin());
571  int errCode = 0;
572  std::string errMessage;
573  for (; it != persistenceChecks.end(); ++it)
574  {
575  std::string label(it->first);
576  bool shared(it->second);
577  AJAPersistence p("com.aja.devicesettings", "Unknown", "00000000", shared);
578  if (p.StorageHealthCheck(errCode, errMessage))
579  {
580  AJASystemInfo::append(infoTable, label, "exists and is good");
581  }
582  else
583  {
584  if (shared && errCode == -1)
585  AJASystemInfo::append(infoTable, label, "doesn't exist (this one is optional)");
586  else
587  AJASystemInfo::append(infoTable, label, std::string("err(") + aja::to_string(errCode) + ") '" + errMessage + "'");
588  }
589  }
590 
591  oss << AJASystemInfo::ToString(infoTable) << endl;
592 } // FetchInfoLog
593 
594 
595 void CNTV2SupportLogger::FetchRegisterLog (ostringstream & oss) const
596 {
597  NTV2RegisterReads regs;
598  const NTV2DeviceID deviceID (mDevice.GetDeviceID());
601  static const string sDashes (96, '-');
602 
603  // Dang, GetRegistersForDevice doesn't/can't read kRegCanDoRegister, so add the CanConnectROM regs here...
606  deviceRegs.insert(regNum);
607 
608  oss << endl << deviceRegs.size() << " Device Registers " << sDashes << endl << endl;
609  regs = ::FromRegNumSet (deviceRegs);
610  if (!mDevice.ReadRegisters (regs))
611  oss << "## NOTE: Driver failed to return one or more registers (those will be zero)" << endl;
612  for (NTV2RegisterReadsConstIter it (regs.begin()); it != regs.end(); ++it)
613  {
614  const NTV2RegInfo & regInfo (*it);
615  const uint32_t regNum (regInfo.registerNumber);
616  //const uint32_t offset (regInfo.registerNumber * 4);
617  const uint32_t value (regInfo.registerValue);
618  oss << endl
619  << "Register Name: " << CNTV2RegisterExpert::GetDisplayName(regNum) << endl
620  << "Register Number: " << regNum << endl
621  << "Register Value: " << value << " : " << xHEX0N(value,8) << endl
622  // << "Register Classes: " << CNTV2RegisterExpert::GetRegisterClasses(regNum) << endl
623  << CNTV2RegisterExpert::GetDisplayValue (regNum, value, deviceID) << endl;
624  }
625 
626  regs = ::FromRegNumSet (virtualRegs);
627  oss << endl << virtualRegs.size() << " Virtual Registers " << sDashes << endl << endl;
628  if (!mDevice.ReadRegisters (regs))
629  oss << "## NOTE: Driver failed to return one or more virtual registers (those will be zero)" << endl;
630  for (NTV2RegisterReadsConstIter it (regs.begin()); it != regs.end(); ++it)
631  {
632  const NTV2RegInfo & regInfo (*it);
633  const uint32_t regNum (regInfo.registerNumber);
634  //const uint32_t offset (regInfo.registerNumber * 4);
635  const uint32_t value (regInfo.registerValue);
636  oss << endl
637  << "VReg Name: " << CNTV2RegisterExpert::GetDisplayName(regNum) << endl
638  << "VReg Number: " << setw(10) << regNum << endl
639  << "VReg Value: " << value << " : " << xHEX0N(value,8) << endl
640  << CNTV2RegisterExpert::GetDisplayValue (regNum, value, deviceID) << endl;
641  }
642 } // FetchRegisterLog
643 
644 
645 void CNTV2SupportLogger::FetchAutoCirculateLog (ostringstream & oss) const
646 {
647  ULWord appSignature (0);
648  int32_t appPID (0);
649  ChannelToACStatus perChannelStatus; // Per-channel AUTOCIRCULATE_STATUS
650  ChannelToPerFrameTCList perChannelTCs; // Per-channel collection of per-frame TCs
652  const NTV2DeviceID deviceID (mDevice.GetDeviceID());
653  const ULWord numChannels (::NTV2DeviceGetNumVideoChannels(deviceID));
654  static const string dashes (25, '-');
655 
656  // This code block takes a snapshot of the current AutoCirculate state of the device...
657  mDevice.GetEveryFrameServices(taskMode);
658  mDevice.GetStreamingApplication(appSignature, appPID);
659 
660  // Grab A/C status for each channel...
661  for (NTV2Channel chan(NTV2_CHANNEL1); chan < NTV2Channel(numChannels); chan = NTV2Channel(chan+1))
662  {
663  FrameToTCList perFrameTCs;
664  AUTOCIRCULATE_STATUS acStatus;
665  mDevice.AutoCirculateGetStatus (chan, acStatus);
667  mDevice.WaitForInputVerticalInterrupt(chan);
668  else
669  mDevice.WaitForOutputVerticalInterrupt(chan);
670  mDevice.AutoCirculateGetStatus (chan, acStatus);
671  perChannelStatus.insert(ChannelToACStatusPair(chan, acStatus));
672  if (!acStatus.IsStopped())
673  {
674  for (uint16_t frameNum (acStatus.GetStartFrame()); frameNum <= acStatus.GetEndFrame(); frameNum++)
675  {
676  FRAME_STAMP frameStamp;
677  NTV2TimeCodeList timecodes;
678  mDevice.AutoCirculateGetFrameStamp (chan, frameNum, frameStamp);
679  frameStamp.GetInputTimeCodes(timecodes);
680  perFrameTCs.insert(FrameToTCListPair(frameNum, timecodes));
681  } // for each A/C frame
682  perChannelTCs.insert(ChannelToPerFrameTCListPair(chan, perFrameTCs));
683  } // if not stopped
684  } // for each channel
685 
686  bool multiFormatMode(false);
687  if (::NTV2DeviceCanDoMultiFormat(deviceID) && mDevice.GetMultiFormatMode(multiFormatMode))
688  {
689  if (!multiFormatMode)
690  oss << "UniFormat: " << ::NTV2VideoFormatToString(::getVideoFormat(mDevice, NTV2_CHANNEL1)) << endl;
691  else
692  oss << "MultiFormat Mode" << endl;
693  }
694  else
695  oss << "Board Format: " << ::NTV2VideoFormatToString(::getVideoFormat(mDevice, NTV2_CHANNEL1)) << endl;
696 
697  oss << "Task mode: " << ::NTV2TaskModeToString(taskMode) << ", PID=" << pidToString(uint32_t(appPID)) << ", signature=" << appSignatureToString(appSignature) << endl
698  << endl
699  << "Chan/FrameStore State Start End Act FrmProc FrmDrop BufLvl Audio RP188 LTC FBFch FBOch Color VidPr Anc HDMIx Field VidFmt PixFmt" << endl
700  << "-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" << endl;
701  for (ChannelToACStatusConstIter iter (perChannelStatus.begin()); iter != perChannelStatus.end(); ++iter)
702  {
703  const NTV2Channel chan(iter->first);
704  const AUTOCIRCULATE_STATUS & status(iter->second);
705  // The following should mirror what ntv2watcher/pages/page_autocirculate::fetchSupportLogInfo does...
706  oss << ::NTV2ChannelToString(chan, true) << ": "
707  << (::isEnabled(mDevice,chan) ? NTV2_IS_INPUT_MODE(::getMode(mDevice,chan)) ? "Input " : "Output" : "Off ")
708  << setw(12) << status[0] // State
709  << setw( 7) << status[1] // Start
710  << setw( 6) << status[2] // End
711  << setw( 6) << (status.IsStopped() ? ::getActiveFrameStr(mDevice,chan) : status[4]) // Act
712  << setw(10) << status[9] // FrmProc
713  << setw(10) << status[10] // FrmDrop
714  << setw( 7) << status[11] // BufLvl
715  << setw( 9) << status[12] // Audio
716  << setw( 8) << status[13] // RP188
717  << setw( 8) << status[14] // LTC
718  << setw( 8) << status[15] // FBFchg
719  << setw( 8) << status[16] // FBOchg
720  << setw( 8) << status[17] // ColCor
721  << setw( 8) << status[18] // VidProc
722  << setw( 8) << status[19] // Anc
723  << setw( 8) << status[20] // HDMIAux
724  << setw( 8) << status[21]; // Fld
725  if (!status.IsStopped() || isEnabled(mDevice,chan))
726  oss << setw(12) << ::NTV2VideoFormatToString(::getVideoFormat(mDevice, chan))
727  << setw(13) << ::NTV2FrameBufferFormatToString(::getPixelFormat(mDevice, chan), true)
728  << endl;
729  else
730  oss << setw(12) << "---"
731  << setw(13) << "---"
732  << endl;
733  if (!status.IsStopped() && status.WithAudio())
734  { // Not stopped and AutoCirculating audio -- check if audio buffer capacity will be exceeded...
735  ULWord audChlsPerSample(0);
738  mDevice.GetNumberAudioChannels (audChlsPerSample, status.GetAudioSystem());
739  if (mDevice.GetFrameRate (fr, status.GetChannel()) && NTV2_IS_SUPPORTED_NTV2FrameRate(fr))
740  if (mDevice.GetAudioRate (ar, status.GetAudioSystem()) && NTV2_IS_VALID_AUDIO_RATE(ar))
741  {
742  const double framesPerSecond (double(::GetScaleFromFrameRate(fr)) / 100.00);
743  const double samplesPerSecond (double(::GetAudioSamplesPerSecond(ar)));
744  const double bytesPerChannel (4.0);
745  const double channelsPerSample (double(audChlsPerSample+0));
746  const double bytesPerFrame (samplesPerSecond * bytesPerChannel * channelsPerSample / framesPerSecond);
747  const ULWord maxVideoFrames (4UL * 1024UL * 1024UL / ULWord(bytesPerFrame));
748  if (status.GetFrameCount() > maxVideoFrames)
749  oss << "## WARNING: " << DEC(status.GetFrameCount()) << " frames (" << DEC(status.GetStartFrame())
750  << " thru " << DEC(status.GetEndFrame()) << ") exceeds " << DEC(maxVideoFrames)
751  << "-frame max audio buffer capacity" << endl;
752  }
753  }
754  } // for each channel
755 
756  SDRAMAuditor ramMapper;
757  oss << endl << "Device SDRAM Map (8MB frms):" << endl;
758  ramMapper.AssessDevice(mDevice, /* ignore unused audio buffers */ true);
759  ramMapper.DumpBlocks(oss);
760  oss << endl;
761 
762  // Dump the A/C timecodes...
763  for (ChannelToACStatusConstIter iter (perChannelStatus.begin()); iter != perChannelStatus.end(); ++iter)
764  {
765  const NTV2Channel chan(iter->first);
766  const AUTOCIRCULATE_STATUS & status(iter->second);
767  if (status.IsStopped())
768  continue; // Not initialized/started/paused/running -- skip this channel
769 
770  ChannelToPerFrameTCListConstIter it(perChannelTCs.find(chan));
771  if (it == perChannelTCs.end())
772  continue; // Channel not in perChannelTCs
773 
774  const FrameToTCList perFrameTCs(it->second);
775  oss << endl << dashes << " " << (NTV2_IS_INPUT_CROSSPOINT(status.acCrosspoint) ? "Input " : "Output ") << DEC(chan+1) << " Per-Frame Valid Timecodes:" << endl;
776  for (FrameToTCListConstIter i(perFrameTCs.begin()); i != perFrameTCs.end(); ++i)
777  {
778  const uint16_t frameNum(i->first);
779  const NTV2TimeCodeList & timecodes(i->second);
780  oss << "Frame " << frameNum << ":" << endl;
781  for (uint16_t tcNdx(0); tcNdx < timecodes.size(); tcNdx++)
782  {
783  const NTV2_RP188 tcVal(timecodes[tcNdx]);
784  if (!tcVal.IsValid())
785  continue; // skip invalid timecodes
786  const string tcStr (timecodeToString(tcVal));
787  oss << "\t" << setw(10) << ::NTV2TCIndexToString(NTV2TimecodeIndex(tcNdx), true) << setw(0) << ":\t"
788  << setw(12) << tcStr << setw(0) << "\t" << tcVal << endl;
789  } // for each timecode
790  } // for each frame
791  } // for each channel
792 } // FetchAutoCirculateLog
793 
794 
795 void CNTV2SupportLogger::FetchAudioLog (ostringstream & oss) const
796 {
797  const NTV2DeviceID devID (mDevice.GetDeviceID());
798  const UWord maxNumChannels (::NTV2DeviceGetMaxAudioChannels(devID));
799  const UWord numAudSys (::NTV2DeviceGetNumAudioSystems(devID));
800  oss << " Device:\t" << mDevice.GetDisplayName() << endl;
801 
802  // loop over all the audio systems
803  for (NTV2AudioSystem audSys(NTV2_AUDIOSYSTEM_1); audSys < NTV2AudioSystem(numAudSys); audSys = NTV2AudioSystem(audSys+1))
804  {
805  AUTOCIRCULATE_STATUS acStatus;
806  NTV2Channel acChan (findActiveACChannel(mDevice, audSys, acStatus));
807  if (acChan != NTV2_CHANNEL_INVALID)
808  {
809  NTV2AudioSource audioSource (NTV2_AUDIO_EMBEDDED);
811  mDevice.GetAudioSystemInputSource(audSys, audioSource, embeddedSource);
813  mDevice.GetMode(acChan, mode);
814  NTV2AudioRate audioRate (NTV2_AUDIO_48K);
815  mDevice.GetAudioRate(audioRate, audSys);
816  NTV2AudioBufferSize audioBufferSize;
817  mDevice.GetAudioBufferSize(audioBufferSize, audSys);
819  mDevice.GetAudioLoopBack(loopbackMode, audSys);
820 
821  NTV2AudioChannelPairs channelPairsPresent;
822  if (NTV2_IS_INPUT_MODE(mode))
823  {
824  detectInputChannelPairs(mDevice, audioSource, embeddedSource, channelPairsPresent);
825  }
826  else if (NTV2_IS_OUTPUT_MODE(mode))
827  {
828  bool isEmbedderEnabled = false;
829  mDevice.GetSDIOutputAudioEnabled(NTV2Channel(audSys), isEmbedderEnabled);
830  UWord inChannelCount = isEmbedderEnabled ? maxNumChannels : 0;
831 
832  // Generates a NTV2AudioChannelPairs set for the given number of audio channels...
833  for (UWord audioChannel (0); audioChannel < inChannelCount; audioChannel++)
834  {
835  if (audioChannel & 1)
836  continue;
837  channelPairsPresent.insert(NTV2AudioChannelPair(audioChannel/2));
838  }
839  }
840 
841  if (::NTV2DeviceCanDoPCMDetection(devID))
842  mDevice.GetInputAudioChannelPairsWithPCM(acChan, channelPairsPresent);
843 
844  NTV2AudioChannelPairs nonPCMChannelPairs;
845  mDevice.GetInputAudioChannelPairsWithoutPCM(acChan, nonPCMChannelPairs);
846  bool isNonPCM (true);
847  //end temp
848 
849  const ULWord currentPosSampleNdx (getCurrentPositionSamples(mDevice, audSys, mode));
850  const ULWord maxSamples (getMaxNumSamples(mDevice, audSys));
851  oss << endl
852  << " Audio system:\t" << ::NTV2AudioSystemToString (audSys, true) << endl
853  << " Sample Rate:\t" << ::NTV2AudioRateToString (audioRate, true) << endl
854  << " Buffer Size:\t" << ::NTV2AudioBufferSizeToString (audioBufferSize, true) << endl
855  << " Audio Channels:\t" << getNumAudioChannels(mDevice, audSys);
856  if (getNumAudioChannels(mDevice, audSys) == maxNumChannels)
857  oss << " (max)" << endl;
858  else
859  oss << " (" << maxNumChannels << " (max))" << endl;
860  oss << " Total Samples:\t[" << DEC0N(maxSamples,6) << "]" << endl
861  << " Direction:\t" << ::NTV2ModeToString (mode, true) << endl
862  << " AutoCirculate:\t" << ::NTV2ChannelToString (acChan, true) << endl
863  << " Loopback Mode:\t" << ::NTV2AudioLoopBackToString (loopbackMode, true) << endl;
864  if (NTV2_IS_INPUT_MODE(mode))
865  {
866  oss << "Write Head Position:\t[" << DEC0N(currentPosSampleNdx,6) << "]" << endl
867  << " Audio source:\t" << ::NTV2AudioSourceToString(audioSource, true);
868  if (NTV2_AUDIO_SOURCE_IS_EMBEDDED(audioSource))
869  oss << " (" << ::NTV2EmbeddedAudioInputToString(embeddedSource, true) << ")";
870  oss << endl
871  << " Channels Present:\t" << channelPairsPresent << endl
872  << " Non-PCM Channels:\t" << nonPCMChannelPairs << endl;
873  }
874  else if (NTV2_IS_OUTPUT_MODE(mode))
875  {
876  oss << " Read Head Position:\t[" << DEC0N(currentPosSampleNdx,6) << "]" << endl;
877  if (::NTV2DeviceCanDoPCMControl(mDevice.GetDeviceID()))
878  oss << " Non-PCM Channels:\t" << nonPCMChannelPairs << endl;
879  else
880  oss << " Non-PCM Channels:\t" << (isNonPCM ? "All Channel Pairs" : "Normal") << endl;
881  }
882  }
883  }
884 } // FetchAudioLog
885 
886 void CNTV2SupportLogger::FetchRoutingLog (ostringstream & oss) const
887 {
888  // Dump routing info...
889  CNTV2SignalRouter router;
890  mDevice.GetRouting (router);
891  oss << "(NTV2InputCrosspointID <== NTV2OutputCrosspointID)" << endl;
892  router.Print (oss, false);
905 }
906 
908 {
910  string registerStr;
911 };
913 {
1012 };
1013 
1014 bool CNTV2SupportLogger::LoadFromLog (const string & inLogFilePath, const bool bForceLoad)
1015 {
1016  ifstream fileInput;
1017  fileInput.open(inLogFilePath.c_str());
1018  string lineContents;
1019  int i = 0, numLines = 0;
1020  int size = sizeof(registerToLoadStrings)/sizeof(registerToLoadString);
1021  string searchString;
1022  bool isCompatible = false;
1023 
1024  while(getline(fileInput, lineContents))
1025  numLines++;
1026  if(size > numLines)
1027  return false;
1028  fileInput.clear();
1029  fileInput.seekg(0, ios::beg);
1030  while(getline(fileInput, lineContents) && i < size && !bForceLoad)
1031  {
1032  searchString = "Device: ";
1033  searchString.append(NTV2DeviceIDToString(mDevice.GetDeviceID()));
1034  if (lineContents.find(searchString, 0) != string::npos)
1035  {
1036  cout << NTV2DeviceIDToString(mDevice.GetDeviceID()) << " is compatible with the log." << endl;
1037  isCompatible = true;
1038  break;
1039  }
1040  else
1041  {
1042  continue;
1043  }
1044  }
1045 
1046  if(!isCompatible)
1047  return false;
1048 
1049  while(i < size)
1050  {
1051  getline(fileInput, lineContents);
1052  if(fileInput.eof())
1053  {
1054  //Did not find the register reset stream to begin
1055  fileInput.clear();
1056  fileInput.seekg(0, ios::beg);
1057  i++;
1058  continue;
1059  }
1060  searchString = "Register Name: ";
1061  searchString.append(registerToLoadStrings[i].registerStr);
1062  if (lineContents.find(searchString, 0) != string::npos)
1063  {
1064  getline(fileInput, lineContents);
1065  getline(fileInput, lineContents);
1066  searchString = "Register Value: ";
1067  size_t start = lineContents.find(searchString);
1068  if(start != string::npos)
1069  {
1070  size_t end = lineContents.find(" : ");
1071  stringstream registerValueString(lineContents.substr(start + searchString.length(), end));
1072  uint32_t registerValue = 0;
1073  registerValueString >> registerValue;
1074  cout << "Writing register: " << registerToLoadStrings[i].registerStr << " " << registerValue << endl;
1075  mDevice.WriteRegister(registerToLoadStrings[i].registerNum, registerValue);
1076  }
1077  else
1078  {
1079  cout << "The format of the log file is not compatible with this option." << endl;
1080  return false;
1081  }
1082  }
1083  else
1084  {
1085  continue;
1086  }
1087  i++;
1088  }
1089 
1090  return true;
1091 }
1092 
1093 string CNTV2SupportLogger::InventLogFilePathAndName (CNTV2Card & inDevice, const string inPrefix, const string inExtension)
1094 {
1095  string homePath;
1096  AJASystemInfo info;
1097  time_t rawtime;
1098  ostringstream oss;
1099  const string deviceName (CNTV2DeviceScanner::GetDeviceRefName(inDevice));
1100 
1101  info.GetValue(AJA_SystemInfoTag_Path_UserHome, homePath);
1102  if (!homePath.empty())
1103  oss << homePath << PATH_DELIMITER;
1104  oss << inPrefix << "_" << deviceName << "_" << ::time(&rawtime) << "." << inExtension;
1105  return oss.str();
1106 }
1107 
1108 bool CNTV2SupportLogger::DumpDeviceSDRAM (CNTV2Card & inDevice, const string & inFilePath, ostream & msgStrm)
1109 {
1110  if (!inDevice.IsOpen())
1111  return false;
1112  if (inFilePath.empty())
1113  return false;
1115  const ULWord maxBytes(::NTV2DeviceGetActiveMemorySize(inDevice.GetDeviceID()));
1116  inDevice.GetFrameBufferSize(NTV2_CHANNEL1, frmsz);
1117  const ULWord byteCount(::NTV2FramesizeToByteCount(frmsz)), megs(byteCount/1024/1024), numFrames(maxBytes / byteCount);
1118  NTV2Buffer buffer(byteCount);
1119  NTV2ULWordVector goodFrames, badDMAs, badWrites;
1120  ofstream ofs(inFilePath.c_str(), ofstream::out | ofstream::binary);
1121  if (!ofs)
1122  {msgStrm << "## ERROR: Unable to open '" << inFilePath << "' for writing" << endl; return false;}
1123 
1124  for (ULWord frameNdx(0); frameNdx < numFrames; frameNdx++)
1125  {
1126  if (!inDevice.DMAReadFrame(frameNdx, buffer, byteCount, NTV2_CHANNEL1))
1127  {badDMAs.push_back(frameNdx); continue;}
1128  if (!ofs.write(buffer, streamsize(buffer.GetByteCount())).good())
1129  {badWrites.push_back(frameNdx); continue;}
1130  goodFrames.push_back(frameNdx);
1131  } // for each frame
1132  if (!badDMAs.empty())
1133  {
1134  msgStrm << "## ERROR: DMARead failed for " << DEC(badDMAs.size()) << " " << DEC(megs) << "MB frame(s): ";
1135  ::NTV2PrintULWordVector(badDMAs, msgStrm); msgStrm << endl;
1136  }
1137  if (!badWrites.empty())
1138  {
1139  msgStrm << "## ERROR: Write failures for " << DEC(badWrites.size()) << " " << DEC(megs) << "MB frame(s): ";
1140  ::NTV2PrintULWordVector(badWrites, msgStrm); msgStrm << endl;
1141  }
1142  msgStrm << "## NOTE: " << DEC(goodFrames.size()) << " x " << DEC(megs) << "MB frames from device '"
1143  << CNTV2DeviceScanner::GetDeviceRefName(inDevice) << "' written to '" << inFilePath << "'" << endl;
1144  return true;
1145 }
PACKAGE_INFO_STRUCT::buildNumber
std::string buildNumber
Definition: ntv2driverinterface.h:50
nlohmann::json_abiNLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON_v3_11_NLOHMANN_JSON_VERSION_PATCH::detail2::end
end_tag end(T &&...)
kRegGlobalControlCh3
@ kRegGlobalControlCh3
Definition: ntv2publicinterface.h:528
kRegGlobalControlCh5
@ kRegGlobalControlCh5
Definition: ntv2publicinterface.h:530
kRegXptSelectGroup32
@ kRegXptSelectGroup32
Definition: ntv2publicinterface.h:684
kRegCh7Control
@ kRegCh7Control
Definition: ntv2publicinterface.h:545
nlohmann::json_abiNLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON_v3_11_NLOHMANN_JSON_VERSION_PATCH::detail::parse_event_t::value
@ value
the parser finished reading a JSON value
kRegCh8Control
@ kRegCh8Control
Definition: ntv2publicinterface.h:550
GetScaleFromFrameRate
ULWord GetScaleFromFrameRate(const NTV2FrameRate inFrameRate)
Definition: ntv2utils.cpp:3358
NTV2PrintULWordVector
std::ostream & NTV2PrintULWordVector(const NTV2ULWordVector &inObj, std::ostream &inOutStream=std::cout)
Streams a human-readable dump of the given NTV2ULWordVector into the specified output stream.
kRegXptSelectGroup25
@ kRegXptSelectGroup25
Definition: ntv2publicinterface.h:560
CNTV2SupportLogger::DumpDeviceSDRAM
static bool DumpDeviceSDRAM(CNTV2Card &inDevice, const std::string &inFilePath, std::ostream &msgStream)
Definition: ntv2supportlogger.cpp:1108
kRegXptSelectGroup13
@ kRegXptSelectGroup13
Definition: ntv2publicinterface.h:386
kRegFlatMatteValue
@ kRegFlatMatteValue
Definition: ntv2publicinterface.h:115
kRegSarekLicenseStatus
#define kRegSarekLicenseStatus
Definition: ntv2registersmb.h:111
NTV2_SupportLoggerSectionRouting
@ NTV2_SupportLoggerSectionRouting
Definition: ntv2supportlogger.h:21
kRegXptSelectGroup22
@ kRegXptSelectGroup22
Definition: ntv2publicinterface.h:556
kRegClass_Virtual
#define kRegClass_Virtual
Definition: ntv2registerexpert.h:70
readCurrentAudioPosition
static ULWord readCurrentAudioPosition(CNTV2Card &device, NTV2AudioSystem audioSystem, NTV2Mode mode)
Definition: ntv2supportlogger.cpp:169
xHEX0NStr
static string xHEX0NStr(const uint32_t inNum, const uint16_t inWidth)
Definition: ntv2supportlogger.cpp:448
BITFILE_INFO_STRUCT::whichFPGA
NTV2XilinxFPGA whichFPGA
Definition: ntv2publicinterface.h:4922
kRegXptSelectGroup33
@ kRegXptSelectGroup33
Definition: ntv2publicinterface.h:685
CNTV2Card::GetInputAudioChannelPairsWithPCM
virtual bool GetInputAudioChannelPairsWithPCM(const NTV2Channel inSDIInputConnector, NTV2AudioChannelPairs &outChannelPairs)
For the given SDI input (specified as a channel number), returns the set of audio channel pairs that ...
Definition: ntv2audio.cpp:1502
kRegXptSelectGroup6
@ kRegXptSelectGroup6
Definition: ntv2publicinterface.h:257
info.h
Declares the AJASystemInfo class.
kRegAud5Delay
@ kRegAud5Delay
Definition: ntv2publicinterface.h:668
NTV2_AUDIO_LOOPBACK_OFF
@ NTV2_AUDIO_LOOPBACK_OFF
Embeds silence (zeroes) into the data stream.
Definition: ntv2enums.h:2016
kRegOutputTimingControlch6
@ kRegOutputTimingControlch6
Definition: ntv2publicinterface.h:654
CNTV2DriverInterface::ReadRegisters
virtual bool ReadRegisters(NTV2RegisterReads &inOutValues)
Reads the register(s) specified by the given NTV2RegInfo sequence.
Definition: ntv2driverinterface.cpp:444
CNTV2RegisterExpert::GetRegistersForDevice
static NTV2RegNumSet GetRegistersForDevice(const NTV2DeviceID inDeviceID, const int inOtherRegsToInclude=0)
Definition: ntv2registerexpert.cpp:4710
kRegAud4Delay
@ kRegAud4Delay
Definition: ntv2publicinterface.h:432
kRegSarekFwCfg
#define kRegSarekFwCfg
Definition: ntv2registersmb.h:105
kRegAud7Delay
@ kRegAud7Delay
Definition: ntv2publicinterface.h:670
kRegMixer1Coefficient
@ kRegMixer1Coefficient
Definition: ntv2publicinterface.h:113
kRegXptSelectGroup14
@ kRegXptSelectGroup14
Definition: ntv2publicinterface.h:387
ntv2supportlogger.h
Declares the CNTV2SupportLogger class.
NTV2_AUDIO_SOURCE_IS_EMBEDDED
#define NTV2_AUDIO_SOURCE_IS_EMBEDDED(_x_)
Definition: ntv2enums.h:2002
AUTOCIRCULATE_STATUS::acCrosspoint
NTV2Crosspoint acCrosspoint
The crosspoint (channel number with direction)
Definition: ntv2publicinterface.h:7323
appSignatureToString
static string appSignatureToString(const ULWord inAppSignature)
Definition: ntv2supportlogger.cpp:61
FrameToTCListConstIter
FrameToTCList::const_iterator FrameToTCListConstIter
Definition: ntv2supportlogger.cpp:35
makeHeader
static string makeHeader(ostringstream &oss, const string &inName)
Definition: ntv2supportlogger.cpp:42
kRegInvalidValidXptROMRegister
@ kRegInvalidValidXptROMRegister
Definition: ntv2publicinterface.h:848
CNTV2Card::GetAudioSystemInputSource
virtual bool GetAudioSystemInputSource(const NTV2AudioSystem inAudioSystem, NTV2AudioSource &outAudioSource, NTV2EmbeddedAudioInput &outEmbeddedSource)
Answers with the device's current NTV2AudioSource (and also possibly its NTV2EmbeddedAudioInput) for ...
Definition: ntv2audio.cpp:520
ntv2devicefeatures.h
Declares device capability functions.
CNTV2MacDriverInterface::ReadRegister
virtual bool ReadRegister(const ULWord inRegNum, ULWord &outValue, const ULWord inMask=0xFFFFFFFF, const ULWord inShift=0)
Reads all or part of the 32-bit contents of a specific register (real or virtual) on the AJA device....
Definition: ntv2macdriverinterface.cpp:389
kDeviceHasXptConnectROM
@ kDeviceHasXptConnectROM
True if device has a crosspoint connection ROM (New in SDK 17.0)
Definition: ntv2devicefeatures.h:147
kRegAud2Delay
@ kRegAud2Delay
Definition: ntv2publicinterface.h:192
NTV2AudioChannelPairs
std::set< NTV2AudioChannelPair > NTV2AudioChannelPairs
A set of distinct NTV2AudioChannelPair values.
Definition: ntv2publicinterface.h:58
kRegOutputTimingControlch7
@ kRegOutputTimingControlch7
Definition: ntv2publicinterface.h:655
timecodeToString
static string timecodeToString(const NTV2_RP188 &inRP188)
Definition: ntv2supportlogger.cpp:48
NTV2Channel
NTV2Channel
These enum values are mostly used to identify a specific widget_framestore. They're also commonly use...
Definition: ntv2enums.h:1343
NTV2Buffer
Describes a user-space buffer on the host computer. I have an address and a length,...
Definition: ntv2publicinterface.h:6141
PATH_DELIMITER
#define PATH_DELIMITER
Definition: ntv2supportlogger.cpp:25
NTV2Buffer::GetByteCount
ULWord GetByteCount(void) const
Definition: ntv2publicinterface.h:6215
SAREK_LICENSE_PRESENT
#define SAREK_LICENSE_PRESENT
Definition: ntv2registersmb.h:224
NTV2AudioBufferSizeToString
std::string NTV2AudioBufferSizeToString(const NTV2AudioBufferSize inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:5834
NTV2TimecodeIndex
enum NTV2TCIndex NTV2TimecodeIndex
CNTV2Card::GetAudioBufferSize
virtual bool GetAudioBufferSize(NTV2AudioBufferSize &outSize, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
Retrieves the size of the input or output audio buffer being used for a given Audio System on the AJA...
Definition: ntv2audio.cpp:268
kRegMixer4Coefficient
@ kRegMixer4Coefficient
Definition: ntv2publicinterface.h:663
HEX0NStr
static string HEX0NStr(const uint32_t inNum, const uint16_t inWidth)
Definition: ntv2supportlogger.cpp:447
kRegXptSelectGroup5
@ kRegXptSelectGroup5
Definition: ntv2publicinterface.h:256
NTV2_EMBEDDED_AUDIO_INPUT_VIDEO_1
@ NTV2_EMBEDDED_AUDIO_INPUT_VIDEO_1
Definition: ntv2enums.h:1955
kRegAud8Control
@ kRegAud8Control
Definition: ntv2publicinterface.h:616
CNTV2Card::WaitForInputVerticalInterrupt
virtual bool WaitForInputVerticalInterrupt(const NTV2Channel inChannel=NTV2_CHANNEL1, UWord inRepeatCount=1)
Efficiently sleeps the calling thread/process until the next one or more field (interlaced video) or ...
Definition: ntv2subscriptions.cpp:149
NTV2_AUDIO_48K
@ NTV2_AUDIO_48K
Definition: ntv2enums.h:1916
CNTV2SupportLogger
Generates a standard support log (register log) for any NTV2 device attached to the host....
Definition: ntv2supportlogger.h:30
NTV2DeviceGetActiveMemorySize
ULWord NTV2DeviceGetActiveMemorySize(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:8812
CNTV2DriverInterface::GetPackageInformation
virtual bool GetPackageInformation(PACKAGE_INFO_STRUCT &outPkgInfo)
Answers with the IP device's package information.
Definition: ntv2driverinterface.cpp:724
ChannelToACStatusPair
pair< NTV2Channel, AUTOCIRCULATE_STATUS > ChannelToACStatusPair
Definition: ntv2supportlogger.cpp:33
kRegOutputTimingControlch3
@ kRegOutputTimingControlch3
Definition: ntv2publicinterface.h:651
kVRegDriverType
@ kVRegDriverType
Definition: ntv2virtualregisters.h:38
CNTV2SupportLogger::PrependToSection
virtual void PrependToSection(uint32_t section, const std::string &sectionData)
Prepends arbitrary string data to my support log, ahead of a given section.
Definition: ntv2supportlogger.cpp:335
CNTV2Card::GetAnalogInputVideoFormat
virtual NTV2VideoFormat GetAnalogInputVideoFormat(void)
Returns the video format of the signal that is present on the device's analog video input.
Definition: ntv2register.cpp:3497
NTV2_FRAMERATE_INVALID
@ NTV2_FRAMERATE_INVALID
Definition: ntv2enums.h:432
BITFILE_INFO_STRUCT::designNameStr
char designNameStr[(100)]
Definition: ntv2publicinterface.h:4917
NTV2HDMIAudioChannels
NTV2HDMIAudioChannels
Indicates or specifies the HDMI audio channel count.
Definition: ntv2enums.h:3637
kRegXptSelectGroup30
@ kRegXptSelectGroup30
Definition: ntv2publicinterface.h:557
NTV2_AUDIOSYSTEM_1
@ NTV2_AUDIOSYSTEM_1
This identifies the first Audio System.
Definition: ntv2enums.h:3867
CNTV2Card::GetLPExternalPortURLString
virtual bool GetLPExternalPortURLString(std::string &outURLString)
Definition: ntv2card.cpp:441
Enum2Str
#define Enum2Str(e)
Definition: ntv2utils.h:25
NTV2DeviceCanDoMultiFormat
bool NTV2DeviceCanDoMultiFormat(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:4247
kRegXptSelectGroup8
@ kRegXptSelectGroup8
Definition: ntv2publicinterface.h:284
CNTV2Card::GetFrameBufferSize
virtual bool GetFrameBufferSize(const NTV2Channel inChannel, NTV2Framesize &outValue)
Answers with the frame size currently being used on the device.
Definition: ntv2register.cpp:2034
BITFILE_INFO_STRUCT::timeStr
char timeStr[(16)]
Definition: ntv2publicinterface.h:4916
kRegXptSelectGroup34
@ kRegXptSelectGroup34
Definition: ntv2publicinterface.h:686
kRegGlobalControlCh4
@ kRegGlobalControlCh4
Definition: ntv2publicinterface.h:529
NTV2_IS_VALID_AUDIO_BUFFER_SIZE
#define NTV2_IS_VALID_AUDIO_BUFFER_SIZE(_x_)
Definition: ntv2enums.h:1911
NTV2DeviceID
NTV2DeviceID
Identifies a specific AJA NTV2 device model number. The NTV2DeviceID is actually the PROM part number...
Definition: ntv2enums.h:20
DEC0N
#define DEC0N(__x__, __n__)
Definition: ntv2publicinterface.h:5696
CNTV2Card::GetInputFrame
virtual bool GetInputFrame(const NTV2Channel inChannel, ULWord &outValue)
Answers with the current input frame index number for the given FrameStore. This identifies which par...
Definition: ntv2register.cpp:2218
kRegAud3SourceSelect
@ kRegAud3SourceSelect
Definition: ntv2publicinterface.h:403
getNumAudioChannels
static ULWord getNumAudioChannels(CNTV2Card &device, NTV2AudioSystem audioSystem)
Definition: ntv2supportlogger.cpp:179
kRegGlobalControlCh7
@ kRegGlobalControlCh7
Definition: ntv2publicinterface.h:532
NTV2_FBF_INVALID
@ NTV2_FBF_INVALID
Definition: ntv2enums.h:248
NTV2FrameBufferFormat
NTV2FrameBufferFormat
Identifies a particular video frame buffer format. See Device Frame Buffer Formats for details.
Definition: ntv2enums.h:210
CNTV2SupportLogger::AddHeader
virtual void AddHeader(const std::string &sectionName, const std::string &sectionData)
Adds header text to my log.
Definition: ntv2supportlogger.cpp:363
CNTV2Card::GetInstalledBitfileInfo
virtual bool GetInstalledBitfileInfo(ULWord &outNumBytes, std::string &outDateStr, std::string &outTimeStr)
Returns the bitfile size and time/date stamp from the header of the bitfile that's currently installe...
Definition: ntv2card.cpp:326
SAREK_LICENSE_VALID
#define SAREK_LICENSE_VALID
Definition: ntv2registersmb.h:225
PACKAGE_INFO_STRUCT::packageNumber
std::string packageNumber
Definition: ntv2driverinterface.h:51
getCurrentPositionSamples
static ULWord getCurrentPositionSamples(CNTV2Card &device, NTV2AudioSystem audioSystem, NTV2Mode mode)
Definition: ntv2supportlogger.cpp:191
kRegVidProc3Control
@ kRegVidProc3Control
Definition: ntv2publicinterface.h:658
CNTV2Card::GetMultiFormatMode
virtual bool GetMultiFormatMode(bool &outIsEnabled)
Answers if the device is operating in multiple-format per channel (independent channel) mode or not....
Definition: ntv2register.cpp:4373
NTV2_INVALID_HDMI_AUDIO_CHANNELS
@ NTV2_INVALID_HDMI_AUDIO_CHANNELS
Definition: ntv2enums.h:3642
MacAddr::AsString
std::string AsString(void) const
Definition: ntv2konaflashprogram.cpp:32
kRegAud1Delay
@ kRegAud1Delay
Definition: ntv2publicinterface.h:122
kRegXptSelectGroup3
@ kRegXptSelectGroup3
Definition: ntv2publicinterface.h:254
NTV2_CHANNEL1
@ NTV2_CHANNEL1
Specifies channel or FrameStore 1 (or the first item).
Definition: ntv2enums.h:1345
kRegXptSelectGroup27
@ kRegXptSelectGroup27
Definition: ntv2publicinterface.h:562
CNTV2Card::GetFrameBufferFormat
virtual bool GetFrameBufferFormat(NTV2Channel inChannel, NTV2FrameBufferFormat &outValue)
Returns the current frame buffer format for the given FrameStore on the AJA device.
Definition: ntv2register.cpp:1875
SDRAMAuditor
Audits an NTV2 device's SDRAM utilization, and can report contiguous regions of SDRAM,...
Definition: ntv2card.h:6665
NTV2_IS_VALID_AUDIO_RATE
#define NTV2_IS_VALID_AUDIO_RATE(_x_)
Definition: ntv2enums.h:1923
kRegXptSelectGroup28
@ kRegXptSelectGroup28
Definition: ntv2publicinterface.h:563
NTV2_HDMIAudio8Channels
@ NTV2_HDMIAudio8Channels
8 audio channels
Definition: ntv2enums.h:3640
ChannelToACStatus
map< NTV2Channel, AUTOCIRCULATE_STATUS > ChannelToACStatus
Definition: ntv2supportlogger.cpp:31
NTV2FrameRate
NTV2FrameRate
Identifies a particular video frame rate.
Definition: ntv2enums.h:403
NTV2FramesizeToByteCount
ULWord NTV2FramesizeToByteCount(const NTV2Framesize inFrameSize)
Converts the given NTV2Framesize value into an exact byte count.
Definition: ntv2utils.cpp:5352
FRAME_STAMP
This class/object reports information about the current and/or requested AutoCirculate frame.
Definition: ntv2publicinterface.h:7931
NTV2_CHANNEL_INVALID
@ NTV2_CHANNEL_INVALID
Definition: ntv2enums.h:1354
ntv2registersmb.h
Defines the KonaIP/IoIP registers.
pidToString
static string pidToString(const uint32_t inPID)
Definition: ntv2supportlogger.cpp:74
kRegXptSelectGroup31
@ kRegXptSelectGroup31
Definition: ntv2publicinterface.h:599
kRegAud5Control
@ kRegAud5Control
Definition: ntv2publicinterface.h:601
NTV2RegNumSet
NTV2RegisterNumberSet NTV2RegNumSet
A set of distinct NTV2RegisterNumbers.
Definition: ntv2publicinterface.h:7577
CNTV2SupportLogger::~CNTV2SupportLogger
virtual ~CNTV2SupportLogger()
My default destructor.
Definition: ntv2supportlogger.cpp:323
kRegCh3Control
@ kRegCh3Control
Definition: ntv2publicinterface.h:380
getVideoFormat
static NTV2VideoFormat getVideoFormat(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:122
ChannelToPerFrameTCListPair
pair< NTV2Channel, FrameToTCList > ChannelToPerFrameTCListPair
Definition: ntv2supportlogger.cpp:39
CNTV2Card::GetDetectedAudioChannelPairs
virtual bool GetDetectedAudioChannelPairs(const NTV2AudioSystem inAudioSystem, NTV2AudioChannelPairs &outDetectedChannelPairs)
Answers which audio channel pairs are present in the given Audio System's input stream.
Definition: ntv2audio.cpp:1347
kRegAud8Delay
@ kRegAud8Delay
Definition: ntv2publicinterface.h:671
CNTV2DriverInterface::IsSupported
virtual bool IsSupported(const NTV2BoolParamID inParamID)
Definition: ntv2driverinterface.h:424
CNTV2SupportLogger::Version
static int Version(void)
Definition: ntv2supportlogger.cpp:329
kRegOutputTimingControlch5
@ kRegOutputTimingControlch5
Definition: ntv2publicinterface.h:653
AUTOCIRCULATE_STATUS::IsInput
bool IsInput(void) const
Definition: ntv2publicinterface.h:7541
kRegCh2Control
@ kRegCh2Control
Definition: ntv2publicinterface.h:107
isEnabled
static bool isEnabled(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:143
NTV2_AudioChannel9_10
@ NTV2_AudioChannel9_10
This selects audio channels 9 and 10 (Group 3 channels 1 and 2)
Definition: ntv2enums.h:3110
CNTV2Card::GetDisplayName
virtual std::string GetDisplayName(void)
Answers with this device's display name.
Definition: ntv2card.cpp:86
kRegGlobalControlCh8
@ kRegGlobalControlCh8
Definition: ntv2publicinterface.h:533
SDRAMAuditor::DumpBlocks
std::ostream & DumpBlocks(std::ostream &oss) const
Dumps all 8MB blocks/frames and their tags, if any, into the given stream.
Definition: ntv2card.cpp:627
BITFILE_INFO_STRUCT::dateStr
char dateStr[(16)]
Definition: ntv2publicinterface.h:4915
NTV2XilinxFPGA
NTV2XilinxFPGA
Definition: ntv2enums.h:3816
kRegAud6SourceSelect
@ kRegAud6SourceSelect
Definition: ntv2publicinterface.h:607
NTV2TCIndexToString
std::string NTV2TCIndexToString(const NTV2TCIndex inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:6446
CNTV2Card::GetOutputFrame
virtual bool GetOutputFrame(const NTV2Channel inChannel, ULWord &outValue)
Answers with the current output frame number for the given FrameStore (expressed as an NTV2Channel).
Definition: ntv2register.cpp:2200
CNTV2Card::AutoCirculateGetFrameStamp
virtual bool AutoCirculateGetFrameStamp(const NTV2Channel inChannel, const ULWord inFrameNumber, FRAME_STAMP &outFrameInfo)
Returns precise timing information for the given frame and channel that's currently AutoCirculating.
Definition: ntv2autocirculate.cpp:667
nlohmann::json_abiNLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON_v3_11_NLOHMANN_JSON_VERSION_PATCH::detail::value_t::string
@ string
string value
ChannelToPerFrameTCListConstIter
ChannelToPerFrameTCList::const_iterator ChannelToPerFrameTCListConstIter
Definition: ntv2supportlogger.cpp:38
CNTV2Card::GetNumberAudioChannels
virtual bool GetNumberAudioChannels(ULWord &outNumChannels, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
Returns the current number of audio channels being captured or played by a given Audio System on the ...
Definition: ntv2audio.cpp:180
kRegVidProc4Control
@ kRegVidProc4Control
Definition: ntv2publicinterface.h:662
CNTV2Card::GetPCIFPGAVersionString
virtual std::string GetPCIFPGAVersionString(void)
Definition: ntv2card.cpp:135
CNTV2Card::GetVideoFormat
virtual bool GetVideoFormat(NTV2VideoFormat &outValue, NTV2Channel inChannel=NTV2_CHANNEL1)
Definition: ntv2register.cpp:335
NTV2_SupportLoggerSectionRegisters
@ NTV2_SupportLoggerSectionRegisters
Definition: ntv2supportlogger.h:22
AJASystemInfo::GetValue
virtual AJAStatus GetValue(const AJASystemInfoTag inTag, std::string &outValue) const
Answers with the host system info value string for the given AJASystemInfoTag.
Definition: info.cpp:151
ULWord
uint32_t ULWord
Definition: ajatypes.h:255
kRegXptSelectGroup2
@ kRegXptSelectGroup2
Definition: ntv2publicinterface.h:253
AJASystemInfo::append
static AJALabelValuePairs & append(AJALabelValuePairs &inOutTable, const std::string &inLabel, const std::string &inValue=std::string())
A convenience function that appends the given label and value strings to the provided AJALabelValuePa...
Definition: info.h:168
LoggerSectionToFunctionMacro
#define LoggerSectionToFunctionMacro(_SectionEnum_, _SectionString_, _SectionMethod_)
Definition: ntv2supportlogger.cpp:384
kRegXptSelectGroup10
@ kRegXptSelectGroup10
Definition: ntv2publicinterface.h:374
CNTV2Card::GetDescription
virtual std::string GetDescription(void) const
Definition: ntv2card.cpp:143
AUTOCIRCULATE_STATUS
This is returned from the CNTV2Card::AutoCirculateGetStatus function.
Definition: ntv2publicinterface.h:7321
kRegGlobalControlCh6
@ kRegGlobalControlCh6
Definition: ntv2publicinterface.h:531
ntv2devicescanner.h
Declares the CNTV2DeviceScanner class.
registerToLoadString
Definition: ntv2supportlogger.cpp:907
kRegXptSelectGroup12
@ kRegXptSelectGroup12
Definition: ntv2publicinterface.h:316
CNTV2RegisterExpert::GetDisplayName
static std::string GetDisplayName(const uint32_t inRegNum)
Definition: ntv2registerexpert.cpp:4651
NTV2_IS_INPUT_CROSSPOINT
#define NTV2_IS_INPUT_CROSSPOINT(__x__)
Definition: ntv2enums.h:1710
CNTV2MacDriverInterface::GetStreamingApplication
virtual bool GetStreamingApplication(ULWord &outAppType, int32_t &outProcessID)
Answers with the four-CC type and process ID of the application that currently "owns" the AJA device ...
Definition: ntv2macdriverinterface.cpp:659
findActiveACChannel
static NTV2Channel findActiveACChannel(CNTV2Card &device, NTV2AudioSystem audioSystem, AUTOCIRCULATE_STATUS &outStatus)
Definition: ntv2supportlogger.cpp:205
FRAME_STAMP::GetInputTimeCodes
bool GetInputTimeCodes(NTV2TimeCodeList &outValues) const
Returns all RP188 timecodes associated with the frame in NTV2TCIndex order.
Definition: ntv2publicinterface.cpp:2238
NTV2Mode
NTV2Mode
Used to identify the mode of a widget_framestore, or the direction of an AutoCirculate stream: either...
Definition: ntv2enums.h:1230
CNTV2Card::GetInputAudioChannelPairsWithoutPCM
virtual bool GetInputAudioChannelPairsWithoutPCM(const NTV2Channel inSDIInputConnector, NTV2AudioChannelPairs &outChannelPairs)
For the given SDI input (specified as a channel number), returns the set of audio channel pairs that ...
Definition: ntv2audio.cpp:1530
kRegAud3Control
@ kRegAud3Control
Definition: ntv2publicinterface.h:401
NTV2DeviceIDToString
std::string NTV2DeviceIDToString(const NTV2DeviceID inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:4678
bytesToSamples
static ULWord bytesToSamples(CNTV2Card &device, NTV2AudioSystem audioSystem, const ULWord inBytes)
Definition: ntv2supportlogger.cpp:186
AJASystemInfo::ToString
virtual void ToString(std::string &outAllLabelsAndValues) const
Answers with a multi-line string that contains the complete host system info table.
PACKAGE_INFO_STRUCT::time
std::string time
Definition: ntv2driverinterface.h:53
registerToLoadString::registerNum
NTV2RegisterNumber registerNum
Definition: ntv2supportlogger.cpp:909
NTV2RegisterReadsConstIter
NTV2RegWritesConstIter NTV2RegisterReadsConstIter
Definition: ntv2publicinterface.h:4073
CNTV2MacDriverInterface::GetConnectionType
virtual std::string GetConnectionType(void) const
Definition: ntv2macdriverinterface.h:106
kRegGlobalControl2
@ kRegGlobalControl2
Definition: ntv2publicinterface.h:390
NTV2_IS_VALID_EMBEDDED_AUDIO_INPUT
#define NTV2_IS_VALID_EMBEDDED_AUDIO_INPUT(_x_)
Definition: ntv2enums.h:1967
registerToLoadString::registerStr
string registerStr
Definition: ntv2supportlogger.cpp:910
NTV2_AudioChannel3_4
@ NTV2_AudioChannel3_4
This selects audio channels 3 and 4 (Group 1 channels 3 and 4)
Definition: ntv2enums.h:3107
CNTV2Card::ReadAudioLastIn
virtual bool ReadAudioLastIn(ULWord &outValue, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
For the given Audio System, answers with the byte offset to the last byte of the latest chunk of 4-by...
Definition: ntv2audio.cpp:465
CNTV2Card::GetSerialNumberString
virtual bool GetSerialNumberString(std::string &outSerialNumberString)
Answers with a string that contains my human-readable serial number.
Definition: ntv2card.cpp:233
AJASystemInfo::GetLabelValuePairs
virtual AJAStatus GetLabelValuePairs(AJALabelValuePairs &outTable, bool clearTable=false) const
Generates a "table" of label/value pairs that contains the complete host system info table.
Definition: info.cpp:173
CNTV2Card::ReadAudioLastOut
virtual bool ReadAudioLastOut(ULWord &outValue, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
For the given Audio System, answers with the byte offset of the tail end of the last chunk of audio s...
Definition: ntv2audio.cpp:472
SAREK_REGS
#define SAREK_REGS
Definition: ntv2registersmb.h:54
NTV2AudioChannelPair
NTV2AudioChannelPair
Identifies a pair of audio channels.
Definition: ntv2enums.h:3104
kRegXptSelectGroup26
@ kRegXptSelectGroup26
Definition: ntv2publicinterface.h:561
kRegGlobalControl3
@ kRegGlobalControl3
Definition: ntv2publicinterface.h:216
UWord
uint16_t UWord
Definition: ajatypes.h:253
NTV2RegisterReads
NTV2RegWrites NTV2RegisterReads
Definition: ntv2publicinterface.h:4072
CNTV2Card::AutoCirculateGetStatus
virtual bool AutoCirculateGetStatus(const NTV2Channel inChannel, AUTOCIRCULATE_STATUS &outStatus)
Returns the current AutoCirculate status for the given channel.
Definition: ntv2autocirculate.cpp:646
kRegOutputTimingControlch8
@ kRegOutputTimingControlch8
Definition: ntv2publicinterface.h:656
kRegXptSelectGroup35
@ kRegXptSelectGroup35
Definition: ntv2publicinterface.h:687
NTV2Framesize
NTV2Framesize
Kona2/Xena2 specific enums.
Definition: ntv2enums.h:2102
CNTV2Card::GetLPTunnelPortURLString
virtual bool GetLPTunnelPortURLString(std::string &outURLString)
Definition: ntv2card.cpp:467
NTV2TaskModeToString
std::string NTV2TaskModeToString(const NTV2EveryFrameTaskMode inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:6405
CNTV2Card::GetAnalogCompositeInputVideoFormat
virtual NTV2VideoFormat GetAnalogCompositeInputVideoFormat(void)
Returns the video format of the signal that is present on the device's composite video input.
Definition: ntv2register.cpp:3513
kRegXptSelectGroup21
@ kRegXptSelectGroup21
Definition: ntv2publicinterface.h:555
CNTV2Card::GetHDMIInputAudioChannels
virtual bool GetHDMIInputAudioChannels(NTV2HDMIAudioChannels &outValue, const NTV2Channel inChannel=NTV2_CHANNEL1)
Answers with the current number of audio channels being received on the given HDMI input.
Definition: ntv2hdmi.cpp:272
NTV2VideoFormatToString
std::string NTV2VideoFormatToString(const NTV2VideoFormat inValue, const bool inUseFrameRate=false)
Definition: ntv2utils.cpp:6798
kRegXptSelectGroup7
@ kRegXptSelectGroup7
Definition: ntv2publicinterface.h:283
CNTV2Card::DMAReadFrame
virtual bool DMAReadFrame(const ULWord inFrameNumber, ULWord *pOutFrameBuffer, const ULWord inByteCount)
Transfers a single frame from the AJA device to the host.
Definition: ntv2dma.cpp:41
CNTV2Card
I interrogate and control an AJA video/audio capture/playout device.
Definition: ntv2card.h:28
operator<<
ostream & operator<<(ostream &outStream, const CNTV2SupportLogger &inData)
Definition: ntv2supportlogger.cpp:303
AUTOCIRCULATE_STATUS::IsStopped
bool IsStopped(void) const
Definition: ntv2publicinterface.h:7471
PACKAGE_INFO_STRUCT
Definition: ntv2driverinterface.h:48
PACKAGE_INFO_STRUCT::date
std::string date
Definition: ntv2driverinterface.h:52
NTV2ULWordVector
std::vector< ULWord > NTV2ULWordVector
An ordered sequence of ULWords.
Definition: ntv2publicinterface.h:3840
kRegAud4Control
@ kRegAud4Control
Definition: ntv2publicinterface.h:402
NTV2AudioLoopBack
NTV2AudioLoopBack
This enum value determines/states if an audio output embedder will embed silence (zeroes) or de-embed...
Definition: ntv2enums.h:2014
kRegAud8SourceSelect
@ kRegAud8SourceSelect
Definition: ntv2publicinterface.h:617
NTV2GetVersionString
std::string NTV2GetVersionString(const bool inDetailed=false)
Definition: ntv2utils.cpp:7731
kRegOutputTimingControlch4
@ kRegOutputTimingControlch4
Definition: ntv2publicinterface.h:652
kRegAud7Control
@ kRegAud7Control
Definition: ntv2publicinterface.h:611
CRP188
Definition: ntv2rp188.h:55
CNTV2SignalRouter
This class is a collection of widget input-to-output connections that can be applied all-at-once to a...
Definition: ntv2signalrouter.h:56
AUTOCIRCULATE_STATUS::GetEndFrame
uint16_t GetEndFrame(void) const
Definition: ntv2publicinterface.h:7446
NTV2_SupportLoggerSectionAutoCirculate
@ NTV2_SupportLoggerSectionAutoCirculate
Definition: ntv2supportlogger.h:19
CNTV2DeviceScanner::GetDeviceRefName
static std::string GetDeviceRefName(CNTV2Card &inDevice)
Definition: ntv2devicescanner.cpp:388
kRegAud5SourceSelect
@ kRegAud5SourceSelect
Definition: ntv2publicinterface.h:602
kRegFlatMatte3Value
@ kRegFlatMatte3Value
Definition: ntv2publicinterface.h:660
NTV2AudioSourceToString
std::string NTV2AudioSourceToString(const NTV2AudioSource inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:6783
kRegAud1SourceSelect
@ kRegAud1SourceSelect
Definition: ntv2publicinterface.h:128
CNTV2Card::GetMode
virtual bool GetMode(const NTV2Channel inChannel, NTV2Mode &outValue)
Answers with the current NTV2Mode of the given FrameStore on the AJA device.
Definition: ntv2register.cpp:1625
AJA_NULL
#define AJA_NULL
Definition: ajatypes.h:199
kRegXptSelectGroup16
@ kRegXptSelectGroup16
Definition: ntv2publicinterface.h:429
kRegAud4SourceSelect
@ kRegAud4SourceSelect
Definition: ntv2publicinterface.h:404
NTV2_DISABLE_TASKS
@ NTV2_DISABLE_TASKS
0: Disabled (never recommended): device configured exclusively by client application(s).
Definition: ntv2publicinterface.h:4395
registerToLoadStrings
const registerToLoadString registerToLoadStrings[]
Definition: ntv2supportlogger.cpp:912
maxSampleCountForNTV2AudioBufferSize
static uint32_t maxSampleCountForNTV2AudioBufferSize(const NTV2AudioBufferSize inBufferSize, const uint16_t inChannelCount)
Definition: ntv2supportlogger.cpp:106
CNTV2Card::GetDriverVersionString
virtual std::string GetDriverVersionString(void)
Answers with this device's driver's version as a human-readable string.
Definition: ntv2card.cpp:166
NTV2DeviceGetNumAudioSystems
UWord NTV2DeviceGetNumAudioSystems(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:10450
SDRAMAuditor::AssessDevice
bool AssessDevice(CNTV2Card &inDevice, const bool inIgnoreStoppedAudioBuffers=(0))
Assesses the given device.
Definition: ntv2card.cpp:582
kRegXptSelectGroup1
@ kRegXptSelectGroup1
Definition: ntv2publicinterface.h:252
kRegXptSelectGroup19
@ kRegXptSelectGroup19
Definition: ntv2publicinterface.h:500
getMaxNumSamples
static ULWord getMaxNumSamples(CNTV2Card &device, NTV2AudioSystem audioSystem)
Definition: ntv2supportlogger.cpp:197
NTV2_FORMAT_UNKNOWN
@ NTV2_FORMAT_UNKNOWN
Definition: ntv2enums.h:525
CNTV2Card::GetRouting
virtual bool GetRouting(CNTV2SignalRouter &outRouting)
Answers with the current signal routing between any and all widgets on the AJA device.
Definition: ntv2regroute.cpp:340
kRegOutputTimingControlch2
@ kRegOutputTimingControlch2
Definition: ntv2publicinterface.h:650
kRegXptSelectGroup17
@ kRegXptSelectGroup17
Definition: ntv2publicinterface.h:427
NTV2DeviceCanDoPCMDetection
bool NTV2DeviceCanDoPCMDetection(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:4523
NTV2_AUDIO_AES
@ NTV2_AUDIO_AES
Obtain audio samples from the device AES inputs, if available.
Definition: ntv2enums.h:1994
CNTV2Card::GetHDMIInputVideoFormat
virtual NTV2VideoFormat GetHDMIInputVideoFormat(NTV2Channel inHDMIInput=NTV2_CHANNEL1)
Definition: ntv2register.cpp:3456
NTV2_AUDIO_HDMI
@ NTV2_AUDIO_HDMI
Obtain audio samples from the device HDMI input, if available.
Definition: ntv2enums.h:1996
kRegAud1Control
@ kRegAud1Control
Definition: ntv2publicinterface.h:127
NTV2AudioRate
NTV2AudioRate
Definition: ntv2enums.h:1914
CNTV2RegisterExpert::GetRegistersForClass
static NTV2RegNumSet GetRegistersForClass(const std::string &inClassName)
Definition: ntv2registerexpert.cpp:4696
detectInputChannelPairs
static bool detectInputChannelPairs(CNTV2Card &device, const NTV2AudioSource inAudioSource, const NTV2EmbeddedAudioInput inEmbeddedSource, NTV2AudioChannelPairs &outChannelPairsPresent)
Definition: ntv2supportlogger.cpp:221
DECStr
string DECStr(const T inT)
Definition: ntv2supportlogger.cpp:449
NTV2RegisterNumber
NTV2RegisterNumber
Definition: ntv2publicinterface.h:100
DEC
#define DEC(__x__)
Definition: ntv2publicinterface.h:5694
CNTV2SupportLogger::InventLogFilePathAndName
static std::string InventLogFilePathAndName(CNTV2Card &inDevice, std::string inPrefix="aja_supportlog", std::string inExtension="log")
Definition: ntv2supportlogger.cpp:1093
NTV2DeviceIDString
const char * NTV2DeviceIDString(const NTV2DeviceID id)
Definition: ntv2debug.cpp:15
false
#define false
Definition: ntv2devicefeatures.h:25
CNTV2Card::GetAudioLoopBack
virtual bool GetAudioLoopBack(NTV2AudioLoopBack &outMode, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
Answers if NTV2AudioLoopBack mode is currently on or off for the given NTV2AudioSystem.
Definition: ntv2audio.cpp:321
NTV2RegInfo
Everything needed to call CNTV2Card::ReadRegister or CNTV2Card::WriteRegister functions.
Definition: ntv2publicinterface.h:3977
common.h
Private include file for all ajabase sources.
CNTV2Card::GetDetectedAESChannelPairs
virtual bool GetDetectedAESChannelPairs(NTV2AudioChannelPairs &outDetectedChannelPairs)
Answers which AES/EBU audio channel pairs are present on the device.
Definition: ntv2audio.cpp:1365
HEX0N
#define HEX0N(__x__, __n__)
Definition: debug.cpp:1175
kRegCh6Control
@ kRegCh6Control
Definition: ntv2publicinterface.h:540
ntv2konaflashprogram.h
Declares the CNTV2KonaFlashProgram class.
NTV2_RP188::IsValid
bool IsValid(void) const
Answers true if I'm valid, or false if I'm not valid.
Definition: ntv2publicinterface.h:6960
NTV2FrameBufferFormatToString
std::string NTV2FrameBufferFormatToString(const NTV2FrameBufferFormat inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:6988
CNTV2SignalRouter::Print
virtual std::ostream & Print(std::ostream &inOutStream, const bool inForRetailDisplay=false) const
Prints me in a human-readable format to the given output stream.
Definition: ntv2signalrouter.cpp:200
kRegXptSelectGroup9
@ kRegXptSelectGroup9
Definition: ntv2publicinterface.h:373
kRegSarekDNALow
#define kRegSarekDNALow
Definition: ntv2registersmb.h:109
kRegCh4Control
@ kRegCh4Control
Definition: ntv2publicinterface.h:383
CNTV2Card::WaitForOutputVerticalInterrupt
virtual bool WaitForOutputVerticalInterrupt(const NTV2Channel inChannel=NTV2_CHANNEL1, UWord inRepeatCount=1)
Efficiently sleeps the calling thread/process until the next one or more field (interlaced video) or ...
Definition: ntv2subscriptions.cpp:134
std
Definition: json.hpp:5362
NTV2_RP188
This struct replaces the old RP188_STRUCT.
Definition: ntv2publicinterface.h:6918
kRegSplitControl
@ kRegSplitControl
Definition: ntv2publicinterface.h:114
kRegFirstValidXptROMRegister
@ kRegFirstValidXptROMRegister
Definition: ntv2publicinterface.h:845
kRegXptSelectGroup24
@ kRegXptSelectGroup24
Definition: ntv2publicinterface.h:559
NTV2_AUDIO_EMBEDDED
@ NTV2_AUDIO_EMBEDDED
Obtain audio samples from the audio that's embedded in the video HANC.
Definition: ntv2enums.h:1993
kRegFlatMatte4Value
@ kRegFlatMatte4Value
Definition: ntv2publicinterface.h:664
FrameToTCListPair
pair< uint16_t, NTV2TimeCodeList > FrameToTCListPair
Definition: ntv2supportlogger.cpp:36
AJAExport
#define AJAExport
Definition: export.h:33
AUTOCIRCULATE_STATUS::GetStartFrame
uint16_t GetStartFrame(void) const
Definition: ntv2publicinterface.h:7441
AJA_SystemInfoTag_Path_UserHome
@ AJA_SystemInfoTag_Path_UserHome
Definition: info.h:45
NTV2VideoFormat
enum _NTV2VideoFormat NTV2VideoFormat
Identifies a particular video format.
kRegXptSelectGroup29
@ kRegXptSelectGroup29
Definition: ntv2publicinterface.h:564
kRegGlobalControlCh2
@ kRegGlobalControlCh2
Definition: ntv2publicinterface.h:527
kRegXptSelectGroup20
@ kRegXptSelectGroup20
Definition: ntv2publicinterface.h:502
FromRegNumSet
NTV2RegisterReads FromRegNumSet(const NTV2RegNumSet &inRegNumSet)
Definition: ntv2utils.cpp:8016
kRegXptSelectGroup4
@ kRegXptSelectGroup4
Definition: ntv2publicinterface.h:255
NTV2DeviceGetNumVideoChannels
ULWord NTV2DeviceGetNumVideoChannels(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:12464
getActiveFrameStr
static string getActiveFrameStr(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:160
CNTV2Card::GetSDIOutputAudioEnabled
virtual bool GetSDIOutputAudioEnabled(const NTV2Channel inSDIOutput, bool &outIsEnabled)
Answers with the current state of the audio output embedder for the given SDI output connector (speci...
Definition: ntv2audio.cpp:1566
kRegCh1ControlExtended
@ kRegCh1ControlExtended
Definition: ntv2publicinterface.h:285
ChannelToACStatusConstIter
ChannelToACStatus::const_iterator ChannelToACStatusConstIter
Definition: ntv2supportlogger.cpp:32
NTV2TimeCodeList
std::vector< NTV2_RP188 > NTV2TimeCodeList
An ordered sequence of zero or more NTV2_RP188 structures. An NTV2TCIndex enum value can be used as a...
Definition: ntv2publicinterface.h:6999
CNTV2Card::IsChannelEnabled
virtual bool IsChannelEnabled(const NTV2Channel inChannel, bool &outEnabled)
Answers whether or not the given FrameStore is enabled.
Definition: ntv2register.cpp:2122
kRegAud6Control
@ kRegAud6Control
Definition: ntv2publicinterface.h:606
ntv2rp188.h
Declares the CRP188 class. See SMPTE RP188 standard for details.
NTV2AudioLoopBackToString
std::string NTV2AudioLoopBackToString(const NTV2AudioLoopBack inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:5846
NTV2EveryFrameTaskMode
NTV2EveryFrameTaskMode
Describes the task mode state. See also: Sharing AJA Devices With Other Applications.
Definition: ntv2publicinterface.h:4393
true
#define true
Definition: ntv2devicefeatures.h:26
getActiveFrame
static ULWord getActiveFrame(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:150
kRegXptSelectGroup15
@ kRegXptSelectGroup15
Definition: ntv2publicinterface.h:428
CNTV2DriverInterface::GetDeviceID
virtual NTV2DeviceID GetDeviceID(void)
Definition: ntv2driverinterface.cpp:411
kRegCh1Control
@ kRegCh1Control
Definition: ntv2publicinterface.h:103
CNTV2Card::GetEveryFrameServices
virtual bool GetEveryFrameServices(NTV2EveryFrameTaskMode &outMode)
Retrieves the device's current "retail service" task mode.
Definition: ntv2register.cpp:184
CNTV2Card::GetAudioRate
virtual bool GetAudioRate(NTV2AudioRate &outRate, const NTV2AudioSystem inAudioSystem=NTV2_AUDIOSYSTEM_1)
Returns the current NTV2AudioRate for the given Audio System.
Definition: ntv2audio.cpp:226
CNTV2SupportLogger::CNTV2SupportLogger
CNTV2SupportLogger(CNTV2Card &card, NTV2SupportLoggerSections sections=NTV2_SupportLoggerSectionsAll)
Construct from CNTV2Card instance.
Definition: ntv2supportlogger.cpp:309
CNTV2Card::GetFrameRate
virtual bool GetFrameRate(NTV2FrameRate &outValue, NTV2Channel inChannel=NTV2_CHANNEL1)
Returns the AJA device's currently configured frame rate via its "value" parameter.
Definition: ntv2register.cpp:1022
GetAudioSamplesPerSecond
double GetAudioSamplesPerSecond(const NTV2AudioRate inAudioRate)
Returns the audio sample rate as a number of audio samples per second.
Definition: ntv2utils.cpp:3207
kRegCh2ControlExtended
@ kRegCh2ControlExtended
Definition: ntv2publicinterface.h:286
NTV2_MODE_INVALID
@ NTV2_MODE_INVALID
The invalid mode.
Definition: ntv2enums.h:1236
NTV2ChannelToString
std::string NTV2ChannelToString(const NTV2Channel inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:5792
kRegXptSelectGroup11
@ kRegXptSelectGroup11
Definition: ntv2publicinterface.h:314
NTV2AudioRateToString
std::string NTV2AudioRateToString(const NTV2AudioRate inValue, const bool inForRetailDisplay=false)
Definition: ntv2utils.cpp:5821
kRegSDITransmitControl
@ kRegSDITransmitControl
Definition: ntv2publicinterface.h:379
kRegAud2SourceSelect
@ kRegAud2SourceSelect
Definition: ntv2publicinterface.h:364
NTV2EmbeddedAudioInputToString
std::string NTV2EmbeddedAudioInputToString(const NTV2EmbeddedAudioInput inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:6765
NTV2_AUDIO_ANALOG
@ NTV2_AUDIO_ANALOG
Obtain audio samples from the device analog input(s), if available.
Definition: ntv2enums.h:1995
kRegCh5Control
@ kRegCh5Control
Definition: ntv2publicinterface.h:535
CNTV2KonaFlashProgram
Definition: ntv2konaflashprogram.h:47
CNTV2SupportLogger::LoadFromLog
virtual bool LoadFromLog(const std::string &inLogFilePath, const bool bForceLoad)
Definition: ntv2supportlogger.cpp:1014
NTV2_IS_INPUT_MODE
#define NTV2_IS_INPUT_MODE(__mode__)
Definition: ntv2enums.h:1240
MacAddr
Definition: ntv2konaflashprogram.h:29
aja::to_string
std::string to_string(bool val)
Definition: common.cpp:180
NTV2EmbeddedAudioInput
NTV2EmbeddedAudioInput
This enum value determines/states which SDI video input will be used to supply audio samples to an au...
Definition: ntv2enums.h:1953
AJALabelValuePairs
std::vector< AJALabelValuePair > AJALabelValuePairs
An ordered sequence of label/value pairs.
Definition: info.h:69
xHEX0N
#define xHEX0N(__x__, __n__)
Definition: ntv2publicinterface.h:5693
kRegOutputTimingControl
@ kRegOutputTimingControl
Definition: ntv2publicinterface.h:116
CNTV2SupportLogger::AddFooter
virtual void AddFooter(const std::string &sectionName, const std::string &sectionData)
Adds footer text to my log.
Definition: ntv2supportlogger.cpp:371
NTV2AudioSystem
NTV2AudioSystem
Used to identify an Audio System on an NTV2 device. See Audio System Operation for more information.
Definition: ntv2enums.h:3865
NTV2_AUDIO_RATE_INVALID
@ NTV2_AUDIO_RATE_INVALID
Definition: ntv2enums.h:1920
NTV2_IS_SUPPORTED_NTV2FrameRate
#define NTV2_IS_SUPPORTED_NTV2FrameRate(__r__)
Definition: ntv2enums.h:436
NTV2_AudioChannel1_2
@ NTV2_AudioChannel1_2
This selects audio channels 1 and 2 (Group 1 channels 1 and 2)
Definition: ntv2enums.h:3106
NTV2_SupportLoggerSectionInfo
@ NTV2_SupportLoggerSectionInfo
Definition: ntv2supportlogger.h:18
kRegXptSelectGroup18
@ kRegXptSelectGroup18
Definition: ntv2publicinterface.h:494
kRegXptSelectGroup23
@ kRegXptSelectGroup23
Definition: ntv2publicinterface.h:558
NTV2_FRAMESIZE_INVALID
@ NTV2_FRAMESIZE_INVALID
Definition: ntv2enums.h:2121
NTV2_MODE_DISPLAY
@ NTV2_MODE_DISPLAY
Playout (output) mode, which reads from device SDRAM.
Definition: ntv2enums.h:1232
NTV2ModeToString
std::string NTV2ModeToString(const NTV2Mode inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:6545
ChannelToPerFrameTCList
map< NTV2Channel, FrameToTCList > ChannelToPerFrameTCList
Definition: ntv2supportlogger.cpp:37
NTV2AudioSource
NTV2AudioSource
This enum value determines/states where an audio system will obtain its audio samples.
Definition: ntv2enums.h:1991
ntv2registerexpert.h
Declares the CNTV2RegisterExpert class.
SAREK_2022_2
#define SAREK_2022_2
Definition: ntv2registersmb.h:199
CNTV2MacDriverInterface::WriteRegister
virtual bool WriteRegister(const ULWord inRegNum, const ULWord inValue, const ULWord inMask=0xFFFFFFFF, const ULWord inShift=0)
Updates or replaces all or part of the 32-bit contents of a specific register (real or virtual) on th...
Definition: ntv2macdriverinterface.cpp:438
getMode
static NTV2Mode getMode(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:136
NTV2_SupportLoggerSectionAudio
@ NTV2_SupportLoggerSectionAudio
Definition: ntv2supportlogger.h:20
eFPGAVideoProc
@ eFPGAVideoProc
Definition: ntv2enums.h:3818
FrameToTCList
map< uint16_t, NTV2TimeCodeList > FrameToTCList
Definition: ntv2supportlogger.cpp:34
NTV2_IS_OUTPUT_MODE
#define NTV2_IS_OUTPUT_MODE(__mode__)
Definition: ntv2enums.h:1241
CNTV2DriverInterface::DriverGetBitFileInformation
virtual bool DriverGetBitFileInformation(BITFILE_INFO_STRUCT &outBitFileInfo, const NTV2BitFileType inBitFileType=NTV2_VideoProcBitFile)
Answers with the currently-installed bitfile information.
Definition: ntv2driverinterface.cpp:627
NTV2DeviceCanDoPCMControl
bool NTV2DeviceCanDoPCMControl(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:4431
kRegAud2Control
@ kRegAud2Control
Definition: ntv2publicinterface.h:363
BITFILE_INFO_STRUCT
Definition: ntv2publicinterface.h:4909
NTV2AudioBufferSize
NTV2AudioBufferSize
Represents the size of the audio buffer used by a device audio system for storing captured samples or...
Definition: ntv2enums.h:1900
kRegAud3Delay
@ kRegAud3Delay
Definition: ntv2publicinterface.h:431
kRegMixer3Coefficient
@ kRegMixer3Coefficient
Definition: ntv2publicinterface.h:659
kRegAud6Delay
@ kRegAud6Delay
Definition: ntv2publicinterface.h:669
CNTV2RegisterExpert::GetDisplayValue
static std::string GetDisplayValue(const uint32_t inRegNum, const uint32_t inRegValue, const NTV2DeviceID inDeviceID=DEVICE_ID_NOTFOUND)
Definition: ntv2registerexpert.cpp:4668
getBitfileDate
static bool getBitfileDate(CNTV2Card &device, string &outDateString, NTV2XilinxFPGA whichFPGA)
Definition: ntv2supportlogger.cpp:258
NTV2DeviceGetMaxAudioChannels
UWord NTV2DeviceGetMaxAudioChannels(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:9358
NTV2_IS_VALID_VIDEO_FORMAT
#define NTV2_IS_VALID_VIDEO_FORMAT(__f__)
Definition: ntv2enums.h:716
CNTV2SupportLogger::AppendToSection
virtual void AppendToSection(uint32_t section, const std::string &sectionData)
Appends arbitrary string data to my support log, after a given section.
Definition: ntv2supportlogger.cpp:349
NTV2SupportLoggerSections
NTV2SupportLoggerSections
Definition: ntv2supportlogger.h:16
AUTOCIRCULATE_STATUS::GetAudioSystem
NTV2AudioSystem GetAudioSystem(void) const
Definition: ntv2publicinterface.h:7456
AUTOCIRCULATE_STATUS::IsOutput
bool IsOutput(void) const
Definition: ntv2publicinterface.h:7546
kRegSarekDNAHi
#define kRegSarekDNAHi
Definition: ntv2registersmb.h:110
kRegVidProcXptControl
@ kRegVidProcXptControl
Definition: ntv2publicinterface.h:112
getPixelFormat
static NTV2PixelFormat getPixelFormat(CNTV2Card &device, const NTV2Channel inChannel)
Definition: ntv2supportlogger.cpp:129
NTV2AudioSystemToString
std::string NTV2AudioSystemToString(const NTV2AudioSystem inValue, const bool inCompactDisplay=false)
Definition: ntv2utils.cpp:5810
kRegAud7SourceSelect
@ kRegAud7SourceSelect
Definition: ntv2publicinterface.h:612
NTV2DeviceHasLPProductCode
bool NTV2DeviceHasLPProductCode(const NTV2DeviceID inDeviceID)
Definition: ntv2devicefeatures.hpp:7253
kRegGlobalControl
@ kRegGlobalControl
Definition: ntv2publicinterface.h:102
CNTV2SupportLogger::ToString
virtual std::string ToString(void) const
Definition: ntv2supportlogger.cpp:397
AJASystemInfo
Definition: info.h:78