diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-03-13 16:15:30 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-04-26 10:07:54 +0200 |
commit | b644699c8d84734655eb7b36217dd5c6c90fc002 (patch) | |
tree | d251b929817aca3e32515d6335140dc4ed43aaed /omx | |
parent | 83e580bd6be024489b1578e1eecf2a41daf76c64 (diff) | |
download | gst-omx-b644699c8d84734655eb7b36217dd5c6c90fc002.tar.gz |
omxh26{4,5}enc: don't pick default 10-bit profile
The OMX stack of the zynqultrascaleplus (the only one supporting
NV12_10LE32 and NV16_10LE32) will now pick the proper profile if none
has been requested. Best to rely on its default than hardcoding a
specific one in gst-omx.
https://bugzilla.gnome.org/show_bug.cgi?id=794319
Diffstat (limited to 'omx')
-rw-r--r-- | omx/gstomxh264enc.c | 13 | ||||
-rw-r--r-- | omx/gstomxh265enc.c | 13 |
2 files changed, 0 insertions, 26 deletions
diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index 631e31d..4c4b3b2 100644 --- a/omx/gstomxh264enc.c +++ b/omx/gstomxh264enc.c @@ -676,19 +676,6 @@ gst_omx_h264_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, gst_caps_unref (peercaps); } - /* Change default profile to high-10 if input is 10 bits */ - if (profile == OMX_VIDEO_AVCProfileMax) { - GstVideoFormat format; - - format = state->info.finfo->format; - if (format == GST_VIDEO_FORMAT_NV12_10LE32 || - format == GST_VIDEO_FORMAT_NV16_10LE32) { - GST_DEBUG_OBJECT (self, - "Set profile to high-10 as input is a 10 bits format"); - profile = OMX_VIDEO_AVCProfileHigh10; - } - } - if (profile != OMX_VIDEO_AVCProfileMax || level != OMX_VIDEO_AVCLevelMax) { /* OMX provides 2 API to set the profile and level. We try using the * generic one here and the H264 specific when calling diff --git a/omx/gstomxh265enc.c b/omx/gstomxh265enc.c index e099431..68fe432 100644 --- a/omx/gstomxh265enc.c +++ b/omx/gstomxh265enc.c @@ -494,19 +494,6 @@ gst_omx_h265_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, gst_caps_unref (peercaps); } - /* Change default profile to main-10 if input is 10 bits */ - if (profile == OMX_VIDEO_HEVCProfileUnknown) { - GstVideoFormat format; - - format = state->info.finfo->format; - if (format == GST_VIDEO_FORMAT_NV12_10LE32 || - format == GST_VIDEO_FORMAT_NV16_10LE32) { - GST_DEBUG_OBJECT (self, - "Set profile to main-10 as input is a 10 bits format"); - profile = OMX_VIDEO_HEVCProfileMain10; - } - } - if (profile != OMX_VIDEO_HEVCProfileUnknown || level != OMX_VIDEO_HEVCLevelUnknown) { /* OMX provides 2 API to set the profile and level. We try using the |