val decoder = MediaCodec.createDecoderByType(mimeType)
val format = MediaFormat.createVideoFormat(mimeType, width, height)
decoder.configure(format, surface, null, 0)
decoder.start()
is there any other way to get bitmap from decoded frames without surface.
Surface is used for decoding raw H264.
is there any other way to get bitmap from decoded frames without surface.