From 4fcc1121e6f23d42c9ae77f376ff085c07f04c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 2 Jun 2020 16:56:44 +0300 Subject: [PATCH] video-format: RGB16/15 are not 16 bit per component but only 5.333 and 5 Part-of: --- gst-libs/gst/video/video-format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-format.c b/gst-libs/gst/video/video-format.c index d12162d27f..c0f04418aa 100644 --- a/gst-libs/gst/video/video-format.c +++ b/gst-libs/gst/video/video-format.c @@ -6301,8 +6301,8 @@ typedef struct #define DPTH16 16, 1, { 0, 0, 0, 0 }, { 16, 0, 0, 0 } #define DPTH16_16_16 16, 3, { 0, 0, 0, 0 }, { 16, 16, 16, 0 } #define DPTH16_16_16_16 16, 4, { 0, 0, 0, 0 }, { 16, 16, 16, 16 } -#define DPTH555 16, 3, { 10, 5, 0, 0 }, { 5, 5, 5, 0 } -#define DPTH565 16, 3, { 11, 5, 0, 0 }, { 5, 6, 5, 0 } +#define DPTH555 5, 3, { 10, 5, 0, 0 }, { 5, 5, 5, 0 } +#define DPTH565 6, 3, { 11, 5, 0, 0 }, { 5, 6, 5, 0 } /* pixel strides */ #define PSTR0 { 0, 0, 0, 0 }