I have written up some information on the RawSpeed decoder, and how it can be implemented.
Here are links to the articles.
If you have any additional areas you’d like to have covered, or have any questions, just leave a comment, and I will try to address it.