[Android 10 source code] deeply understand MediaCodec hard decoding initialization

The hard decoding API in Android is implemented by MediaCodec step by step calling hardware. It is usually necessary to call VPU to decode. The following is a typical hard decoding initialization code. Of course, exception handling is also handled for better fault tolerance. According to MIME_TYPE (video/avc) creates a decoder and calls crea ...

Posted on Thu, 21 Oct 2021 14:19:44 -0400 by Avimander