前言
本文梳理MediaCodec configure流程,基于7.0代码,这里只分析AVC和HEVC的视频硬解,流程图如下。
代码见:
frameworks/base/media/java/android/media/MediaCodec.java
frameworks/base/media/jni/android_media_MediaCodec.h
frameworks/base/media/jni/android_media_MediaCodec.cpp
frameworks/av/media/libstagefright/MediaCodec.cpp
frameworks/av/media/libstagefright/ACodec.cpp
frameworks/av/include/media/stagefright/OMXClient.h
frameworks/av/media/libstagefright/OMXClient.cpp
MediaCodec.java
public void configure(
@Nullable