A QThread that captures audio/video from NTV2-compatible AJA devices and uses Qt signals to emit ARGB video frames. To simplify things, I assume the input signal is YCbCr, and the input goes through a color space converter (CSC) to an ARGB FrameStore. I can also output 2 channels of Audio to the host audio system using Qt's QAudioOutput device.
More...
#include <ntv2streamgrabber.h>
|
void | newFrame (const QImage &inImage, const bool inClear) |
| This is signaled (called) when a new frame has been captured and is available for display. More...
|
|
void | newStatusString (const QString &inStatus) |
| This is signaled (called) when my status string changes. More...
|
|
A QThread that captures audio/video from NTV2-compatible AJA devices and uses Qt signals to emit ARGB video frames. To simplify things, I assume the input signal is YCbCr, and the input goes through a color space converter (CSC) to an ARGB FrameStore. I can also output 2 channels of Audio to the host audio system using Qt's QAudioOutput device.
Definition at line 41 of file ntv2streamgrabber.h.
◆ NTV2StreamGrabber()
NTV2StreamGrabber::NTV2StreamGrabber |
( |
QObject * |
pInParentObject = NULL | ) |
|
Constructs me.
- Parameters
-
[in] | pInParentObject | Optionally specifies my parent object. Defaults to NULL (no parent). |
Definition at line 31 of file ntv2streamgrabber.cpp.
◆ ~NTV2StreamGrabber()
NTV2StreamGrabber::~NTV2StreamGrabber |
( |
| ) |
|
|
virtual |
◆ CheckForValidInput()
bool NTV2StreamGrabber::CheckForValidInput |
( |
void |
| ) |
|
|
protected |
◆ GetColorSpaceFromInputSource()
◆ GetDeviceIndex()
UWord NTV2StreamGrabber::GetDeviceIndex |
( |
void |
| ) |
const |
◆ GetVideoFormatFromInputSource()
◆ IsInput3Gb()
◆ newFrame
void NTV2StreamGrabber::newFrame |
( |
const QImage & |
inImage, |
|
|
const bool |
inClear |
|
) |
| |
|
signal |
This is signaled (called) when a new frame has been captured and is available for display.
- Parameters
-
[in] | inImage | A QImage that contains the frame image. |
[in] | inClear | True if a redraw should take place – i.e., if the frame is the first of a valid video stream, or if there is currently no valid video. |
◆ newStatusString
void NTV2StreamGrabber::newStatusString |
( |
const QString & |
inStatus | ) |
|
|
signal |
This is signaled (called) when my status string changes.
- Parameters
-
[in] | inStatus | The QString containing the status message. |
◆ run()
void NTV2StreamGrabber::run |
( |
void |
| ) |
|
|
protectedvirtual |
◆ SetDeviceIndex()
void NTV2StreamGrabber::SetDeviceIndex |
( |
const UWord |
inDeviceIndex | ) |
|
Sets the AJA device to be used for capture.
- Parameters
-
[in] | inDeviceIndex | Specifies the zero-based index number of the device to be used. |
Definition at line 78 of file ntv2streamgrabber.cpp.
◆ SetFixedReference()
void NTV2StreamGrabber::SetFixedReference |
( |
bool |
fixed | ) |
|
|
inline |
◆ SetInputSource()
void NTV2StreamGrabber::SetInputSource |
( |
const NTV2InputSource |
inInputSource | ) |
|
Sets the input to be used for capture on the AJA device being used.
- Parameters
-
[in] | inInputSource | Specifies the input source to be used. |
Definition at line 64 of file ntv2streamgrabber.cpp.
◆ SetupInput()
bool NTV2StreamGrabber::SetupInput |
( |
void |
| ) |
|
|
protected |
◆ StopStream()
void NTV2StreamGrabber::StopStream |
( |
void |
| ) |
|
|
protected |
The documentation for this class was generated from the following files:
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2streampreview/ntv2streamgrabber.h
- /home/tcbuilder/buildAgent/work/df8e8cce5bebfd58/libajantv2/demos/ntv2streampreview/ntv2streamgrabber.cpp