JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Core/VideoDisplayGL.H>
Video output to local screen.
This class provides accelerated OpenGL-ES display on JeVois-Pro platform. It only works on JeVois-Pro and creates fatal errors on other host or platform configs. Images are simply displayed on the local screen using OpenGL-ES.
Here is the basic theory of operation:
Definition at line 50 of file VideoDisplayGL.H.
Public Member Functions | |
VideoDisplayGL (size_t nbufs=2) | |
Constructor. | |
virtual | ~VideoDisplayGL () |
Virtual destructor for safe inheritance. | |
virtual void | setFormat (VideoMapping const &m) override |
Set the video format and frame rate, allocate the buffers. | |
virtual void | get (RawImage &img) override |
Get a pre-allocated image so that we can fill the pixel data and later send out using send() | |
virtual void | send (RawImage const &img) override |
Send an image out to display. | |
virtual void | streamOn () override |
Start streaming. | |
virtual void | abortStream () override |
Abort streaming. | |
virtual void | streamOff () override |
Stop streaming. | |
Public Member Functions inherited from jevois::VideoOutput | |
virtual | ~VideoOutput () |
Virtual destructor for safe inheritance. | |
Protected Attributes | |
std::vector< std::shared_ptr< VideoBuf > > | itsBuffers |
BoundedBuffer< RawImage, BlockingBehavior::Block, BlockingBehavior::Block > | itsImageQueue |
GPUimage | itsImage |
VideoDisplayBackendMALI | itsBackend |
std::atomic< bool > | itsStreaming |
jevois::VideoDisplayGL::VideoDisplayGL | ( | size_t | nbufs = 2 | ) |
Constructor.
Definition at line 27 of file VideoDisplayGL.C.
|
virtual |
Virtual destructor for safe inheritance.
Definition at line 63 of file VideoDisplayGL.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 137 of file VideoDisplayGL.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 76 of file VideoDisplayGL.C.
References jevois::RawImage::bufindex, LDEBUG, and LFATAL.
|
overridevirtual |
Send an image out to display.
Implements jevois::VideoOutput.
Definition at line 86 of file VideoDisplayGL.C.
References jevois::RawImage::bufindex, h, LDEBUG, and LFATAL.
|
overridevirtual |
Set the video format and frame rate, allocate the buffers.
Implements jevois::VideoOutput.
Definition at line 32 of file VideoDisplayGL.C.
References jevois::RawImage::buf, jevois::RawImage::bufindex, jevois::RawImage::fmt, jevois::RawImage::fps, jevois::RawImage::height, LDEBUG, jevois::VideoMapping::ofmt, jevois::VideoMapping::ofps, jevois::VideoMapping::oh, jevois::VideoMapping::osize(), jevois::VideoMapping::ow, and jevois::RawImage::width.
|
overridevirtual |
|
overridevirtual |
|
protected |
Definition at line 84 of file VideoDisplayGL.H.
|
protected |
Definition at line 79 of file VideoDisplayGL.H.
|
protected |
Definition at line 81 of file VideoDisplayGL.H.
|
protected |
Definition at line 80 of file VideoDisplayGL.H.
|
protected |
Definition at line 88 of file VideoDisplayGL.H.