Search in sources :

Example 11 with VideoEncoderCap

use of android.media.EncoderCapabilities.VideoEncoderCap in project android_packages_apps_Snap by LineageOS.

the class SettingsManager method getSupportedVideoEncoders.

private List<String> getSupportedVideoEncoders() {
    ArrayList<String> supported = new ArrayList<String>();
    String str = null;
    List<VideoEncoderCap> videoEncoders = EncoderCapabilities.getVideoEncoders();
    for (VideoEncoderCap videoEncoder : videoEncoders) {
        str = SettingTranslation.getVideoEncoder(videoEncoder.mCodec);
        if (str != null) {
            if (isCurrentVideoResolutionSupportedByEncoder(videoEncoder)) {
                supported.add(str);
            }
        }
    }
    return supported;
}
Also used : ArrayList(java.util.ArrayList) VideoEncoderCap(android.media.EncoderCapabilities.VideoEncoderCap)

Aggregations

VideoEncoderCap (android.media.EncoderCapabilities.VideoEncoderCap)11 Paint (android.graphics.Paint)6 AudioEncoderCap (android.media.EncoderCapabilities.AudioEncoderCap)6 LargeTest (android.test.suitebuilder.annotation.LargeTest)6 Intent (android.content.Intent)2 MediaRecorder (android.media.MediaRecorder)2 Uri (android.net.Uri)2 Bundle (android.os.Bundle)2 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 Point (android.graphics.Point)1 CameraInfo (android.hardware.Camera.CameraInfo)1 Location (android.location.Location)1 Range (android.util.Range)1 FileNotFoundException (java.io.FileNotFoundException)1