JeVois  1.22
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
Loading...
Searching...
No Matches
jevois::VideoDisplayBackendMALI Class Reference

#include <jevois/GPU/VideoDisplayBackendMALI.H>

Backend for VideoDisplay on JeVois-Pro host using MALI.

This class provides an interface used by VideoDisplayGL using Mali framebuffer + OpenGL-ES 3.2 (to be used on JeVois-Pro platform).

Definition at line 29 of file VideoDisplayBackendMALI.H.

Inheritance diagram for jevois::VideoDisplayBackendMALI:
Collaboration diagram for jevois::VideoDisplayBackendMALI:

Public Member Functions

 VideoDisplayBackendMALI ()
 Constructor.
 
virtual ~VideoDisplayBackendMALI ()
 Virtual destructor for safe inheritance, free resources.
 
virtual void init (unsigned short w, unsigned short h, bool fullscreen=false) override
 Initialize the underlying engine that will process events, create windows, etc.
 
virtual bool pollEvents (bool &shouldclose) override
 Poll events such as mouse movements, buttons, keyboard, joystick, and pass to VideoDisplay.
 
- Public Member Functions inherited from jevois::VideoDisplayBackend
 VideoDisplayBackend ()
 Constructor.
 
virtual ~VideoDisplayBackend ()
 Virtual destructor for safe inheritance, free resources.
 
virtual void newFrame ()
 Start a new frame and clear the window/framebuffer.
 
virtual void render ()
 Render the VideoDisplay graphics.
 
virtual void getWindowSize (unsigned short &w, unsigned short &h) const
 
EGLDisplay getDisplay () const
 Access our display.
 

Protected Attributes

fbdev_window itsWindow
 
- Protected Attributes inherited from jevois::VideoDisplayBackend
std::string const itsName
 
EGLDisplay itsDisplay = EGL_NO_DISPLAY
 
EGLConfig itsConfig = 0
 
EGLContext itsContext = EGL_NO_CONTEXT
 
EGLSurface itsSurface = 0
 

Additional Inherited Members

- Protected Member Functions inherited from jevois::VideoDisplayBackend
virtual void init (unsigned short w, unsigned short h, EGLNativeWindowType win)
 Initialize the underlying engine that will process events, create windows, etc.
 
virtual void uninit ()
 Un-initialize the underlying engine, close windows, etc.
 

Constructor & Destructor Documentation

◆ VideoDisplayBackendMALI()

jevois::VideoDisplayBackendMALI::VideoDisplayBackendMALI ( )

Constructor.

Definition at line 23 of file VideoDisplayBackendMALI.C.

◆ ~VideoDisplayBackendMALI()

jevois::VideoDisplayBackendMALI::~VideoDisplayBackendMALI ( )
virtual

Virtual destructor for safe inheritance, free resources.

Definition at line 28 of file VideoDisplayBackendMALI.C.

Member Function Documentation

◆ init()

void jevois::VideoDisplayBackendMALI::init ( unsigned short  w,
unsigned short  h,
bool  fullscreen = false 
)
overridevirtual

Initialize the underlying engine that will process events, create windows, etc.

The init starts with the given initial framebuffer size. Note that on MALI, size and fullscreen parameters are ignored and we always run full-screen at the native resolution of the framebuffer.

Implements jevois::VideoDisplayBackend.

Reimplemented in jevois::ImGuiBackendMALI.

Definition at line 35 of file VideoDisplayBackendMALI.C.

References h, and LINFO.

Referenced by jevois::ImGuiBackendMALI::init().

◆ pollEvents()

bool jevois::VideoDisplayBackendMALI::pollEvents ( bool &  shouldclose)
overridevirtual

Poll events such as mouse movements, buttons, keyboard, joystick, and pass to VideoDisplay.

Returns true if some events were received, which can be used to turn on mouse pointer and GUI. On MALI, there is no support for events at this level, and hence no support for a test to close.

Implements jevois::VideoDisplayBackend.

Reimplemented in jevois::ImGuiBackendMALI.

Definition at line 46 of file VideoDisplayBackendMALI.C.

Member Data Documentation

◆ itsWindow

fbdev_window jevois::VideoDisplayBackendMALI::itsWindow
protected

Definition at line 50 of file VideoDisplayBackendMALI.H.


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