summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2017-03-14 03:02:06 +1100
committerJan Schmidt <thaytan@noraisin.net>2017-03-14 03:02:06 +1100
commit75d9ec634ce3db8396d86ad79ad5c08ca9347595 (patch)
treea557dc29fce351510424caa8c3404180b7968528
parent413f05269c8d28375f4c3b9e0adf14a274e161a6 (diff)
omxvideoenc: Add an unimplemented mapping for RGBA formats
Add some pixel formats mappings for 2 RGBA formats. Not yet implemented in the buffer input code though, so no effect for now.
-rw-r--r--omx/gstomxvideoenc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index 111b213..cd1320d 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -1025,6 +1025,12 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
case GST_VIDEO_FORMAT_NV12:
port_def.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;
break;
+ case GST_VIDEO_FORMAT_ABGR:
+ port_def.format.video.eColorFormat = OMX_COLOR_Format32bitARGB8888;
+ break;
+ case GST_VIDEO_FORMAT_ARGB:
+ port_def.format.video.eColorFormat = OMX_COLOR_Format32bitBGRA8888;
+ break;
default:
GST_ERROR_OBJECT (self, "Unsupported format %s",
gst_video_format_to_string (info->finfo->format));