JeVois  1.5
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 31 of file VideoDisplay.C.

Referenced by streamOff().

◆ ~VideoDisplay()

jevois::VideoDisplay::~VideoDisplay ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 73 of file VideoDisplay.C.

References LERROR.

Referenced by streamOff().

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

Referenced by streamOff().

◆ get()

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.

Referenced by streamOff().

◆ send()

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

Send an image out to display.

Implements jevois::VideoOutput.

Definition at line 100 of file VideoDisplay.C.

References jevois::RawImage::buf, jevois::RawImage::bufindex, jevois::RawImage::fmt, jevois::RawImage::height, LDEBUG, LFATAL, and jevois::RawImage::width.

Referenced by streamOff().

◆ setFormat()

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

◆ streamOff()

void jevois::VideoDisplay::streamOff ( )
overridevirtual

Stop streaming.

Implements jevois::VideoOutput.

Definition at line 160 of file VideoDisplay.C.

References abortStream(), get(), LERROR, LFATAL, send(), setFormat(), streamOn(), VideoDisplay(), and ~VideoDisplay().

◆ streamOn()

void jevois::VideoDisplay::streamOn ( )
overridevirtual

Start streaming.

Implements jevois::VideoOutput.

Definition at line 152 of file VideoDisplay.C.

Referenced by streamOff().


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