mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
omxvideoenc: Add a mapping for OMX_COLOR_FormatYUV420PackedSemiPlanar
The RaspberryPi
This commit is contained in:
parent
c3078dd20c
commit
f3a7bce442
1 changed files with 3 additions and 0 deletions
|
@ -1064,6 +1064,7 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
|||
((port_def.format.video.nFrameHeight + 1) / 2));
|
||||
break;
|
||||
|
||||
case OMX_COLOR_FormatYUV420PackedSemiPlanar:
|
||||
case OMX_COLOR_FormatYUV420SemiPlanar:
|
||||
port_def.nBufferSize =
|
||||
(port_def.format.video.nStride * port_def.format.video.nFrameHeight) +
|
||||
|
@ -1072,6 +1073,8 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
|||
break;
|
||||
|
||||
default:
|
||||
GST_ERROR_OBJECT (self, "Unsupported port format %x",
|
||||
port_def.format.video.eColorFormat);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue