test: pbutils: Add check for high throughput scc.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/645>
This commit is contained in:
He Junyan 2020-04-28 21:27:36 +08:00
parent 1781718a71
commit 5bb8bdf90d

View file

@ -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;