FileDocCategorySizeDatePackage
DecoderCapabilities.javaAPI DocAndroid 5.1 API2692Thu Mar 12 22:22:30 GMT 2015android.media

DecoderCapabilities

public class DecoderCapabilities extends Object
{@hide} The DecoderCapabilities class is used to retrieve the types of the video and audio decoder(s) supported on a specific Android platform.

Fields Summary
Constructors Summary
private DecoderCapabilities()

Methods Summary
public static java.util.ListgetAudioDecoders()
Returns the list of audio decoder types

see
android.media.DecoderCapabilities.AudioDecoder

        List<AudioDecoder> decoderList = new ArrayList<AudioDecoder>();
        int nDecoders = native_get_num_audio_decoders();
        for (int i = 0; i < nDecoders; ++i) {
            decoderList.add(AudioDecoder.values()[native_get_audio_decoder_type(i)]);
        }
        return decoderList;
    
public static java.util.ListgetVideoDecoders()
Returns the list of video decoder types

see
android.media.DecoderCapabilities.VideoDecoder

        System.loadLibrary("media_jni");
        native_init();
    
        List<VideoDecoder> decoderList = new ArrayList<VideoDecoder>();
        int nDecoders = native_get_num_video_decoders();
        for (int i = 0; i < nDecoders; ++i) {
            decoderList.add(VideoDecoder.values()[native_get_video_decoder_type(i)]);
        }
        return decoderList;
    
private static final native intnative_get_audio_decoder_type(int index)

private static final native intnative_get_num_audio_decoders()

private static final native intnative_get_num_video_decoders()

private static final native intnative_get_video_decoder_type(int index)

private static final native voidnative_init()