49 lines
1.9 KiB
Diff
49 lines
1.9 KiB
Diff
From 925e1dc00b00ed0e3fb965d4899398bdbb4967a7 Mon Sep 17 00:00:00 2001
|
|
From: Christophe Priouzeau <christophe.priouzeau@st.com>
|
|
Date: Thu, 7 Nov 2019 14:32:54 +0100
|
|
Subject: [PATCH 2/4] tests/util: smtpe: increase alpha to middle band
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The middle band is transparent for the ARGB1555 pixel format.
|
|
The alpha field of this format is coded on 1 bit, alpha colors field
|
|
(127) becomes 0 after application of the macro MAKE_RGBA.
|
|
I propose to modify the alpha colors to 128 (1 after application of
|
|
the MAKE_RGBA macro) to allow to visualize the band of the support
|
|
and little impact on the 16-bit color formats.
|
|
|
|
Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
|
|
---
|
|
tests/util/pattern.c | 14 +++++++-------
|
|
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
|
|
index 158c0b1..a4eae23 100644
|
|
--- a/tests/util/pattern.c
|
|
+++ b/tests/util/pattern.c
|
|
@@ -373,13 +373,13 @@ static void fill_smpte_rgb16(const struct util_rgb_info *rgb, void *mem,
|
|
MAKE_RGBA(rgb, 0, 0, 192, 255), /* blue */
|
|
};
|
|
const uint16_t colors_middle[] = {
|
|
- MAKE_RGBA(rgb, 0, 0, 192, 127), /* blue */
|
|
- MAKE_RGBA(rgb, 19, 19, 19, 127), /* black */
|
|
- MAKE_RGBA(rgb, 192, 0, 192, 127), /* magenta */
|
|
- MAKE_RGBA(rgb, 19, 19, 19, 127), /* black */
|
|
- MAKE_RGBA(rgb, 0, 192, 192, 127), /* cyan */
|
|
- MAKE_RGBA(rgb, 19, 19, 19, 127), /* black */
|
|
- MAKE_RGBA(rgb, 192, 192, 192, 127), /* grey */
|
|
+ MAKE_RGBA(rgb, 0, 0, 192, 128), /* blue */
|
|
+ MAKE_RGBA(rgb, 19, 19, 19, 128), /* black */
|
|
+ MAKE_RGBA(rgb, 192, 0, 192, 128), /* magenta */
|
|
+ MAKE_RGBA(rgb, 19, 19, 19, 128), /* black */
|
|
+ MAKE_RGBA(rgb, 0, 192, 192, 128), /* cyan */
|
|
+ MAKE_RGBA(rgb, 19, 19, 19, 128), /* black */
|
|
+ MAKE_RGBA(rgb, 192, 192, 192, 128), /* grey */
|
|
};
|
|
const uint16_t colors_bottom[] = {
|
|
MAKE_RGBA(rgb, 0, 33, 76, 255), /* in-phase */
|
|
--
|
|
2.25.1
|
|
|