зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e3c11d9eb1
Коммит
e4e830571f
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче