JeVois  1.1
JeVois Smart Embedded Machine Vision Toolkit
jevois::VideoDisplay Class Reference

#include <jevois/Core/VideoDisplay.H>

Video output to local screen.

This class is useful for debugging machine vision code on a desktop computer as opposed to the JeVois hardware. Images are simply displayed on the local screen. Engine instantiates a VideoDisplay in place of Gadget if the provided Gadget device name is empty.

Definition at line 34 of file VideoDisplay.H.

Inheritance diagram for jevois::VideoDisplay:
Collaboration diagram for jevois::VideoDisplay:

Public Member Functions

 VideoDisplay (char const *displayname, size_t nbufs=2)
 Constructor. More...
 
virtual ~VideoDisplay ()
 Virtual destructor for safe inheritance. More...
 
void setFormat (VideoMapping const &m) override
 Set the video format and frame rate, allocate the buffers. More...
 
void get (RawImage &img) override
 Get a pre-allocated image so that we can fill the pixel data and later send out using send() More...
 
void send (RawImage const &img) override
 Send an image out to display. More...
 
void streamOn () override
 Start streaming. More...
 
void abortStream () override
 Abort streaming. More...
 
void streamOff () override
 Stop streaming. More...
 
- Public Member Functions inherited from jevois::VideoOutput
virtual ~VideoOutput ()
 Virtual destructor for safe inheritance. More...
 

Constructor & Destructor Documentation

jevois::VideoDisplay::VideoDisplay ( char const *  displayname,
size_t  nbufs = 2 
)

Constructor.

Definition at line 31 of file VideoDisplay.C.

jevois::VideoDisplay::~VideoDisplay ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 73 of file VideoDisplay.C.

References LERROR.

Member Function Documentation

void jevois::VideoDisplay::abortStream ( )
overridevirtual

Abort streaming.

This only cancels future get() and done() calls, one should still call streamOff() to turn off streaming.

Implements jevois::VideoOutput.

Definition at line 156 of file VideoDisplay.C.

void jevois::VideoDisplay::get ( jevois::RawImage img)
overridevirtual

Get a pre-allocated image so that we can fill the pixel data and later send out using send()

Implements jevois::VideoOutput.

Definition at line 92 of file VideoDisplay.C.

References jevois::RawImage::bufindex, and LDEBUG.

void jevois::VideoDisplay::send ( jevois::RawImage const &  img)
overridevirtual
void jevois::VideoDisplay::streamOff ( )
overridevirtual

Stop streaming.

Implements jevois::VideoOutput.

Definition at line 160 of file VideoDisplay.C.

void jevois::VideoDisplay::streamOn ( )
overridevirtual

Start streaming.

Implements jevois::VideoOutput.

Definition at line 152 of file VideoDisplay.C.


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