On Thursday 05 February 2004 9:47 pm, Gerald K. Dobiasovsky wrote:
The two lines are *not* identical (the second one manages the appearance of a possible local color table).
Source: 2002sync.zip patched up to v20.3, but gifview.c hasn't changed since v20.2.
Line 143: planes = (buffer[10] & 0x0F) + 1;
Line 263: planes = (buffer[8] & 0x0F) + 1;
In the first case the next bit after the global color palette size info signals a sorted palette and should be excluded by the mask.
In the second case the next two bits after the local color palette size info are reserved and should be excluded by the mask, too (although I doubt there ever will be a new GIF version which will use this field :-)).
I'm not the GIF guru, so I have no idea what you are talking about. Do you mean to say we should use 0xFF (or 0x1F) instead of 0x0F? Or is it something else? Jonathan