mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Use API 33 constants for DV levels
PiperOrigin-RevId: 588740855
This commit is contained in:
parent
be5b29d92d
commit
c014ba9d5f
1 changed files with 4 additions and 4 deletions
|
|
@ -1390,7 +1390,7 @@ public final class MediaCodecUtil {
|
||||||
if (levelString == null) {
|
if (levelString == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// TODO (Internal: b/179261323): use framework constants for levels 10 to 13.
|
// TODO (Internal: b/179261323): use framework constant for level 13.
|
||||||
switch (levelString) {
|
switch (levelString) {
|
||||||
case "01":
|
case "01":
|
||||||
return CodecProfileLevel.DolbyVisionLevelHd24;
|
return CodecProfileLevel.DolbyVisionLevelHd24;
|
||||||
|
|
@ -1411,11 +1411,11 @@ public final class MediaCodecUtil {
|
||||||
case "09":
|
case "09":
|
||||||
return CodecProfileLevel.DolbyVisionLevelUhd60;
|
return CodecProfileLevel.DolbyVisionLevelUhd60;
|
||||||
case "10":
|
case "10":
|
||||||
return 0x200;
|
return CodecProfileLevel.DolbyVisionLevelUhd120;
|
||||||
case "11":
|
case "11":
|
||||||
return 0x400;
|
return CodecProfileLevel.DolbyVisionLevel8k30;
|
||||||
case "12":
|
case "12":
|
||||||
return 0x800;
|
return CodecProfileLevel.DolbyVisionLevel8k60;
|
||||||
case "13":
|
case "13":
|
||||||
return 0x1000;
|
return 0x1000;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue