You'll need some code that I have here. It's basically the c-buffer stuff from the bouncing balls demo, but instead of being used to draw sprites it draws layers for parallax scrolling.
It comes with a 'layer compiler' that breaks up a large .tga file in horizontal spans of pixels by finding rows of adjacent pixels between the black pixels. If you are working on some cave game for example, lots of pixels are black (the cave itself, space where you can move) and lots of pixels are brown or whatever. The compiler finds horizontal spans of brown pixels in that case.
The code I mentioned draws these layers, front to back, with zero overdraw. This is very fast; you can get away with 10 layers or more, depending on their complexity.
I need to work a bit more on that compiler, it should detect spans that have the same content, so that it can reuse them: For example, you're working on a Wolf level and you paste one village house on a huge .tga at 10 different positions. That means that each span of the village house is used at least 10 times in the .tga, or in other words, the file that the compiler outputs just got 10 times smaller. That's pretty important for a PocketPC game. I hope to shrink the average level for a sideway scroller to decent proportions this way, while keeping the pretty awesome sight of 10 layers running at different speeds.

Now that's depth.
So in short, I'll post the code soon. If I can't find the time to port it to PocketPC I'll port the PC sources.
- Jacco.