diff options
author | James Cowgill <jcowgill@jcowgill.uk> | 2019-02-09 17:21:13 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:43:15 +0100 |
commit | db20ecf81e1d561ed8b67fa3d942d267c7f325c9 (patch) | |
tree | b312fc44b226087047c397dadaceb7ab8fabc295 | |
parent | 7de5af4116a7d536b9f2758951893cb82945d5be (diff) | |
download | gstreamer-plugins-base-db20ecf81e1d561ed8b67fa3d942d267c7f325c9.tar.gz |
video-format: Fix GBRA_10/12 alpha channel pixel strides
These formats have 4 components, so they should also have 4 components
of pixel stride.
-rw-r--r-- | gst-libs/gst/video/video-format.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gst-libs/gst/video/video-format.c b/gst-libs/gst/video/video-format.c index f2fa22b27..8945c036a 100644 --- a/gst-libs/gst/video/video-format.c +++ b/gst-libs/gst/video/video-format.c @@ -5215,18 +5215,17 @@ static const VideoFormat formats[] = { DPTH888, PSTR244, PLANE0, OFFS102, SUB422, PACK_VYUY), MAKE_RGBA_FORMAT (GBRA, "raw video", DPTH8888, PSTR1111, PLANE2013, OFFS0, SUB4444, PACK_GBRA), - MAKE_RGBA_FORMAT (GBRA_10BE, "raw video", DPTH10_10_10_10, PSTR222, PLANE2013, - OFFS0, SUB4444, PACK_GBRA_10BE), - MAKE_RGBA_LE_FORMAT (GBRA_10LE, "raw video", DPTH10_10_10_10, PSTR222, - PLANE2013, - OFFS0, SUB4444, PACK_GBRA_10LE), + MAKE_RGBA_FORMAT (GBRA_10BE, "raw video", DPTH10_10_10_10, PSTR2222, + PLANE2013, OFFS0, SUB4444, PACK_GBRA_10BE), + MAKE_RGBA_LE_FORMAT (GBRA_10LE, "raw video", DPTH10_10_10_10, PSTR2222, + PLANE2013, OFFS0, SUB4444, PACK_GBRA_10LE), MAKE_RGB_FORMAT (GBR_12BE, "raw video", DPTH12_12_12, PSTR222, PLANE201, OFFS0, SUB444, PACK_GBR_12BE), MAKE_RGB_LE_FORMAT (GBR_12LE, "raw video", DPTH12_12_12, PSTR222, PLANE201, OFFS0, SUB444, PACK_GBR_12LE), - MAKE_RGBA_FORMAT (GBRA_12BE, "raw video", DPTH12_12_12_12, PSTR222, PLANE2013, - OFFS0, SUB4444, PACK_GBRA_12BE), - MAKE_RGBA_LE_PACK_FORMAT (GBRA_12LE, "raw video", DPTH12_12_12_12, PSTR222, + MAKE_RGBA_FORMAT (GBRA_12BE, "raw video", DPTH12_12_12_12, PSTR2222, + PLANE2013, OFFS0, SUB4444, PACK_GBRA_12BE), + MAKE_RGBA_LE_PACK_FORMAT (GBRA_12LE, "raw video", DPTH12_12_12_12, PSTR2222, PLANE2013, OFFS0, SUB4444, PACK_GBRA_12LE), MAKE_YUV_FORMAT (I420_12BE, "raw video", 0x00000000, DPTH12_12_12, PSTR222, PLANE012, OFFS0, SUB420, PACK_I420_12BE), |