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;
}
Aggregations