On android 4.1 and above, I intend to get the list of colorFormats supported by a particular MediaCodec.
Android 4.3 and above provides an API (public MediaCodecInfo getCodecInfo ()) to get the MediaCodecInfo associated with a particular instance of MediaCodec. Furthermore, I am able to call getCapabilitiesForType on this MediaCodecInfo object which will fetch me associated MediaCodecInfo.CodecCapabilities object, on which I call API colorFormats to get the list of color-formats for my MediaCodec object.
Now, I'm not able to execute above sequence of calls on android 4.1 and 4.2 simply because the MediaCodec API getCodecInfo() is added in API level 18.
Could anyone suggest how can I achieve the same OR any other method to get the list of color-formats on android 4.1 and 4.2.
0 comments:
Post a Comment