Article View: comp.arch
Article #309Re: Q+ graphics, 24-bit loads and stores
From: BGB
Date: Fri, 23 Oct 2026 20:02
Date: Fri, 23 Oct 2026 20:02
111 lines
5849 bytes
5849 bytes
On 10/23/2026 11:28 AM, Terje Mathisen wrote: > MitchAlsup wrote: >> Terje Mathisen <terje.mathisen@tmsw.no> posted: >> >>> MitchAlsup wrote: >>>> Robert Finch <robfi680@gmail.com> posted: >>>> >>>>> On 2026-10-19 5:46 p.m., BGB wrote: >>>>>> On 10/18/2026 12:50 PM, MitchAlsup wrote: >>>>>>> Robert Finch <robfi680@gmail.com> posted: >>>>>>> >>>>>>>> Adding some graphics instructions to Q+. While doing so, it >>>>>>>> seems to me >>>>>>>> like 24-bit load and store operations to handle RGB888 data >>>>>>>> might be >>>>>>>> handy. >>>>>>> >>>>>>> A lot of GPUs use the other 8-bits as a mixing or transparency code. >>>>>>> >>>>>> >>>>>> Yeah, 32-bit RGBA (RGBA32 / RGB8888) is pretty much standard, >>>>>> differing >>>>>> mostly as an unresolved fight over element ordering: >>>>>>  "R, G, B, A" vs "B, G, R, A". >>>>>> >>>>> Figures. I use ARGB, putting the alpha in the MSBs. >>>>>> >>>>>> 24-bit is mostly a weird/awkward thing that is sometimes used but >>>>>> mostly >>>>>> not really worth it; vs just ignoring the last 8 bits in a 32-bit >>>>>> word >>>>>> when alpha isn't needed. >>>>>> >>>>>> Some 10.10.10 formats exist, but are rarely used, and usually >>>>>> overkill. >>>>>>  3x E5.M5 does seem semi-popular here for HDR. >>>>>>  3x E4.M4 also works, and allows treating it like RGBA32. >>>>>>    And seems to match the look/behavior of HDR on a >>>>>> Radeon HD 4xxx. >>>>>>  3x E4.M6: No one uses it but would give better fidelity. >>>>>> >>>>> Most people cannot see color beyond RGB777 so 10.10.10 is overkill >>>>> but I >>>>> had worried about rounding of colors and figure a few extra bits would >>>>> not hurt. ARGB3777 is 24-bit. Some of the very early display adapters >>>>> only supported 18 bits for color. So, ARGB6666 - fits nicely in 24 >>>>> bits. >>>> >>>> And then there are those of us who edit photographs and hate it when >>>> a change to gamma results in posterization of the "sky" or any other >>>> recognizable color with a small gradient. We also worry about gamut. >>> >>> 3x8-bit RGB is typically OK for finished photos, but for anything that's >>> going to be edited, you want a _lot_ more. >> >> While 8-bits is sufficient for almost any viewing of an image >> For editing:: >> 10-bits is nowhere close to being enough >> 12-bits is pretty reasonable for gentle editing (old RAW circa 2005) >> 14-bits is very good for significant editing (new RAW circa 2015) >> 16-bits seems to be enough for all sensor types. > > If you have a log format sensor, then you can make do with a few less bits. > FWIW: Pretty much all the cameras I have used have only offered T.81 JPEG as the option for storage (though often with options to tweak image size and quality, but not format). High resolution, yes, but no options for RAW capture or similar. I think this requires much more expensive cameras though. Though, an annoyance is that many I have used also need fairly bright lighting to avoid significant noise in the images (say, lighting levels that seem fine in person giving a noisy mess on a camera, and the light level needs to be painfully bright before the image sensors give a clean image; or enable the use of a camera flash). Well, or some cameras apparently internally take multiple images at different exposure levels and then combine them for better results. Otherwise: Something like E5.M7 would probably be pretty OK as a storage format, as for the range of 0.5 to 1.0 would have basically the same accuracy as 8-bit LDR. Could argue that something like Binary16 could make sense as a working format for HDR photo editing. Relatively few formats natively support this though (excluding things like EXR). Many of the other formats that claim HDR support do so instead by storing a "tone mapped" image and an exponent image or similar (or, essentially, more like RGBE rather than by storing FP values directly). Editing is also more of an issue as most normal editing software (say, GIMP or Paint.NET or similar) don't really support much beyond normal 8-bit LDR. ... > Terje > >
Technical Details
Message-ID:
<11bgejh$24htr$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11apshg$25e7t$1@dont-email.me> <1792092095-5857@newsgrouper.org> <11arq6g$2se7j$1@dont-email.me> <11b0tr2$ljeu$1@dont-email.me> <1792345842-5857@newsgrouper.org> <11b635m$2evpo$1@dont-email.me> <11b7c6b$2s96c$1@dont-email.me> <1792514871-5857@newsgrouper.org> <11b8cov$39e66$1@dont-email.me> <1792522570-5857@newsgrouper.org> <11bg1vp$1vf7r$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: BGB <cr88192@gmail.com> Newsgroups: comp.arch Subject: Re: Q+ graphics, 24-bit loads and stores Date: Fri, 23 Oct 2026 15:02:35 -0500 Organization: A noiseless patient Spider Lines: 111 Message-ID: <11bgejh$24htr$1@dont-email.me> References: <11apshg$25e7t$1@dont-email.me> <1792092095-5857@newsgrouper.org> <11arq6g$2se7j$1@dont-email.me> <11b0tr2$ljeu$1@dont-email.me> <1792345842-5857@newsgrouper.org> <11b635m$2evpo$1@dont-email.me> <11b7c6b$2s96c$1@dont-email.me> <1792514871-5857@newsgrouper.org> <11b8cov$39e66$1@dont-email.me> <1792522570-5857@newsgrouper.org> <11bg1vp$1vf7r$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 23 Oct 2026 20:04:03 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2246587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IZ3vzVA5PL2NUorakF8ZLxl73QPbKnZ8="; posting-host="a1268b405e37c9fe641ebb83d51460ff" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Kq31VJfHrFQXmV8zL2S3GDRMeTQ= sha256:9W0bY4+mGLvvYpWBhogXHz8J69+utG2eOsX59r7r83c= sha1:Q3EpGifYuPZ4Qyq3Y0eaTVSWwec= sha256:fkUINvWj1pmEv3XeXCWLuc/IpKXAyVjQYS0M/NQ4PP8= In-Reply-To: <11bg1vp$1vf7r$1@dont-email.me> Content-Language: en-US