mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +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));
|
((port_def.format.video.nFrameHeight + 1) / 2));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case OMX_COLOR_FormatYUV420PackedSemiPlanar:
|
||||||
case OMX_COLOR_FormatYUV420SemiPlanar:
|
case OMX_COLOR_FormatYUV420SemiPlanar:
|
||||||
port_def.nBufferSize =
|
port_def.nBufferSize =
|
||||||
(port_def.format.video.nStride * port_def.format.video.nFrameHeight) +
|
(port_def.format.video.nStride * port_def.format.video.nFrameHeight) +
|
||||||
|
@ -1072,6 +1073,8 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
GST_ERROR_OBJECT (self, "Unsupported port format %x",
|
||||||
|
port_def.format.video.eColorFormat);
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue