First step towards decoupling the slice decoder (which is the main
CPU intensive part of libmpeg2) from the rest of the decoder (i.e. the chunk gathering, header parsing and state machine). Eventually I want to get to a point where decode.c and header.c do not know about the internals of the mpeg2_decoder_t type. Longer term, I want to be able to switch the slice decoders, for example to support GPU acceleration.
Showing with 77 additions and 47 deletions