Many examples of mediacodec
use EXTERNAL surfacetexture
as the output of mediacodec
, my problem is can I use a 2D surfacetexture
?
Asked
Active
Viewed 421 times
0
-
Welcome to Stack Overflow! Show some code to see what you've tried so far. – Kalle Richter Jun 12 '16 at 10:36
1 Answers
2
The output of SurfaceTexture is always GL_TEXTURE_EXTERNAL_OES
, because it must accommodate a wide variety of color formats. The output of MediaCodec is usually YUV, not RGB, making it a prime example.

fadden
- 51,356
- 5
- 116
- 166