JeVois  1.17
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
jevois::VideoDisplayGUI Class Reference

#include <jevois/Core/VideoDisplayGUI.H>

Video output to local screen with basic GUI.

This class provides accelerated OpenGL-ES display on JeVois-Pro, using Dear-ImGui for a simple graphical interface.

Definition at line 36 of file VideoDisplayGUI.H.

Inheritance diagram for jevois::VideoDisplayGUI:
Collaboration diagram for jevois::VideoDisplayGUI:

Public Member Functions

 VideoDisplayGUI (std::shared_ptr< GUIhelper > helper, size_t nbufs=2)
 Constructor. More...
 
virtual ~VideoDisplayGUI ()
 Virtual destructor for safe inheritance. More...
 
virtual void setFormat (VideoMapping const &m) override
 Set the video format and frame rate, allocate the buffers. More...
 
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() More...
 
virtual void send (RawImage const &img) override
 Send an image out to display. More...
 
virtual void streamOn () override
 Start streaming. More...
 
virtual void abortStream () override
 Abort streaming. More...
 
virtual void streamOff () override
 Stop streaming. More...
 
- Public Member Functions inherited from jevois::VideoOutput
virtual ~VideoOutput ()
 Virtual destructor for safe inheritance. More...
 

Constructor & Destructor Documentation

◆ VideoDisplayGUI()

jevois::VideoDisplayGUI::VideoDisplayGUI ( std::shared_ptr< GUIhelper helper,
size_t  nbufs = 2 
)

Constructor.

Definition at line 27 of file VideoDisplayGUI.C.

◆ ~VideoDisplayGUI()

jevois::VideoDisplayGUI::~VideoDisplayGUI ( )
virtual

Virtual destructor for safe inheritance.

Definition at line 65 of file VideoDisplayGUI.C.

References LERROR.

Member Function Documentation

◆ abortStream()

void jevois::VideoDisplayGUI::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 116 of file VideoDisplayGUI.C.

◆ get()

void jevois::VideoDisplayGUI::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 78 of file VideoDisplayGUI.C.

References jevois::RawImage::bufindex, LDEBUG, and LFATAL.

◆ send()

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

Send an image out to display.

Implements jevois::VideoOutput.

Definition at line 88 of file VideoDisplayGUI.C.

References jevois::RawImage::bufindex, h, LDEBUG, and LFATAL.

◆ setFormat()

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

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

Implements jevois::VideoOutput.

Definition at line 34 of file VideoDisplayGUI.C.

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

◆ streamOff()

void jevois::VideoDisplayGUI::streamOff ( )
overridevirtual

Stop streaming.

Implements jevois::VideoOutput.

Definition at line 120 of file VideoDisplayGUI.C.

◆ streamOn()

void jevois::VideoDisplayGUI::streamOn ( )
overridevirtual

Start streaming.

Implements jevois::VideoOutput.

Definition at line 112 of file VideoDisplayGUI.C.


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