Browse Source

[camera] Remove EGLDestroyImage

camera_next
Vitaliy Zarubin 1 year ago
parent
commit
11fc7a5422
  1. 1
      packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h
  2. 10
      packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp

1
packages/camera/camera_aurora/aurora/include/camera_aurora/texture_camera_egl_helper.h

@ -15,7 +15,6 @@ class TextureCameraEGLHelper
public:
static void EGLInit();
static EGLImageKHR EGLCreateImage(const void* handle, void* egl_display, void* egl_contex);
static void EGLDestroyImage(EGLImageKHR image);
};
#endif /* TEXTURE_CAMERA_EGL_HELPER_H */

10
packages/camera/camera_aurora/aurora/texture_camera_egl_helper.cpp

@ -8,14 +8,11 @@
#include <GLES2/gl2ext.h>
static PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR;
static PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR;
void TextureCameraEGLHelper::EGLInit()
{
eglCreateImageKHR = reinterpret_cast<PFNEGLCREATEIMAGEKHRPROC>(
eglGetProcAddress("eglCreateImageKHR"));
eglDestroyImageKHR = reinterpret_cast<PFNEGLDESTROYIMAGEKHRPROC>(
eglGetProcAddress("eglDestroyImageKHR"));
}
EGLImageKHR TextureCameraEGLHelper::EGLCreateImage(const void *handle, void *egl_display, void *egl_context)
@ -28,10 +25,3 @@ EGLImageKHR TextureCameraEGLHelper::EGLCreateImage(const void *handle, void *egl
(EGLClientBuffer) handle,
eglImgAttrs);
}
void TextureCameraEGLHelper::EGLDestroyImage(EGLImageKHR image)
{
auto display = PlatformMethods::GetEGLDisplay();
eglDestroyImageKHR(display, image);
}

Loading…
Cancel
Save