Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame^] | 1 | #ifndef ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_ |
| 2 | #define ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_ |
| 3 | |
| 4 | #include <EGL/egl.h> |
| 5 | #include <EGL/eglext.h> |
| 6 | |
| 7 | namespace android { |
| 8 | namespace dvr { |
| 9 | |
| 10 | // Create an EGLImage with texture storage defined by the given format and |
| 11 | // usage flags. |
| 12 | // For example, to create an RGBA texture for rendering to, specify: |
| 13 | // format = HAL_PIXEL_FORMAT_RGBA_8888; |
| 14 | // usage = GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_HW_RENDER; |
| 15 | EGLImageKHR CreateEglImage(EGLDisplay dpy, int width, int height, int format, |
| 16 | int usage); |
| 17 | |
| 18 | } // namespace dvr |
| 19 | } // namespace android |
| 20 | |
| 21 | #endif // ANDROID_DVR_GRAPHICS_EGL_IMAGE_H_ |