]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h265_profile_level.c
avcodec: Move all AVCodecParser.split functions to remove_extradata_bsf
[ffmpeg] / libavcodec / h265_profile_level.c
index 126f8dbc2a086d17dbfc1685763a82bf5f0d0c62..7ff9681f65e83adb74b2c405f1844afd79f102d1 100644 (file)
@@ -47,6 +47,8 @@ static const H265ProfileDescriptor h265_profiles[] = {
     //   |  |  |  10bit |  |  | intra  |    |     | FormatCapabilityFactor
     { "Monochrome", //  |  |  |  |  |  |    |     |     |     |   |
       4, 0, 2, 1, 1, 1, 1, 1, 1, 0, 0, 1,  667,  733, 1.000, 1.0, 6 },
+    { "Monochrome 10",
+      4, 0, 2, 1, 1, 0, 1, 1, 1, 0, 0, 1,  833,  917, 1.250, 1.0, 6 },
     { "Monochrome 12",
       4, 0, 2, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1000, 1100, 1.500, 1.0, 6 },
     { "Monochrome 16",
@@ -56,13 +58,15 @@ static const H265ProfileDescriptor h265_profiles[] = {
     { "Screen-Extended Main",
       9, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1000, 1100, 1.500, 1.0, 7 },
     { "Main 10",
-      2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1000, 1100, 1.875, 1.0, 6 },
+      2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 1000, 1100, 1.875, 1.0, 6 },
     { "Screen-Extended Main 10",
       9, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1000, 1100, 1.875, 1.0, 7 },
     { "Main 12",
       4, 0, 2, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1500, 1650, 2.250, 1.0, 6 },
     { "Main Still Picture",
       3, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1000, 1100, 1.500, 1.0, 6 },
+    { "Main 10 Still Picture",
+      2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1000, 1100, 1.875, 1.0, 6 },
     { "Main 4:2:2 10",
       4, 0, 2, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1667, 1833, 2.500, 0.5, 6 },
     { "Main 4:2:2 12",
@@ -116,18 +120,6 @@ static const H265ProfileDescriptor h265_profiles[] = {
 };
 
 
-const H265LevelDescriptor *ff_h265_get_level(int level_idc)
-{
-    int i;
-
-    for (i = 0; i < FF_ARRAY_ELEMS(h265_levels); i++) {
-        if (h265_levels[i].level_idc == level_idc)
-            return &h265_levels[i];
-    }
-
-    return NULL;
-}
-
 const H265ProfileDescriptor *ff_h265_get_profile(const H265RawProfileTierLevel *ptl)
 {
     int i;
@@ -184,7 +176,7 @@ const H265LevelDescriptor *ff_h265_guess_level(const H265RawProfileTierLevel *pt
         profile = NULL;
     if (!profile) {
         // Default to using multiplication factors for Main profile.
-        profile = &h265_profiles[3];
+        profile = &h265_profiles[4];
     }
 
     pic_size = width * height;