{
switch (profile) {
case GST_AV1_PROFILE_0:
- return "0";
+ return "main";
case GST_AV1_PROFILE_1:
- return "1";
+ return "high";
case GST_AV1_PROFILE_2:
- return "2";
+ return "professional";
default:
break;
}
if (!profile)
return GST_AV1_PROFILE_UNDEFINED;
- if (g_strcmp0 (profile, "0") == 0)
+ if (g_strcmp0 (profile, "main") == 0)
return GST_AV1_PROFILE_0;
- else if (g_strcmp0 (profile, "1") == 0)
+ else if (g_strcmp0 (profile, "high") == 0)
return GST_AV1_PROFILE_1;
- else if (g_strcmp0 (profile, "2") == 0)
+ else if (g_strcmp0 (profile, "professional") == 0)
return GST_AV1_PROFILE_2;
return GST_AV1_PROFILE_UNDEFINED;
fail_unless_equals_int (width, 400);
fail_unless_equals_int (height, 300);
fail_unless_equals_int (depth, 8);
- fail_unless_equals_string (profile, "0");
+ fail_unless_equals_string (profile, "main");
gst_caps_unref (caps);
}