omxh265: update 422 profile names

h265parse is gaining support for the format range extension profile
(bgo#793876).
Use the profile names defined in h265parse.

https://bugzilla.gnome.org/show_bug.cgi?id=793928
This commit is contained in:
Guillaume Desmottes 2018-02-27 15:42:53 +01:00 committed by Nicolas Dufresne
parent 4e9dca0761
commit 5b55041bb4
2 changed files with 5 additions and 4 deletions

View file

@ -568,10 +568,10 @@ gst_omx_h265_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port,
profile = "main-still-picture";
break;
case OMX_ALG_VIDEO_HEVCProfileMain422:
profile = "main422";
profile = "main-422";
break;
case OMX_ALG_VIDEO_HEVCProfileMain422_10:
profile = "main422-10";
profile = "main-422-10";
break;
#endif
default:

View file

@ -35,9 +35,10 @@ gst_omx_h265_utils_get_profile_from_str (const gchar * profile)
#ifdef USE_OMX_TARGET_ZYNQ_USCALE_PLUS
} else if (g_str_equal (profile, "main-still-picture")) {
return (OMX_VIDEO_HEVCPROFILETYPE) OMX_ALG_VIDEO_HEVCProfileMainStill;
} else if (g_str_equal (profile, "main422")) {
} else if (g_str_equal (profile, "main-422")) {
/* Not standard: 8 bits variation of main-422-10 */
return (OMX_VIDEO_HEVCPROFILETYPE) OMX_ALG_VIDEO_HEVCProfileMain422;
} else if (g_str_equal (profile, "main422-10")) {
} else if (g_str_equal (profile, "main-422-10")) {
return (OMX_VIDEO_HEVCPROFILETYPE) OMX_ALG_VIDEO_HEVCProfileMain422_10;
#endif
}