video: add support for RGBP and BGRP formats
authorHaihao Xiang <haihao.xiang@intel.com>
Mon, 10 May 2021 06:21:51 +0000 (14:21 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Tue, 11 May 2021 04:24:41 +0000 (12:24 +0800)
commitca046ca73cf5e673f669a382a1589fe3c2ce8752
tree0edd0a8aa96be40c673cc9a5a90ee07cf124dfc6
parentc778686a3c933d40ac244b8660afa50e73d03bf0
video: add support for RGBP and BGRP formats

The two RGB planar formats are used in OpenVino [1]

gst-launch-1.0 videotestsrc ! video/x-raw,format=BGRP ! fakesink
gst-launch-1.0 videotestsrc ! video/x-raw,format=RGBP ! fakesink

[1] https://docs.openvinotoolkit.org/latest/openvino_docs_optimization_guide_dldt_optimization_guide.html

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1141>
gst-libs/gst/video/video-converter.c
gst-libs/gst/video/video-format.c
gst-libs/gst/video/video-format.h
gst-libs/gst/video/video-info.c