diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2018-02-16 11:50:35 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-02-28 08:32:26 -0500 |
commit | ea2df994f39da1388dd1cf7f937796ce0ecaa472 (patch) | |
tree | c92ddf4912f61dfb51aedc91eebc1211672ecc61 /omx/gstomxvideo.c | |
parent | d1ffc97dddf5e0f9514af101be5e139da7346bd3 (diff) | |
download | gst-omx-ea2df994f39da1388dd1cf7f937796ce0ecaa472.tar.gz |
add support for NV12_10LE32 and NV16_10LE32 on zynqultrascaleplus
The encoder and decoder on zynqultrascaleplus support these new 10 bits
format.
https://bugzilla.gnome.org/show_bug.cgi?id=793694
Diffstat (limited to 'omx/gstomxvideo.c')
-rw-r--r-- | omx/gstomxvideo.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/omx/gstomxvideo.c b/omx/gstomxvideo.c index c06a2f4..151b3b4 100644 --- a/omx/gstomxvideo.c +++ b/omx/gstomxvideo.c @@ -81,6 +81,18 @@ gst_omx_video_get_format_from_omx (OMX_COLOR_FORMATTYPE omx_colorformat) case OMX_COLOR_Format24bitBGR888: format = GST_VIDEO_FORMAT_BGR; break; +#ifdef USE_OMX_TARGET_ZYNQ_USCALE_PLUS + /* Formats defined in extensions have their own enum so disable to -Wswitch warning */ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wswitch" + case OMX_ALG_COLOR_FormatYUV420SemiPlanar10bitPacked: + format = GST_VIDEO_FORMAT_NV12_10LE32; + break; + case OMX_ALG_COLOR_FormatYUV422SemiPlanar10bitPacked: + format = GST_VIDEO_FORMAT_NV16_10LE32; + break; +#pragma GCC diagnostic pop +#endif default: format = GST_VIDEO_FORMAT_UNKNOWN; break; |