https://github.com/CESNET/UltraGrid/discussions/203 10bit display with SDL/GL #203 has this hint (may be not needed on Display port) ==== it is also important to set the display to Full range and set the max bpc ACTIVEDISPLAY=`xrandr | grep " connected " | awk '{ print$1 }'` xrandr --output $ACTIVEDISPLAY --set "Broadcast RGB" "Full" --set "max bpc" 10 https://www.soi.pw/posts/10-bit-color-on-ubuntu-20.04-with-amdgpu-driver/ ==== https://github.com/CESNET/UltraGrid/commit/03b60c9931b1fc83ca91bee09dbe4266f... referred pdf says this: https://www.amd.com/system/files/documents/10-bit-video-output.pdf "Figure 5: 10-bit display feature can be enabled by checking the “Enable 10-bit pixel format support” checkbox in the Catalyst Control Center. Note that this feature is only available in workstation (ATI FireGL™) cards. Once the 10-bit pixel format support is enabled the system will request a reboot and after that any 10- bit aware OpenGL application will be displayed in 10-bits without any clamping. In the following, we demonstrate how an application programmer can easily create a 10-bit aware OpenGL [skip] Creating a 10-bit Texture The previous section highlighted several methods to choose a 10-bit pixel format. It is important to note that once a 10-bit pixel format is chosen any smooth shading operation will immediately take advantage of the increased bit depth. In other words, the user does not need to explicitly provide 10-bit input data to benefit from the increased precision. This is due to the fact the internal processing of colors in the graphics card is in floating-point precision with 10-bit (or 8-bit) conversion occurring only at the output stage. However, it is also possible to explicitly create and work with 10-bit textures as will be explained in this section. 10-bit texture support is exposed to the user through a packed RGB10_A2 texture format, which contains 10 bits for each of the color channels and 2 bits for the alpha component. ==== original issues also should contain test images https://github.com/CESNET/UltraGrid/files/7525556/gradients.zip
CinGG in my Arch to 10-bit depth color: https://postimg.cc/YvkPnzSh :-)
чт, 1 июн. 2023 г., 14:42 Andrea paz <[email protected]>:
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 <[email protected]> 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?
I don't think it depends on CinGG. Even Steam has problems with 10-bit (crashes!). Other programs (Firefox) show no difference between 8 and 10-bit, and others work fine at 10-bit (mpv). No differences both X11 and X11-OpenGL. I think the basis is always the lack of color management of various programs. To create a new X server: sorry; you ask too much of my rusty little brain! Anyway it's a matter of renaming the 20-amd.conf file to 20-amd.conf.back and rebooting, it's not very long.
чт, 1 июн. 2023 г., 19:12 Andrea paz <[email protected]>:
I don't think it depends on CinGG. Even Steam has problems with 10-bit (crashes!). Other programs (Firefox) show no difference between 8 and 10-bit, and others work fine at 10-bit (mpv). No differences both X11 and X11-OpenGL. I think the basis is always the lack of color management of various programs.
Not exactly color management as ICC profile application but basic fact images use 10 bits where they used to have just 8 per channel! To create a new X server: sorry; you ask too much of my rusty little
brain! Anyway it's a matter of renaming the 20-amd.conf file to 20-amd.conf.back and rebooting, it's not very long.
I think you can try and start second X like this: X :1 --depth 30 &
participants (2)
-
Andrea paz -
Andrew Randrianasulu