AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
NTV2StreamGrabber Class Reference

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>

Inheritance diagram for NTV2StreamGrabber:
[legend]
Collaboration diagram for NTV2StreamGrabber:
[legend]

Signals

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...
 

Public Member Functions

 NTV2StreamGrabber (QObject *pInParentObject=NULL)
 Constructs me. More...
 
virtual ~NTV2StreamGrabber ()
 My destructor. More...
 
void SetInputSource (const NTV2InputSource inInputSource)
 Sets the input to be used for capture on the AJA device being used. More...
 
void SetDeviceIndex (const UWord inDeviceIndex)
 Sets the AJA device to be used for capture. More...
 
UWord GetDeviceIndex (void) const
 
void SetFixedReference (bool fixed)
 

Protected Member Functions

virtual void run (void)
 My thread function. More...
 
bool SetupInput (void)
 Configures my AJA device for capture. More...
 
void StopStream (void)
 Stops capturing. More...
 
bool CheckForValidInput (void)
 
NTV2VideoFormat GetVideoFormatFromInputSource (void)
 
NTV2LHIHDMIColorSpace GetColorSpaceFromInputSource (void)
 
bool IsInput3Gb (const NTV2InputSource inputSource)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NTV2StreamGrabber()

NTV2StreamGrabber::NTV2StreamGrabber ( QObject *  pInParentObject = NULL)

Constructs me.

Parameters
[in]pInParentObjectOptionally specifies my parent object. Defaults to NULL (no parent).

Definition at line 31 of file ntv2streamgrabber.cpp.

◆ ~NTV2StreamGrabber()

NTV2StreamGrabber::~NTV2StreamGrabber ( )
virtual

My destructor.

Definition at line 53 of file ntv2streamgrabber.cpp.

Member Function Documentation

◆ CheckForValidInput()

bool NTV2StreamGrabber::CheckForValidInput ( void  )
protected

Definition at line 457 of file ntv2streamgrabber.cpp.

◆ GetColorSpaceFromInputSource()

NTV2LHIHDMIColorSpace NTV2StreamGrabber::GetColorSpaceFromInputSource ( void  )
protected

Definition at line 534 of file ntv2streamgrabber.cpp.

◆ GetDeviceIndex()

UWord NTV2StreamGrabber::GetDeviceIndex ( void  ) const

Definition at line 90 of file ntv2streamgrabber.cpp.

◆ GetVideoFormatFromInputSource()

NTV2VideoFormat NTV2StreamGrabber::GetVideoFormatFromInputSource ( void  )
protected

Definition at line 513 of file ntv2streamgrabber.cpp.

◆ IsInput3Gb()

bool NTV2StreamGrabber::IsInput3Gb ( const NTV2InputSource  inputSource)
protected

Definition at line 547 of file ntv2streamgrabber.cpp.

◆ 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]inImageA QImage that contains the frame image.
[in]inClearTrue 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]inStatusThe QString containing the status message.

◆ run()

void NTV2StreamGrabber::run ( void  )
protectedvirtual

My thread function.

Definition at line 99 of file ntv2streamgrabber.cpp.

◆ SetDeviceIndex()

void NTV2StreamGrabber::SetDeviceIndex ( const UWord  inDeviceIndex)

Sets the AJA device to be used for capture.

Parameters
[in]inDeviceIndexSpecifies 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

Definition at line 69 of file ntv2streamgrabber.h.

◆ SetInputSource()

void NTV2StreamGrabber::SetInputSource ( const NTV2InputSource  inInputSource)

Sets the input to be used for capture on the AJA device being used.

Parameters
[in]inInputSourceSpecifies the input source to be used.

Definition at line 64 of file ntv2streamgrabber.cpp.

◆ SetupInput()

bool NTV2StreamGrabber::SetupInput ( void  )
protected

Configures my AJA device for capture.

Definition at line 354 of file ntv2streamgrabber.cpp.

◆ StopStream()

void NTV2StreamGrabber::StopStream ( void  )
protected

Stops capturing.

Definition at line 447 of file ntv2streamgrabber.cpp.


The documentation for this class was generated from the following files: