summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2017-03-14 02:42:15 +1100
committerJan Schmidt <thaytan@noraisin.net>2017-03-14 02:42:15 +1100
commitf3a7bce4429e774d0ace1b2d72c29f73ae0a9673 (patch)
treed74325efbe87afa8291c9e4e361c6c371b1ec20f
parentc3078dd20c821721a8885bf9daec782248b7420d (diff)
omxvideoenc: Add a mapping for OMX_COLOR_FormatYUV420PackedSemiPlanar
The RaspberryPi
Notes
The RaspberryPi maps NV12 to OMX_COLOR_FormatYUV420PackedSemiPlanar when the strides all match up
-rw-r--r--omx/gstomxvideoenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index 3bdc41a..6a027b8 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -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 ();
}