Bug 1778393 - show HW decoder profile/level support info. r=azebrowski,geckoview-reviewers,owlish

Differential Revision: https://phabricator.services.mozilla.com/D164723
This commit is contained in:
John Lin 2023-03-07 22:16:50 +00:00
Родитель e3c11d9eb1
Коммит e4e830571f
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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) {