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

EGLImage with compressed texture data

Hi,

Looking at some of the earlier posts regarding using EGLImage. It is currently possible to create an EGLImage from an RGBA GraphicBuffer on ARM GPUs and then use it as texture via glEGLImageTargetTexture2DOES.

Just wondering is it possible to create EGLImage so that it could be used with a compressed texture format like ETC2, ASTC etc.

Thanks.

Parents
  • Hi Pete,

    Thanks for your response. I understand that currently EGLImage will not work with compressed formats since GrapghicBuffer does not understand any compressed formats. I was wondering what needs to change if such a use case has to be supported in future?

    I am thinking following need to change, please correct me if I miss something:

    1- Add new pixel format to GraphicBuffer so that it can be allocated with proper size for compressed formats

    2- Extend EGLImage so that it can accept GraphicBuffer with new pixel format

    3- Bind the EGLImage as texture via glEGLImageTargetTexture2DOEStexture and then upload compressed data via glCompressedSubImage2D()

    Thanks,

Reply
  • Hi Pete,

    Thanks for your response. I understand that currently EGLImage will not work with compressed formats since GrapghicBuffer does not understand any compressed formats. I was wondering what needs to change if such a use case has to be supported in future?

    I am thinking following need to change, please correct me if I miss something:

    1- Add new pixel format to GraphicBuffer so that it can be allocated with proper size for compressed formats

    2- Extend EGLImage so that it can accept GraphicBuffer with new pixel format

    3- Bind the EGLImage as texture via glEGLImageTargetTexture2DOEStexture and then upload compressed data via glCompressedSubImage2D()

    Thanks,

Children