Re: Support of RGBA 10x10x10x2 ?

John Bowler <[email protected]>
Newsgroups gmane.comp.graphics.png.general
Message-ID <CAP7U398Kz48yPawbeP9bN8HQU+qzFFmacJ_Fe6SPcCe5oC7DzQ@mail.gmail.com>
On Sat, Jan 14, 2017 at 6:48 AM, Glenn Randers-Pehrson
<[email protected]> wrote:
> On Fri, Jan 13, 2017 at 2:52 PM, Alexey Solovey <[email protected]> wrote:
>>
>> Hello. Will support PNG format as RGBA/RGB 10x10x10x2 bits?
>
> Yes, of course.  You write a 16-bit RGBA 16x16x16x16 together with
> the sBIT chunk that conveys the channel depths (sBIT 8 8 8 2).

sBIT 10 10 10 2

> It takes 64 bits per pixel instead of 32, but I expect that the zlib compression
> makes up for that difference (I haven't tested that).

It's not going to be very good, but it is probably comparable to the
result of bit-packing the values into 32 bits then LZ77 compressing
4-byte pixels.  In neither case are the bit patterns aligned to byte
boundaries so they don't compress well with LZ77.

-- 
John Bowler <[email protected]>
+1 (541) 450-9885
PO BOX 3151
KERBY OR 97531-3151
USA

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.