media: add dolby vision profile and level defines in CodecProfileLevel.
Bug:
Change-Id: I56adbaab6bf76929b607d3245cf1506da5508a5e
diff --git a/api/current.txt b/api/current.txt
index ed04a6f..5d875bf 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -20112,6 +20112,21 @@
field public static final int AVCProfileHigh422 = 32; // 0x20
field public static final int AVCProfileHigh444 = 64; // 0x40
field public static final int AVCProfileMain = 2; // 0x2
+ field public static final int DolbyVisionLevelFhd24 = 4; // 0x4
+ field public static final int DolbyVisionLevelFhd30 = 8; // 0x8
+ field public static final int DolbyVisionLevelFhd60 = 16; // 0x10
+ field public static final int DolbyVisionLevelHd24 = 1; // 0x1
+ field public static final int DolbyVisionLevelHd30 = 2; // 0x2
+ field public static final int DolbyVisionLevelUhd24 = 32; // 0x20
+ field public static final int DolbyVisionLevelUhd30 = 64; // 0x40
+ field public static final int DolbyVisionLevelUhd48 = 128; // 0x80
+ field public static final int DolbyVisionLevelUhd60 = 256; // 0x100
+ field public static final int DolbyVisionProfileDvavDen = 2; // 0x2
+ field public static final int DolbyVisionProfileDvavDer = 1; // 0x1
+ field public static final int DolbyVisionProfileDvheDen = 4; // 0x4
+ field public static final int DolbyVisionProfileDvheDer = 3; // 0x3
+ field public static final int DolbyVisionProfileDvheDtr = 5; // 0x5
+ field public static final int DolbyVisionProfileDvheStn = 6; // 0x6
field public static final int H263Level10 = 1; // 0x1
field public static final int H263Level20 = 2; // 0x2
field public static final int H263Level30 = 4; // 0x4
diff --git a/api/system-current.txt b/api/system-current.txt
index 825fe75..a235da0 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -21458,6 +21458,21 @@
field public static final int AVCProfileHigh422 = 32; // 0x20
field public static final int AVCProfileHigh444 = 64; // 0x40
field public static final int AVCProfileMain = 2; // 0x2
+ field public static final int DolbyVisionLevelFhd24 = 4; // 0x4
+ field public static final int DolbyVisionLevelFhd30 = 8; // 0x8
+ field public static final int DolbyVisionLevelFhd60 = 16; // 0x10
+ field public static final int DolbyVisionLevelHd24 = 1; // 0x1
+ field public static final int DolbyVisionLevelHd30 = 2; // 0x2
+ field public static final int DolbyVisionLevelUhd24 = 32; // 0x20
+ field public static final int DolbyVisionLevelUhd30 = 64; // 0x40
+ field public static final int DolbyVisionLevelUhd48 = 128; // 0x80
+ field public static final int DolbyVisionLevelUhd60 = 256; // 0x100
+ field public static final int DolbyVisionProfileDvavDen = 2; // 0x2
+ field public static final int DolbyVisionProfileDvavDer = 1; // 0x1
+ field public static final int DolbyVisionProfileDvheDen = 4; // 0x4
+ field public static final int DolbyVisionProfileDvheDer = 3; // 0x3
+ field public static final int DolbyVisionProfileDvheDtr = 5; // 0x5
+ field public static final int DolbyVisionProfileDvheStn = 6; // 0x6
field public static final int H263Level10 = 1; // 0x1
field public static final int H263Level20 = 2; // 0x2
field public static final int H263Level30 = 4; // 0x4
diff --git a/api/test-current.txt b/api/test-current.txt
index f096d56..01b2768 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -20120,6 +20120,21 @@
field public static final int AVCProfileHigh422 = 32; // 0x20
field public static final int AVCProfileHigh444 = 64; // 0x40
field public static final int AVCProfileMain = 2; // 0x2
+ field public static final int DolbyVisionLevelFhd24 = 4; // 0x4
+ field public static final int DolbyVisionLevelFhd30 = 8; // 0x8
+ field public static final int DolbyVisionLevelFhd60 = 16; // 0x10
+ field public static final int DolbyVisionLevelHd24 = 1; // 0x1
+ field public static final int DolbyVisionLevelHd30 = 2; // 0x2
+ field public static final int DolbyVisionLevelUhd24 = 32; // 0x20
+ field public static final int DolbyVisionLevelUhd30 = 64; // 0x40
+ field public static final int DolbyVisionLevelUhd48 = 128; // 0x80
+ field public static final int DolbyVisionLevelUhd60 = 256; // 0x100
+ field public static final int DolbyVisionProfileDvavDen = 2; // 0x2
+ field public static final int DolbyVisionProfileDvavDer = 1; // 0x1
+ field public static final int DolbyVisionProfileDvheDen = 4; // 0x4
+ field public static final int DolbyVisionProfileDvheDer = 3; // 0x3
+ field public static final int DolbyVisionProfileDvheDtr = 5; // 0x5
+ field public static final int DolbyVisionProfileDvheStn = 6; // 0x6
field public static final int H263Level10 = 1; // 0x1
field public static final int H263Level20 = 2; // 0x2
field public static final int H263Level30 = 4; // 0x4
diff --git a/media/java/android/media/MediaCodecInfo.java b/media/java/android/media/MediaCodecInfo.java
index 0fba992..f3baa5e 100644
--- a/media/java/android/media/MediaCodecInfo.java
+++ b/media/java/android/media/MediaCodecInfo.java
@@ -2563,6 +2563,25 @@
public static final int HEVCMainTierLevel62 = 0x1000000;
public static final int HEVCHighTierLevel62 = 0x2000000;
+ // from OMX_VIDEO_DOLBYVISIONPROFILETYPE
+ public static final int DolbyVisionProfileDvavDer = 0x1;
+ public static final int DolbyVisionProfileDvavDen = 0x2;
+ public static final int DolbyVisionProfileDvheDer = 0x3;
+ public static final int DolbyVisionProfileDvheDen = 0x4;
+ public static final int DolbyVisionProfileDvheDtr = 0x5;
+ public static final int DolbyVisionProfileDvheStn = 0x6;
+
+ // from OMX_VIDEO_DOLBYVISIONLEVELTYPE
+ public static final int DolbyVisionLevelHd24 = 0x1;
+ public static final int DolbyVisionLevelHd30 = 0x2;
+ public static final int DolbyVisionLevelFhd24 = 0x4;
+ public static final int DolbyVisionLevelFhd30 = 0x8;
+ public static final int DolbyVisionLevelFhd60 = 0x10;
+ public static final int DolbyVisionLevelUhd24 = 0x20;
+ public static final int DolbyVisionLevelUhd30 = 0x40;
+ public static final int DolbyVisionLevelUhd48 = 0x80;
+ public static final int DolbyVisionLevelUhd60 = 0x100;
+
/**
* Defined in the OpenMAX IL specs, depending on the type of media
* this can be OMX_VIDEO_AVCPROFILETYPE, OMX_VIDEO_H263PROFILETYPE,