openpilot/selfdrive/common/visionimg.h

28 lines
428 B
C
Raw Normal View History

#pragma once
#include "visionbuf.h"
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#else
#include <GLES3/gl3.h>
#endif
2020-01-17 12:01:02 -07:00
#ifdef QCOM
2020-01-17 12:01:02 -07:00
#include <EGL/egl.h>
#define EGL_EGLEXT_PROTOTYPES
2020-01-17 12:01:02 -07:00
#include <EGL/eglext.h>
#undef Status
#endif
2020-01-17 12:01:02 -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
};