video-format: RGB16/15 are not 16 bit per component but only 5.333 and 5
authorSebastian Dröge <sebastian@centricular.com>
Tue, 2 Jun 2020 13:56:44 +0000 (16:56 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Jun 2020 14:38:55 +0000 (14:38 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/682>

gst-libs/gst/video/video-format.c

index d12162d..c0f0441 100644 (file)
@@ -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 }