6 Nov
2010
6 Nov
'10
9:37 a.m.
Rich,
I just noticed that some of the map files have non-power of two entries in them:
257 altern.map 257 green.map 257 grey.map 257 grid.map 258 landscap.map (last line is empty) 225 goodega.map (last line is empty)
How are these map files supposed to be interpreted?
The files are read until either an EOF occurs or 256 entries have been read. Empty lines that occur before 256 entries is reached end up with the last color read in. When fewer than 256 entries are in a map file, the rest of the entries, up to 256, are filled with gray. This is all done by ValidateLuts() in loadmap.c. Take a look at chroma.map. It has 356 entries. Jonathan