QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstEglHelpers.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/qglobal.h>
4
5#if defined(QGC_HAS_GST_DMABUF_GPU_PATH) || defined(QGC_HAS_GST_AHARDWAREBUFFER_GPU_PATH)
6
7#include <EGL/egl.h>
8#include <EGL/eglext.h>
9#include <GLES2/gl2.h>
10#include <GLES2/gl2ext.h>
11
12class QOpenGLContext;
13class QRhi;
14
17namespace GstEglHelpers {
18
21QOpenGLContext* bindRhiContext(QRhi& rhi);
22
25EGLDisplay renderDisplay(QOpenGLContext* qtCtx, EGLDisplay fallback);
26
29bool displaySupportsExtension(EGLDisplay display, const char* extension);
30
32void resetExtensionCache();
33
35PFNGLEGLIMAGETARGETTEXTURE2DOESPROC imageTargetTexture2D() noexcept;
36PFNEGLDESTROYIMAGEKHRPROC destroyImageKHR() noexcept;
37
38} // namespace GstEglHelpers
39
40#endif // QGC_HAS_GST_DMABUF_GPU_PATH || QGC_HAS_GST_AHARDWAREBUFFER_GPU_PATH