2021-01-10 21:28:11 -07:00
|
|
|
#pragma once
|
2021-01-11 07:52:58 -07:00
|
|
|
|
2021-01-08 06:54:25 -07:00
|
|
|
#include "visionbuf.h"
|
2021-01-11 07:52:58 -07:00
|
|
|
|
|
|
|
#ifdef __APPLE__
|
2021-05-08 23:15:17 -06:00
|
|
|
#include <OpenGL/gl3.h>
|
2021-01-11 07:52:58 -07:00
|
|
|
#else
|
2021-05-08 23:15:17 -06:00
|
|
|
#include <GLES3/gl3.h>
|
2021-01-11 07:52:58 -07:00
|
|
|
#endif
|
2020-01-17 12:01:02 -07:00
|
|
|
|
2020-02-02 00:36:50 -07:00
|
|
|
#ifdef QCOM
|
2020-01-17 12:01:02 -07:00
|
|
|
#include <EGL/egl.h>
|
2021-01-11 07:52:58 -07:00
|
|
|
#define EGL_EGLEXT_PROTOTYPES
|
2020-01-17 12:01:02 -07:00
|
|
|
#include <EGL/eglext.h>
|
|
|
|
#undef Status
|
2020-02-02 00:36:50 -07:00
|
|
|
#endif
|
2020-01-17 12:01:02 -07:00
|
|
|
|
2021-01-11 07:52:58 -07:00
|
|
|
class EGLImageTexture {
|
|
|
|
public:
|
|
|
|
EGLImageTexture(const VisionBuf *buf);
|
|
|
|
~EGLImageTexture();
|
|
|
|
GLuint frame_tex = 0;
|
|
|
|
#ifdef QCOM
|
|
|
|
void *private_handle = nullptr;
|
|
|
|
EGLImageKHR img_khr = 0;
|
|
|
|
#endif
|
|
|
|
};
|