AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
ntv2qtpreview.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 #ifndef NTV2QTPREVIEW_H
10 #define NTV2QTPREVIEW_H
11 
12 
13 #include <QtCore>
14 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
15  #include <QtWidgets>
16 #else
17  #include <QtGui>
18 #endif
19 
20 #include "ajapreviewwidget.h"
21 #include "ntv2framegrabber.h"
22 #include "ntv2devicescanner.h"
23 #include "ajabase/pnp/pnp.h"
24 
25 
30 class NTV2QtPreview : public QDialog
31 {
32  Q_OBJECT
33 
34  // Instance Methods
35  public:
36  NTV2QtPreview (QWidget * parent = AJA_NULL, Qt::WindowFlags flags = Qt::WindowFlags());
37  ~NTV2QtPreview ();
38 
39  // Private Instance Methods
40  private:
41  void timerEvent (QTimerEvent * event);
42  void updateInputs (void);
43 
44  static void PnpCallback (AJAPnpMessage inMessage, void * pUserData);
45 
46  private slots:
52  void RequestDeviceChange (const int inDeviceIndexNum);
53 
54  void devicesChanged ();
55  void inputChanged (int id);
56  void withAudioChanged (int state);
57  void fixedRefChanged (bool checked);
58  void checkFor4kChanged (int state);
59 
60  // Instance Data
61  private:
62  QDialogButtonBox * mCloseBox;
63  QCheckBox * mWithAudioCheckBox;
64  QCheckBox * mCheckFor4kCheckBox;
65  QCheckBox * mCheckFixedReference;
66  QComboBox * mBoardChoiceCombo;
67  QButtonGroup * mInputButtonGroup;
68  AJAPreviewWidget * mVideoPreviewWidget;
69  AJAPnp mPnp;
70  QPixmap mPixmap;
71  int mTimerID;
72  NTV2FrameGrabber * mFrameGrabber;
73  #if defined (INCLUDE_AJACC)
74  QButtonGroup * mCaptionButtonGroup;
75  #endif // defined (INCLUDE_AJACC)
76 
77 }; // class NTV2QtPreview
78 
79 #endif // NTV2QTPREVIEW_H
AJAPnp
This is a platform-agnostic plug-and-play class that notifies a client when AJA devices are attached/...
Definition: pnp.h:51
NTV2QtPreview
I am a QDialog that displays whatever video is present on the SDI inputs of an AJA device....
Definition: ntv2qtpreview.h:30
NTV2QtPreview::NTV2QtPreview
NTV2QtPreview(QWidget *parent=NULL, Qt::WindowFlags flags=Qt::WindowFlags())
Definition: ntv2qtpreview.cpp:28
AJAPnpMessage
AJAPnpMessage
Definition: pnp.h:22
NTV2QtPreview::~NTV2QtPreview
~NTV2QtPreview()
Definition: ntv2qtpreview.cpp:136
ntv2devicescanner.h
Declares the CNTV2DeviceScanner class.
pnp.h
Declares the AJAPnp (plug-and-play) class.
AJA_NULL
#define AJA_NULL
Definition: ajatypes.h:190
ajapreviewwidget.h
NTV2FrameGrabber
A QThread that captures audio/video from NTV2-compatible AJA devices and uses Qt signals to emit ARGB...
Definition: ntv2framegrabber.h:46
AJAPreviewWidget
Definition: ajapreviewwidget.h:36
ntv2framegrabber.h
Header file for the NTV2FrameGrabber class.