JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
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

◆ VideoDisplay()

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

Constructor.

Definition at line 167 of file VideoDisplay.C.

References LFATAL.

◆ ~VideoDisplay()

jevois::VideoDisplay::~VideoDisplay ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 171 of file VideoDisplay.C.

References LERROR.

Member Function Documentation

◆ abortStream()

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 186 of file VideoDisplay.C.

References LFATAL.

◆ get()

void jevois::VideoDisplay::get ( 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 177 of file VideoDisplay.C.

References LFATAL.

◆ send()

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

Send an image out to display.

Implements jevois::VideoOutput.

Definition at line 180 of file VideoDisplay.C.

References LFATAL.

◆ setFormat()

void jevois::VideoDisplay::setFormat ( VideoMapping const &  m)
overridevirtual

Set the video format and frame rate, allocate the buffers.

Implements jevois::VideoOutput.

Definition at line 174 of file VideoDisplay.C.

References LFATAL.

◆ streamOff()

void jevois::VideoDisplay::streamOff ( )
overridevirtual

Stop streaming.

Implements jevois::VideoOutput.

Definition at line 189 of file VideoDisplay.C.

References LFATAL.

◆ streamOn()

void jevois::VideoDisplay::streamOn ( )
overridevirtual

Start streaming.

Implements jevois::VideoOutput.

Definition at line 183 of file VideoDisplay.C.

References LFATAL.


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