JeVois
1.17
JeVois Smart Embedded Machine Vision Toolkit
|
|
#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.
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... | |
![]() | |
virtual | ~VideoOutput () |
Virtual destructor for safe inheritance. More... | |
jevois::VideoDisplay::VideoDisplay | ( | char const * | displayname, |
size_t | nbufs = 2 |
||
) |
Constructor.
Definition at line 31 of file VideoDisplay.C.
|
virtual |
Virtual destructor for safe inheritance.
Definition at line 73 of file VideoDisplay.C.
References LERROR.
|
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.
|
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.
|
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.
|
overridevirtual |
Set the video format and frame rate, allocate the buffers.
Implements jevois::VideoOutput.
Definition at line 40 of file VideoDisplay.C.
References jevois::RawImage::buf, jevois::RawImage::bufindex, jevois::RawImage::fmt, jevois::RawImage::fps, jevois::RawImage::height, LDEBUG, and jevois::RawImage::width.
|
overridevirtual |
|
overridevirtual |