]> granicus.if.org Git - handbrake/commitdiff
qsv: only main10 profile supported for HEVC 10b encode
authormaxd <maxim.d33@gmail.com>
Tue, 28 Feb 2017 17:27:59 +0000 (18:27 +0100)
committerBradley Sepos <bradley@bradleysepos.com>
Sun, 5 Mar 2017 17:06:11 +0000 (12:06 -0500)
libhb/h265_common.h
libhb/qsv_common.c

index 26380e4fffd64eab121059e14cd43be28055cd92..19cc7e895fdb3546cc83e068f5c63e733feeba93 100644 (file)
 // in HEVC, all "random access point" NAL units are keyframes
 #define HB_HEVC_NALU_KEYFRAME(nal_unit_type) (((nal_unit_type) >= 16) && ((nal_unit_type) <= 23))
 
-static const char * const      hb_h265_tier_names[] = { "auto", "main", "high", NULL, };
-static const char * const   hb_h265_profile_names_8bit[] = { "auto", "main", "mainstillpicture", NULL, };
-static const char * const   hb_h265_profile_names_10bit[] = { "auto", "main10", "main10-intra", NULL, };
-static const char * const   hb_h265_profile_names_12bit[] = { "auto", "main12", "main12-intra", NULL, };
-static const char * const   hb_h265_profile_names_16bit[] = { "auto", "main16", "main16-intra", NULL, };
+static const char * const      hb_h265_tier_names[]             = { "auto", "main", "high", NULL, };
+static const char * const   hb_h265_profile_names_8bit[]        = { "auto", "main", "mainstillpicture", NULL, };
+static const char * const   hb_h265_profile_names_10bit[]       = { "auto", "main10", "main10-intra", NULL, };
+#ifdef USE_QSV
+static const char * const   hb_h265_qsv_profile_names_10bit[]   = { "auto", "main10", NULL, };
+#endif
+static const char * const   hb_h265_profile_names_12bit[]       = { "auto", "main12", "main12-intra", NULL, };
+static const char * const   hb_h265_profile_names_16bit[]       = { "auto", "main16", "main16-intra", NULL, };
 static const char * const     hb_h265_level_names[] = { "auto", "1.0", "2.0", "2.1", "3.0", "3.1", "4.0", "4.1", "5.0", "5.1", "5.2", "6.0", "6.1", "6.2",  NULL, };
 static const int    const    hb_h265_level_values[] = {     -1,    30,    60,    63,    90,    93,   120,   123,   150,   153,   156,   180,   183,   186,     0, };
 
index 6ce6be983471960540f6e954c3d3bbe824446869..9cd54fb0beb620ef342237ad7b9ba9e40518bdbd 100644 (file)
@@ -1633,7 +1633,7 @@ const char* const* hb_qsv_profile_get_names(int encoder)
         case HB_VCODEC_QSV_H265_8BIT:
             return hb_h265_profile_names_8bit;
         case HB_VCODEC_QSV_H265_10BIT:
-            return hb_h265_profile_names_10bit;
+            return hb_h265_qsv_profile_names_10bit;
         default:
             return NULL;
     }