From 5bb8bdf90de64984725e02bf7068f053a9d43388 Mon Sep 17 00:00:00 2001 From: He Junyan Date: Tue, 28 Apr 2020 21:27:36 +0800 Subject: [PATCH] test: pbutils: Add check for high throughput scc. Part-of: --- tests/check/libs/pbutils.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/check/libs/pbutils.c b/tests/check/libs/pbutils.c index 434ea4f090..ea1092beb6 100644 --- a/tests/check/libs/pbutils.c +++ b/tests/check/libs/pbutils.c @@ -1283,6 +1283,21 @@ GST_START_TEST (test_pb_utils_h265_profiles) profile = gst_codec_utils_h265_get_profile (profile_tier_level, sizeof (profile_tier_level)); fail_unless_equals_string (profile, "scalable-main-444"); + + fill_h265_profile (profile_tier_level, 11, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1); + profile = gst_codec_utils_h265_get_profile (profile_tier_level, + sizeof (profile_tier_level)); + fail_unless_equals_string (profile, "screen-extended-main-444-10"); + + fill_h265_profile (profile_tier_level, 11, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1); + profile = gst_codec_utils_h265_get_profile (profile_tier_level, + sizeof (profile_tier_level)); + fail_unless_equals_string (profile, "screen-extended-main-444"); + + fill_h265_profile (profile_tier_level, 11, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1); + profile = gst_codec_utils_h265_get_profile (profile_tier_level, + sizeof (profile_tier_level)); + fail_unless_equals_string (profile, "screen-extended-high-throughput-444-14"); } GST_END_TEST;