From 5b55041bb40ee1ca52f87a553a0fb150d822a2aa Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 27 Feb 2018 15:42:53 +0100 Subject: 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 --- omx/gstomxh265enc.c | 4 ++-- omx/gstomxh265utils.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/omx/gstomxh265enc.c b/omx/gstomxh265enc.c index a016cab..6076435 100644 --- a/omx/gstomxh265enc.c +++ b/omx/gstomxh265enc.c @@ -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: diff --git a/omx/gstomxh265utils.c b/omx/gstomxh265utils.c index e0045f8..5141bc4 100644 --- a/omx/gstomxh265utils.c +++ b/omx/gstomxh265utils.c @@ -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 } -- cgit v1.2.1