From: maxd Date: Tue, 28 Feb 2017 17:27:59 +0000 (+0100) Subject: qsv: only main10 profile supported for HEVC 10b encode X-Git-Tag: 1.1.0~662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b92638f31984cab89a5de9b9557a8f463e1be13;p=handbrake qsv: only main10 profile supported for HEVC 10b encode --- diff --git a/libhb/h265_common.h b/libhb/h265_common.h index 26380e4ff..19cc7e895 100644 --- a/libhb/h265_common.h +++ b/libhb/h265_common.h @@ -14,11 +14,14 @@ // 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, }; diff --git a/libhb/qsv_common.c b/libhb/qsv_common.c index 6ce6be983..9cd54fb0b 100644 --- a/libhb/qsv_common.c +++ b/libhb/qsv_common.c @@ -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; }