#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 |
Definition at line 17 of file GstQgcRenderTarget.h.
|
inline |
Definition at line 25 of file GstQgcRenderTarget.h.
References backend, egl, and GstQgc::OpenGL.
Referenced by sharesGlContext().
|
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.
|
friend |
References backend, GstQgc::currentRenderTarget(), GstQgc::toString(), and GstQgc::zeroCopyPathName().
| RenderBackend GstQgc::RenderTarget::backend = RenderBackend::Unknown |
Definition at line 19 of file GstQgcRenderTarget.h.
Referenced by GstQgc::currentRenderTarget(), gst_qgc_video_sink_bin_make_conversion_element(), isOpenGlOnEgl(), GStreamer::onMainWindowReady(), operator==, select_gpu_bin(), and sharesGlContext().
| 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().