summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2018-02-27 15:42:53 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2018-03-05 13:59:22 -0500
commit5b55041bb40ee1ca52f87a553a0fb150d822a2aa (patch)
tree534d94f1b2f5d0d830f95de1977e17d28a93d80c
parent4e9dca0761b05ba5b0ea6046a040cbc742f38e3e (diff)
downloadgst-omx-5b55041bb40ee1ca52f87a553a0fb150d822a2aa.tar.gz
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
-rw-r--r--omx/gstomxh265enc.c4
-rw-r--r--omx/gstomxh265utils.c5
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
}