AJA NTV2 SDK  17.5.0.1242
NTV2 SDK 17.5.0.1242
ntv2streampreview.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
9 #ifndef NTV2STREAMPREVIEW_H
10 #define NTV2STREAMPREVIEW_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 "ntv2streamgrabber.h"
22 #include "ntv2devicescanner.h"
23 #include "ajabase/pnp/pnp.h"
24 
25 
30 class NTV2StreamPreview : public QDialog
31 {
32  Q_OBJECT
33 
34  // Instance Methods
35  public:
36  NTV2StreamPreview (QWidget * parent = AJA_NULL, Qt::WindowFlags flags = Qt::WindowFlags());
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 fixedRefChanged (bool checked);
57 
58  // Instance Data
59  private:
60  QDialogButtonBox * mCloseBox;
61  QCheckBox * mCheckFixedReference;
62  QComboBox * mBoardChoiceCombo;
63  QButtonGroup * mInputButtonGroup;
64  AJAPreviewWidget * mVideoPreviewWidget;
65  AJAPnp mPnp;
66  QPixmap mPixmap;
67  int mTimerID;
68  NTV2StreamGrabber * mStreamGrabber;
69 
70 }; // class NTV2StreamPreview
71 
72 #endif // NTV2STREAMPREVIEW_H
AJAPnp
This is a platform-agnostic plug-and-play class that notifies a client when AJA devices are attached/...
Definition: pnp.h:50
ntv2streamgrabber.h
Header file for the NTV2StreamGrabber class.
AJAPnpMessage
AJAPnpMessage
Definition: pnp.h:22
NTV2StreamPreview
I am a QDialog that displays whatever video is present on the SDI inputs of an AJA streaming device....
Definition: ntv2streampreview.h:30
ntv2devicescanner.h
Declares the CNTV2DeviceScanner class.
NTV2StreamPreview::~NTV2StreamPreview
~NTV2StreamPreview()
Definition: ntv2streampreview.cpp:94
pnp.h
Declares the AJAPnp (plug-and-play) class.
AJA_NULL
#define AJA_NULL
Definition: ajatypes.h:199
ajapreviewwidget.h
NTV2StreamGrabber
A QThread that captures audio/video from NTV2-compatible AJA devices and uses Qt signals to emit ARGB...
Definition: ntv2streamgrabber.h:41
NTV2StreamPreview::NTV2StreamPreview
NTV2StreamPreview(QWidget *parent=NULL, Qt::WindowFlags flags=Qt::WindowFlags())
Definition: ntv2streampreview.cpp:28
AJAPreviewWidget
Definition: ajapreviewwidget.h:36