3 ANDROID_image_native_buffer
7 EGL_ANDROID_image_native_buffer
17 Jesse Hall, Google Inc. (jessehall 'at' google.com)
25 Version 1, November 28, 2012
35 EGL_KHR_image_base is required.
37 This extension is written against the wording of the EGL 1.2
42 This extension enables using an Android window buffer (struct
43 ANativeWindowBuffer) as an EGLImage source.
49 New Procedures and Functions
55 Accepted by the <target> parameter of eglCreateImageKHR:
57 EGL_NATIVE_BUFFER_ANDROID 0x3140
59 Changes to Chapter 3 of the EGL 1.2 Specification (EGL Functions and Errors)
61 Add to section 2.5.1 "EGLImage Specification" (as defined by the
62 EGL_KHR_image_base specification), in the description of
65 "Values accepted for <target> are listed in Table aaa, below.
67 +----------------------------+-----------------------------------------+
69 +----------------------------+-----------------------------------------+
70 | EGL_NATIVE_BUFFER_ANDROID | Used for ANativeWindowBuffer objects |
71 +----------------------------+-----------------------------------------+
72 Table aaa. Legal values for eglCreateImageKHR <target> parameter
76 If <target> is EGL_NATIVE_BUFFER_ANDROID, <dpy> must be a valid display,
77 <ctx> must be EGL_NO_CONTEXT, <buffer> must be a pointer to a valid
78 ANativeWindowBuffer object (cast into the type EGLClientBuffer), and
79 attributes other than EGL_IMAGE_PRESERVED_KHR are ignored."
81 Add to the list of error conditions for eglCreateImageKHR:
83 "* If <target> is EGL_NATIVE_BUFFER_ANDROID and <buffer> is not a
84 pointer to a valid ANativeWindowBuffer, the error EGL_BAD_PARAMETER
87 * If <target> is EGL_NATIVE_BUFFER_ANDROID and <ctx> is not
88 EGL_NO_CONTEXT, the error EGL_BAD_CONTEXT is generated.
90 * If <target> is EGL_NATIVE_BUFFER_ANDROID and <buffer> was created
91 with properties (format, usage, dimensions, etc.) not supported by
92 the EGL implementation, the error EGL_BAD_PARAMETER is generated."
96 1. Should this extension define what combinations of ANativeWindowBuffer
97 properties implementations are required to support?
101 The requirements have evolved over time and will continue to change with
102 future Android releases. The minimum requirements for a given Android
103 version should be documented by that version.
107 #1 (Jesse Hall, November 28, 2012)