对于Android Multimedia 来说,无可避免要使用的MediaCodec 支持的Codec List,本文章目的是理清MediaCodecList 是怎么产生的?怎么查看当前MediaCodec 支持的Codec List?
以Android S 为code base 进行分析。
一、Codec Service
系统起来后,Codec Service 也已经ready.
可以在播放MM 下,android console 下 敲 top 看看
Tasks: 431 total, 2 running, 429 sleeping, 0 stopped, 0 zombie
Mem: 3151492K total, 2757436K used, 394056K free, 7932K buffers
Swap: 1572860K total, 723712K used, 849148K free, 1168260K cached
400%cpu 99%user 3%nice 59%sys 231%idle 1%iow 0%irq 8%sirq 0%host
PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS
504 audioserver 20 0 69M 13M 4.1M S 77.0 0.4 177:50.14 android.hardware.audio.service
550 system -2 -8 3.1G 37M 32M