mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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.
This commit is contained in:
parent
413f05269c
commit
75d9ec634c
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue