Re: 1 byte hex values

The rest of the PNG spec is explicit about 4-byte and 2-byte values 
being unsigned integer; for 1-byte values it does not say they are 
unsigned (and probably should).

But given that values are stored in one byte, how else would a value 
like 13 be stored? However we should say whether a given value in an 
example is in hex or in decimal, in case someone reads 13 and assumes 
that is 0x13 ie 19.

On 2023-12-07 07:55, Seeger, Chris (NBCUniversal) wrote:
>
> Jerome at MediaArea pointed out a mistake in our values for the chunk.
>
> We have to translate the decimal CICP values to 1-byte Hex I think?
>
> If this is right, we should point this out in our examples for the 
> spec (which I can do).
>
> This only affects the examples for PQ and HLG as SDR is a value of “1” 
> and remains unchanged.
>
> Can someone confirm I am correct about this?
>
> Best,
>
> Chris
>
-- 
Chris Lilley
@svgeesus
Technical Director @ W3C
W3C Strategy Team, Core Web Design
W3C Architecture & Technology Team, Core Web & Media

Received on Thursday, 7 December 2023 15:37:04 UTC