• Matthieu Bouron's avatar
    lavc/mediacodec: refactor ff_AMediaCodecList_getCodecByType · e452abc5
    Matthieu Bouron authored
    Allows to select a codec (encoder or decoder) only if it supports a
    specific profile.
    
    Adds ff_AMediaCodecProfile_getProfileFromAVCodecContext to convert an
    AVCodecContext profile to a MediaCodec profile. It only supports H264
    for now.
    
    The codepath using MediaCodecList.findDecoderForFormat() (Android >= 5.0)
    has been dropped as this method does not allow to select a decoder
    compatible with a specific profile.
    e452abc5
mediacodec_wrapper.h 5.48 KB