Howto:

* Patch DirectFB with GetFBOffset.patch. v0.9.20 should work ok.
  The patch might work with the current CVS version (pre 0.9.21) too.
* Recompile and reinstall DirectFB. Don't forget ldconfig.
* Build the test program
* Ensure either viafb (DirectFB fork) or cle266vgaio is installed.
* Try the decoder with: mtest <mpegfile>
  <mpegfile> must be a demultiplexed elementary video stream.
  Normal video files, that include sound, will not work correctly.

---

The mpeg2 parser is written from scratch, for two reasons. The first is that
I wanted to learn how mpeg2 worked, the second is that I want to release it
under LGPL rather than GPL. (Current release is just GPL though.)

 The structure is also fairly simple. dfb-test.c is the main program,
which calls decoder.c which in turn calls parser.c which calls scanner.c.

Scanner.c reads the mpeg file, locates block start codes and unpacks header
blocks into C structures.
Parser.c implements the mpeg2 state machine described in the standard.
Decoder.c takes data from the scanner and parser and gives it to the hardware
interface in hwdec.c.
