From e4e830571f4a696e7d4dfd591047c8bc63c9dc69 Mon Sep 17 00:00:00 2001 From: John Lin Date: Tue, 7 Mar 2023 22:16:50 +0000 Subject: [PATCH] Bug 1778393 - show HW decoder profile/level support info. r=azebrowski,geckoview-reviewers,owlish Differential Revision: https://phabricator.services.mozilla.com/D164723 --- .../gecko/util/HardwareCodecCapabilityUtils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareCodecCapabilityUtils.java b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareCodecCapabilityUtils.java index ba317e9b484c..b59ec2d57e91 100644 --- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareCodecCapabilityUtils.java +++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareCodecCapabilityUtils.java @@ -197,6 +197,16 @@ public final class HardwareCodecCapabilityUtils { for (final int colorFormat : capabilities.colorFormats) { Log.v(LOGTAG, " Color: 0x" + Integer.toHexString(colorFormat)); } + if (Build.VERSION.SDK_INT >= 24) { + for (final MediaCodecInfo.CodecProfileLevel pl : capabilities.profileLevels) { + Log.v( + LOGTAG, + " Profile: 0x" + + Integer.toHexString(pl.profile) + + "/Level=0x" + + Integer.toHexString(pl.level)); + } + } for (final int supportedColorFormat : supportedColorList) { for (final int codecColorFormat : capabilities.colorFormats) { if (codecColorFormat == supportedColorFormat) {