[Cin] 10bit display links

Andrew Randrianasulu randrianasulu at gmail.com
Thu Jun 1 16:59:14 CEST 2023


чт, 1 июн. 2023 г., 14:42 Andrea paz <gamberucci.andrea at gmail.com>:

> CinGG in my Arch to 10-bit depth color:
> https://postimg.cc/YvkPnzSh
>
> :-)
>

this is with output x11-opengl ?

I think I logged such bug in BT some time ago
https://www.cinelerra-gg.org/bugtracker/view.php?id=297

still not sure how to move forward. I found 8bit rgb - 10bit rgb
conversion route, just not sure how to add it to list of pixel conversion
.../

wget https://bugzilla.gnome.org/attachment.cgi?id=196321

===
>From fb01c5ea4c5b9f0c2b0d2b2d9c926cf1caea27c0 Mon Sep 17 00:00:00 2001
From: Damien Leone <dleone at nvidia.nvidia.com>
Date: Mon, 12 Sep 2011 09:53:00 -0700
Subject: [PATCH] Bug 625202 - 30-bit drawables remain black

This patch adds support for 10-10-10 bitmask BGR conversion at
depths 30 and 32 by preventing gdk_rgb_select_conv() from failing
back to the gdk_rgb_convert_32_generic() conversion function.

                       Since GdkImage codes R, G and B channels in a char,
we replicate   the two most significant bits to the two least significant
ones such that all 10 bits are used (i.e. all bits are set to 1 for  white
color).


/* Since the R, G and B channels are coded in a char, we
+                  * replicate the two most significant bits to the two
least
+                  * significant ones. */

+                 *((guint32*)p) = 0x3 << 30 |
+                       b << 22 | (b >> 6) << 20 |
+                       g << 12 | (g >> 6) << 10 |
+                       r << 2  | (r >> 6);


I wonder if you can set second X server with color depth 30 and switch
between them on the fly? (ctrl-alt-f7/f8)

I also wonder if Arch have this patch already?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20230601/9f53c99c/attachment.htm>


More information about the Cin mailing list