Is there any documentation on writing a decoder? I am writing a decoder that decompresses a special type of image and cannot find any help on how to do this other than looking at source code.