From d3c2a7c8d1bb94a4bf6fa745ef93d2ca9f59f7d0 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 10 Apr 2020 11:47:03 +0200 Subject: omxvideoenc: remove unsupported formats from caps template Our encoder implementation actually supports a small subset of the formats supported by the decoder. Those are the formats for which we have a copy path in gst_omx_video_enc_fill_buffer() and which are not filtered out in filter_supported_formats(). --- omx/gstomxvideo.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'omx/gstomxvideo.h') diff --git a/omx/gstomxvideo.h b/omx/gstomxvideo.h index 4e5ac43..8664345 100644 --- a/omx/gstomxvideo.h +++ b/omx/gstomxvideo.h @@ -35,9 +35,12 @@ G_BEGIN_DECLS /* Keep synced with gst_omx_video_get_format_from_omx(). Sort by decreasing quality */ -#define GST_OMX_VIDEO_SUPPORTED_FORMATS "{ NV16_10LE32, NV12_10LE32, " \ +#define GST_OMX_VIDEO_DEC_SUPPORTED_FORMATS "{ NV16_10LE32, NV12_10LE32, " \ "NV16, YUY2, YVYU, UYVY, NV12, I420, RGB16, BGR16, ABGR, ARGB, GRAY8 }" +#define GST_OMX_VIDEO_ENC_SUPPORTED_FORMATS "{ NV16_10LE32, NV12_10LE32, " \ + "NV16, NV12, I420, GRAY8 }" + typedef struct { GstVideoFormat format; -- cgit v1.2.1