Skip to content Skip to sidebar Skip to footer

How To Real-timely Render Image Data(yuv420sp) Decoded By Mediacodec To Surfaceview On Android?

MediaCodec has a limitation FPS of decoding, I want to break that, so I need to render frames by myself, instead of internal feature of MediaCodec. I assume that only RGB565 can be

Solution 1:

You don't need to produce RGB for display. You can use OpenGL with an appropriate shader instead, this saves a lot of time.

But if you really want to convert NV21 frames to RGB as fast as possible, consider renderscript.

Post a Comment for "How To Real-timely Render Image Data(yuv420sp) Decoded By Mediacodec To Surfaceview On Android?"