I'm working on parsing .psd file, and meet a problem when decoding 1-bit bitmap with RLE encoding.
I have a test image (64x32) and only four conor have one black pixel, all other pixels are white.
And encoded data have 72 bytes:
0, 128, 251, 0, 0, 1, //The first line
249, 0, //The center lines (total 30 lines)
... //The same as (249, 0)
0, 128, 251, 0, 0, 1 //The last line
The encoded data doesn't seem to be a standard RLE Encoding, I don't understand at all.
I have tried to expand all bytes into bits, and still can't see any bits can represent 64 or 62.