QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstQgc::RenderTarget Struct Reference

#include <GstQgcRenderTarget.h>

Public Member Functions

bool isOpenGlOnEgl () const
bool sharesGlContext () const noexcept

Public Attributes

RenderBackend backend = RenderBackend::Unknown
bool egl = false

Friends

bool operator== (const RenderTarget &, const RenderTarget &)=default

Detailed Description

Definition at line 17 of file GstQgcRenderTarget.h.

Member Function Documentation

◆ isOpenGlOnEgl()

bool GstQgc::RenderTarget::isOpenGlOnEgl ( ) const
inline

Definition at line 25 of file GstQgcRenderTarget.h.

References backend, egl, and GstQgc::OpenGL.

Referenced by sharesGlContext().

◆ sharesGlContext()

bool GstQgc::RenderTarget::sharesGlContext ( ) const
noexcept

gst-gl can share Qt's OpenGL context (GstGlContextBridge wraps an EGL or a GLX one), so GLMemory textures reach Qt directly. Qt's OpenGL on Linux and Android is always one of the two, even before it is known which.

Definition at line 92 of file GstQgcRenderTarget.cc.

References backend, isOpenGlOnEgl(), and GstQgc::OpenGL.

◆ operator==

bool operator== ( const RenderTarget & ,
const RenderTarget &  )
friend

Member Data Documentation

◆ backend

◆ egl

bool GstQgc::RenderTarget::egl = false

Qt's OpenGL is known to run on EGL (QGCRhiCapture::qtEglDisplay()), so GStreamer's EGLImages (DMABuf, AHardwareBuffer) can use its display. False for GLX, WGL and CGL, and while that isn't known yet (Android before the scene graph runs).

Definition at line 23 of file GstQgcRenderTarget.h.

Referenced by GstQgc::currentRenderTarget(), isOpenGlOnEgl(), and select_gpu_bin().


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