JeVois
1.22
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. | |
virtual | ~VideoDisplay () |
Virtual destructor for safe inheritance. | |
void | setFormat (VideoMapping const &m) override |
Set the video format and frame rate, allocate the buffers. | |
void | get (RawImage &img) override |
Get a pre-allocated image so that we can fill the pixel data and later send out using send() | |
void | send (RawImage const &img) override |
Send an image out to display. | |
void | streamOn () override |
Start streaming. | |
void | abortStream () override |
Abort streaming. | |
void | streamOff () override |
Stop streaming. | |
Public Member Functions inherited from jevois::VideoOutput | |
virtual | ~VideoOutput () |
Virtual destructor for safe inheritance. | |
jevois::VideoDisplay::VideoDisplay | ( | char const * | displayname, |
size_t | nbufs = 2 |
||
) |
|
virtual |
Virtual destructor for safe inheritance.
Definition at line 171 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 186 of file VideoDisplay.C.
References LFATAL.
|
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.
|
overridevirtual |
Send an image out to display.
Implements jevois::VideoOutput.
Definition at line 180 of file VideoDisplay.C.
References LFATAL.
|
overridevirtual |
Set the video format and frame rate, allocate the buffers.
Implements jevois::VideoOutput.
Definition at line 174 of file VideoDisplay.C.
References LFATAL.
|
overridevirtual |
Stop streaming.
Implements jevois::VideoOutput.
Definition at line 189 of file VideoDisplay.C.
References LFATAL.
|
overridevirtual |
Start streaming.
Implements jevois::VideoOutput.
Definition at line 183 of file VideoDisplay.C.
References LFATAL.