Loading core/api/current.txt +60 −0 Original line number Diff line number Diff line Loading @@ -22920,6 +22920,65 @@ package android.media { field public static final int AC4Profile11 = 514; // 0x202 field public static final int AC4Profile21 = 1026; // 0x402 field public static final int AC4Profile22 = 1028; // 0x404 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band0 = 513; // 0x201 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band1 = 514; // 0x202 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band2 = 516; // 0x204 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band3 = 520; // 0x208 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band0 = 257; // 0x101 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band1 = 258; // 0x102 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band2 = 260; // 0x104 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band3 = 264; // 0x108 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band0 = 2049; // 0x801 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band1 = 2050; // 0x802 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band2 = 2052; // 0x804 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band3 = 2056; // 0x808 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band0 = 1025; // 0x401 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band1 = 1026; // 0x402 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band2 = 1028; // 0x404 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band3 = 1032; // 0x408 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band0 = 8193; // 0x2001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band1 = 8194; // 0x2002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band2 = 8196; // 0x2004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band3 = 8200; // 0x2008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band0 = 4097; // 0x1001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band1 = 4098; // 0x1002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band2 = 4100; // 0x1004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band3 = 4104; // 0x1008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band0 = 32769; // 0x8001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band1 = 32770; // 0x8002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band2 = 32772; // 0x8004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band3 = 32776; // 0x8008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band0 = 16385; // 0x4001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band1 = 16386; // 0x4002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band2 = 16388; // 0x4004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band3 = 16392; // 0x4008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band0 = 131073; // 0x20001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band1 = 131074; // 0x20002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band2 = 131076; // 0x20004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band3 = 131080; // 0x20008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band0 = 65537; // 0x10001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band1 = 65538; // 0x10002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band2 = 65540; // 0x10004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band3 = 65544; // 0x10008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band0 = 524289; // 0x80001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band1 = 524290; // 0x80002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band2 = 524292; // 0x80004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band3 = 524296; // 0x80008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band0 = 262145; // 0x40001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band1 = 262146; // 0x40002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band2 = 262148; // 0x40004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band3 = 262152; // 0x40008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band0 = 2097153; // 0x200001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band1 = 2097154; // 0x200002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band2 = 2097156; // 0x200004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band3 = 2097160; // 0x200008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band0 = 1048577; // 0x100001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band1 = 1048578; // 0x100002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band2 = 1048580; // 0x100004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band3 = 1048584; // 0x100008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10 = 1; // 0x1 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10HDR10 = 4096; // 0x1000 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10HDR10Plus = 8192; // 0x2000 field public static final int AV1Level2 = 1; // 0x1 field public static final int AV1Level21 = 2; // 0x2 field public static final int AV1Level22 = 4; // 0x4 Loading Loading @@ -23770,6 +23829,7 @@ package android.media { field public static final String MIMETYPE_TEXT_CEA_708 = "text/cea-708"; field public static final String MIMETYPE_TEXT_SUBRIP = "application/x-subrip"; field public static final String MIMETYPE_TEXT_VTT = "text/vtt"; field @FlaggedApi("android.media.codec.apv_support") public static final String MIMETYPE_VIDEO_APV = "video/apv"; field public static final String MIMETYPE_VIDEO_AV1 = "video/av01"; field public static final String MIMETYPE_VIDEO_AVC = "video/avc"; field public static final String MIMETYPE_VIDEO_DOLBY_VISION = "video/dolby-vision"; media/java/android/media/MediaCodecInfo.java +260 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static android.media.codec.Flags.FLAG_HLG_EDITING; import static android.media.codec.Flags.FLAG_IN_PROCESS_SW_AUDIO_CODEC; import static android.media.codec.Flags.FLAG_NULL_OUTPUT_SURFACE; import static android.media.codec.Flags.FLAG_REGION_OF_INTEREST; import static android.media.codec.Flags.FLAG_APV_SUPPORT; import static android.media.MediaCodec.GetFlag; import android.annotation.FlaggedApi; Loading Loading @@ -4496,6 +4497,265 @@ public final class MediaCodecInfo { @SuppressLint("AllUpper") public static final int AC4Level4 = 0x10; // Profiles and levels/bands for APV Codec, corresponding to the definitions in // "Advanced Professional Video", 10.1.3 Profiles, 10.1.4 Levels and Bands // found at https://www.ietf.org/archive/id/draft-lim-apv-02.html /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10 = 0x01; /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 * with HDR10. */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10HDR10 = 0x1000; /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 * with HDR10Plus. */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10HDR10Plus = 0x2000; // For APV Levels, the numerical values are constructed as follows: // ((0x100 << (level_num - 1)) | (1 << band)) // where: // - "level_num" is the APV Level numbered consecutively // (i.e., Level 1 == 1, Level 1.1 == 2, etc.) // - "band" is the APV Band /** APV Codec Level 1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band0 = 0x101; /** APV Codec Level 1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band1 = 0x102; /** APV Codec Level 1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band2 = 0x104; /** APV Codec Level 1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band3 = 0x108; /** APV Codec Level 1.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band0 = 0x201; /** APV Codec Level 1.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band1 = 0x202; /** APV Codec Level 1.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band2 = 0x204; /** APV Codec Level 1.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band3 = 0x208; /** APV Codec Level 2, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band0 = 0x401; /** APV Codec Level 2, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band1 = 0x402; /** APV Codec Level 2, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band2 = 0x404; /** APV Codec Level 2, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band3 = 0x408; /** APV Codec Level 2.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band0 = 0x801; /** APV Codec Level 2.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band1 = 0x802; /** APV Codec Level 2.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band2 = 0x804; /** APV Codec Level 2.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band3 = 0x808; /** APV Codec Level 3, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band0 = 0x1001; /** APV Codec Level 3, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band1 = 0x1002; /** APV Codec Level 3, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band2 = 0x1004; /** APV Codec Level 3, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band3 = 0x1008; /** APV Codec Level 3.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band0 = 0x2001; /** APV Codec Level 3.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band1 = 0x2002; /** APV Codec Level 3.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band2 = 0x2004; /** APV Codec Level 3.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band3 = 0x2008; /** APV Codec Level 4, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band0 = 0x4001; /** APV Codec Level 4, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band1 = 0x4002; /** APV Codec Level 4, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band2 = 0x4004; /** APV Codec Level 4, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band3 = 0x4008; /** APV Codec Level 4.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band0 = 0x8001; /** APV Codec Level 4.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band1 = 0x8002; /** APV Codec Level 4.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band2 = 0x8004; /** APV Codec Level 4.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band3 = 0x8008; /** APV Codec Level 5, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band0 = 0x10001; /** APV Codec Level 5, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band1 = 0x10002; /** APV Codec Level 5, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band2 = 0x10004; /** APV Codec Level 5, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band3 = 0x10008; /** APV Codec Level 5.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band0 = 0x20001; /** APV Codec Level 5.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band1 = 0x20002; /** APV Codec Level 5.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band2 = 0x20004; /** APV Codec Level 5.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band3 = 0x20008; /** APV Codec Level 6, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band0 = 0x40001; /** APV Codec Level 6, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band1 = 0x40002; /** APV Codec Level 6, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band2 = 0x40004; /** APV Codec Level 6, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band3 = 0x40008; /** APV Codec Level 6.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band0 = 0x80001; /** APV Codec Level 6.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band1 = 0x80002; /** APV Codec Level 6.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band2 = 0x80004; /** APV Codec Level 6.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band3 = 0x80008; /** APV Codec Level 7, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band0 = 0x100001; /** APV Codec Level 7, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band1 = 0x100002; /** APV Codec Level 7, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band2 = 0x100004; /** APV Codec Level 7, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band3 = 0x100008; /** APV Codec Level 7.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band0 = 0x200001; /** APV Codec Level 7.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band1 = 0x200002; /** APV Codec Level 7.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band2 = 0x200004; /** APV Codec Level 7.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band3 = 0x200008; /** * The profile of the media content. Depending on the type of media this can be * one of the profile values defined in this class. Loading media/java/android/media/MediaFormat.java +3 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.media; import static android.media.codec.Flags.FLAG_IN_PROCESS_SW_AUDIO_CODEC; import static android.media.codec.Flags.FLAG_REGION_OF_INTEREST; import static android.media.codec.Flags.FLAG_APV_SUPPORT; import static com.android.media.codec.flags.Flags.FLAG_CODEC_IMPORTANCE; import static com.android.media.codec.flags.Flags.FLAG_LARGE_AUDIO_FRAME; Loading Loading @@ -157,6 +158,8 @@ import java.util.stream.Collectors; public final class MediaFormat { public static final String MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8"; public static final String MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9"; @FlaggedApi(FLAG_APV_SUPPORT) public static final String MIMETYPE_VIDEO_APV = "video/apv"; public static final String MIMETYPE_VIDEO_AV1 = "video/av01"; public static final String MIMETYPE_VIDEO_AVC = "video/avc"; public static final String MIMETYPE_VIDEO_HEVC = "video/hevc"; Loading Loading
core/api/current.txt +60 −0 Original line number Diff line number Diff line Loading @@ -22920,6 +22920,65 @@ package android.media { field public static final int AC4Profile11 = 514; // 0x202 field public static final int AC4Profile21 = 1026; // 0x402 field public static final int AC4Profile22 = 1028; // 0x404 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band0 = 513; // 0x201 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band1 = 514; // 0x202 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band2 = 516; // 0x204 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel11Band3 = 520; // 0x208 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band0 = 257; // 0x101 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band1 = 258; // 0x102 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band2 = 260; // 0x104 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel1Band3 = 264; // 0x108 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band0 = 2049; // 0x801 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band1 = 2050; // 0x802 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band2 = 2052; // 0x804 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel21Band3 = 2056; // 0x808 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band0 = 1025; // 0x401 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band1 = 1026; // 0x402 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band2 = 1028; // 0x404 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel2Band3 = 1032; // 0x408 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band0 = 8193; // 0x2001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band1 = 8194; // 0x2002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band2 = 8196; // 0x2004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel31Band3 = 8200; // 0x2008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band0 = 4097; // 0x1001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band1 = 4098; // 0x1002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band2 = 4100; // 0x1004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel3Band3 = 4104; // 0x1008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band0 = 32769; // 0x8001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band1 = 32770; // 0x8002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band2 = 32772; // 0x8004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel41Band3 = 32776; // 0x8008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band0 = 16385; // 0x4001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band1 = 16386; // 0x4002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band2 = 16388; // 0x4004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel4Band3 = 16392; // 0x4008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band0 = 131073; // 0x20001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band1 = 131074; // 0x20002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band2 = 131076; // 0x20004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel51Band3 = 131080; // 0x20008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band0 = 65537; // 0x10001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band1 = 65538; // 0x10002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band2 = 65540; // 0x10004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel5Band3 = 65544; // 0x10008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band0 = 524289; // 0x80001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band1 = 524290; // 0x80002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band2 = 524292; // 0x80004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel61Band3 = 524296; // 0x80008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band0 = 262145; // 0x40001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band1 = 262146; // 0x40002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band2 = 262148; // 0x40004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel6Band3 = 262152; // 0x40008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band0 = 2097153; // 0x200001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band1 = 2097154; // 0x200002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band2 = 2097156; // 0x200004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel71Band3 = 2097160; // 0x200008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band0 = 1048577; // 0x100001 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band1 = 1048578; // 0x100002 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band2 = 1048580; // 0x100004 field @FlaggedApi("android.media.codec.apv_support") public static final int APVLevel7Band3 = 1048584; // 0x100008 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10 = 1; // 0x1 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10HDR10 = 4096; // 0x1000 field @FlaggedApi("android.media.codec.apv_support") public static final int APVProfile422_10HDR10Plus = 8192; // 0x2000 field public static final int AV1Level2 = 1; // 0x1 field public static final int AV1Level21 = 2; // 0x2 field public static final int AV1Level22 = 4; // 0x4 Loading Loading @@ -23770,6 +23829,7 @@ package android.media { field public static final String MIMETYPE_TEXT_CEA_708 = "text/cea-708"; field public static final String MIMETYPE_TEXT_SUBRIP = "application/x-subrip"; field public static final String MIMETYPE_TEXT_VTT = "text/vtt"; field @FlaggedApi("android.media.codec.apv_support") public static final String MIMETYPE_VIDEO_APV = "video/apv"; field public static final String MIMETYPE_VIDEO_AV1 = "video/av01"; field public static final String MIMETYPE_VIDEO_AVC = "video/avc"; field public static final String MIMETYPE_VIDEO_DOLBY_VISION = "video/dolby-vision";
media/java/android/media/MediaCodecInfo.java +260 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static android.media.codec.Flags.FLAG_HLG_EDITING; import static android.media.codec.Flags.FLAG_IN_PROCESS_SW_AUDIO_CODEC; import static android.media.codec.Flags.FLAG_NULL_OUTPUT_SURFACE; import static android.media.codec.Flags.FLAG_REGION_OF_INTEREST; import static android.media.codec.Flags.FLAG_APV_SUPPORT; import static android.media.MediaCodec.GetFlag; import android.annotation.FlaggedApi; Loading Loading @@ -4496,6 +4497,265 @@ public final class MediaCodecInfo { @SuppressLint("AllUpper") public static final int AC4Level4 = 0x10; // Profiles and levels/bands for APV Codec, corresponding to the definitions in // "Advanced Professional Video", 10.1.3 Profiles, 10.1.4 Levels and Bands // found at https://www.ietf.org/archive/id/draft-lim-apv-02.html /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10 = 0x01; /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 * with HDR10. */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10HDR10 = 0x1000; /** * APV codec profile 422-10 as per IETF lim-apv-02, 10.1.3.1.1 * with HDR10Plus. */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVProfile422_10HDR10Plus = 0x2000; // For APV Levels, the numerical values are constructed as follows: // ((0x100 << (level_num - 1)) | (1 << band)) // where: // - "level_num" is the APV Level numbered consecutively // (i.e., Level 1 == 1, Level 1.1 == 2, etc.) // - "band" is the APV Band /** APV Codec Level 1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band0 = 0x101; /** APV Codec Level 1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band1 = 0x102; /** APV Codec Level 1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band2 = 0x104; /** APV Codec Level 1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel1Band3 = 0x108; /** APV Codec Level 1.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band0 = 0x201; /** APV Codec Level 1.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band1 = 0x202; /** APV Codec Level 1.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band2 = 0x204; /** APV Codec Level 1.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel11Band3 = 0x208; /** APV Codec Level 2, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band0 = 0x401; /** APV Codec Level 2, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band1 = 0x402; /** APV Codec Level 2, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band2 = 0x404; /** APV Codec Level 2, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel2Band3 = 0x408; /** APV Codec Level 2.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band0 = 0x801; /** APV Codec Level 2.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band1 = 0x802; /** APV Codec Level 2.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band2 = 0x804; /** APV Codec Level 2.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel21Band3 = 0x808; /** APV Codec Level 3, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band0 = 0x1001; /** APV Codec Level 3, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band1 = 0x1002; /** APV Codec Level 3, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band2 = 0x1004; /** APV Codec Level 3, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel3Band3 = 0x1008; /** APV Codec Level 3.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band0 = 0x2001; /** APV Codec Level 3.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band1 = 0x2002; /** APV Codec Level 3.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band2 = 0x2004; /** APV Codec Level 3.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel31Band3 = 0x2008; /** APV Codec Level 4, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band0 = 0x4001; /** APV Codec Level 4, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band1 = 0x4002; /** APV Codec Level 4, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band2 = 0x4004; /** APV Codec Level 4, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel4Band3 = 0x4008; /** APV Codec Level 4.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band0 = 0x8001; /** APV Codec Level 4.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band1 = 0x8002; /** APV Codec Level 4.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band2 = 0x8004; /** APV Codec Level 4.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel41Band3 = 0x8008; /** APV Codec Level 5, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band0 = 0x10001; /** APV Codec Level 5, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band1 = 0x10002; /** APV Codec Level 5, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band2 = 0x10004; /** APV Codec Level 5, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel5Band3 = 0x10008; /** APV Codec Level 5.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band0 = 0x20001; /** APV Codec Level 5.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band1 = 0x20002; /** APV Codec Level 5.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band2 = 0x20004; /** APV Codec Level 5.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel51Band3 = 0x20008; /** APV Codec Level 6, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band0 = 0x40001; /** APV Codec Level 6, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band1 = 0x40002; /** APV Codec Level 6, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band2 = 0x40004; /** APV Codec Level 6, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel6Band3 = 0x40008; /** APV Codec Level 6.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band0 = 0x80001; /** APV Codec Level 6.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band1 = 0x80002; /** APV Codec Level 6.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band2 = 0x80004; /** APV Codec Level 6.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel61Band3 = 0x80008; /** APV Codec Level 7, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band0 = 0x100001; /** APV Codec Level 7, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band1 = 0x100002; /** APV Codec Level 7, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band2 = 0x100004; /** APV Codec Level 7, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel7Band3 = 0x100008; /** APV Codec Level 7.1, Band 0 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band0 = 0x200001; /** APV Codec Level 7.1, Band 1 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band1 = 0x200002; /** APV Codec Level 7.1, Band 2 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band2 = 0x200004; /** APV Codec Level 7.1, Band 3 as per IETF lim-apv-02, 10.1.4 */ @SuppressLint("AllUpper") @FlaggedApi(FLAG_APV_SUPPORT) public static final int APVLevel71Band3 = 0x200008; /** * The profile of the media content. Depending on the type of media this can be * one of the profile values defined in this class. Loading
media/java/android/media/MediaFormat.java +3 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.media; import static android.media.codec.Flags.FLAG_IN_PROCESS_SW_AUDIO_CODEC; import static android.media.codec.Flags.FLAG_REGION_OF_INTEREST; import static android.media.codec.Flags.FLAG_APV_SUPPORT; import static com.android.media.codec.flags.Flags.FLAG_CODEC_IMPORTANCE; import static com.android.media.codec.flags.Flags.FLAG_LARGE_AUDIO_FRAME; Loading Loading @@ -157,6 +158,8 @@ import java.util.stream.Collectors; public final class MediaFormat { public static final String MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8"; public static final String MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9"; @FlaggedApi(FLAG_APV_SUPPORT) public static final String MIMETYPE_VIDEO_APV = "video/apv"; public static final String MIMETYPE_VIDEO_AV1 = "video/av01"; public static final String MIMETYPE_VIDEO_AVC = "video/avc"; public static final String MIMETYPE_VIDEO_HEVC = "video/hevc"; Loading