I want to do tone-mapping of HDR10 on Android use OpenGL ES, the first thing is to get the frame data. On Android after video decoded by mediacodec, its data is on an external oes texture, I want to know what the internal format of the texture is when decoding hdr10 video.
Can I get 10bit data from this external oes texture, and if possible, how to handle the 10bit data in OpenGL ES (using float texture?).
I have tried to query the format of the texture, but failed, the value reported seems not correct. And so as the width and height of the texture.
glGetTexLevelParameteriv(GL_TEXTURE_EXTERNAL_OES, 0, GL_TEXTURE_INTERNAL_FORMAT, &format);