UWARG Computer Vision
Public Member Functions | List of all members
DeckLinkImport Class Reference

Module for extracting frames from DeckLink Video cards. More...

#include <decklink_import.h>

Inheritance diagram for DeckLinkImport:
Inheritance graph
Collaboration diagram for DeckLinkImport:
Collaboration graph

Public Member Functions

 DeckLinkImport (MetadataInput *reader, Camera &camera)
 
int startCapture ()
 
int stopCapture ()
 
int grabFrame (cv::Mat *frame)
 
virtual Framenext_frame ()
 
virtual std::string to_string ()
 String representation of the Importer.
 
- Public Member Functions inherited from ImageImport
 ImageImport (MetadataInput *reader, Camera &camera)
 
More...
 

Additional Inherited Members

- Protected Attributes inherited from ImageImport
MetadataInputreader
 
Cameracamera
 

Detailed Description

Module for extracting frames from DeckLink Video cards.

Reads Video frames and processes them into a OpenCV friendly format. The results are later used in the ImageImport class.

Notes

This should provide nothing more or less than the ability to control video devices, including but not limited by input source selection, initialization, format settings, and frame grab selection.

Constructor & Destructor Documentation

DeckLinkImport::DeckLinkImport ( MetadataInput reader,
Camera camera 
)

Creates a DeckLinkImport object

Member Function Documentation

int DeckLinkImport::grabFrame ( cv::Mat *  frame)

Instantaneously retrieves a frame from the video stream in OpenCV format.

Parameters
frameAllocated OpenCV frame (Mat) to dump the frame data into.
Returns
Status indicating whether the operation was successful or not.
virtual Frame* DeckLinkImport::next_frame ( )
virtual

Retrieves a frame from the processing queue in OpenCV format.

Returns
A frame from the video for further usage in further computations and analysis.

Implements ImageImport.

int DeckLinkImport::startCapture ( )

Begins capture. Creates a video stream which a frame may be grabbed from.

Returns
Status indicating whether the operation was successful or not.
int DeckLinkImport::stopCapture ( )

Stops capture and releases the device for use by other software.

Returns
Status indicating whether the operation was successful or not.

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