This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use of EGL_IMAGE_PRESERVED_KHR in eglCreateImageKHR.

Hi,

I am trying to create a sample application where i am trying to use a EGLImage as texture. The EGLImage is created from a native pixmap using eglCreateImageKHR.

Most of the open source sample codes available over net  using eglCreateImageKHR has the last parameter(image attribute list) set to

NULL/EGL_IMAGE_PRESERVED_KHR is set to EGL_FALSE.

My query is what is the use of EGL_IMAGE_PRESERVED_KHR attribute and what is the difference b/w setting this attribute to EGL_FALSE and EGL_TRUE

and in which scenarios should i set this attribute to EGL_TRUE.

Thanks and Regards,

Prabal Kumar Ghosh

 

Parents
  • The specification states the following:

      If the value of attribute EGL_IMAGE_PRESERVED_KHR is EGL_FALSE (the

      default), then all pixel data values associated with <buffer> will be

      undefined after eglCreateImageKHR returns.

      If the value of attribute EGL_IMAGE_PRESERVED_KHR is EGL_TRUE, then all

      pixel data values associated with <buffer> are preserved.

    Thanks.

Reply
  • The specification states the following:

      If the value of attribute EGL_IMAGE_PRESERVED_KHR is EGL_FALSE (the

      default), then all pixel data values associated with <buffer> will be

      undefined after eglCreateImageKHR returns.

      If the value of attribute EGL_IMAGE_PRESERVED_KHR is EGL_TRUE, then all

      pixel data values associated with <buffer> are preserved.

    Thanks.

Children