Hi,
We are doing a mp3 decoder school project (building a decoder on a Motorola microcontroller and an altera fpga). We're using MAD because it's an all integer implementation. But we're only interested in mpeg1 layer 3 decoding. We're kinda lost as to which files from the distribution we need just for this. We want to get rid of anything that's not mpeg1 layer 3...
On Thursday, February 21, 2002, at 07:33 PM, Yuxuan Mao wrote:
We are doing a mp3 decoder school project (building a decoder on a Motorola microcontroller and an altera fpga). We're using MAD because it's an all integer implementation. But we're only interested in mpeg1 layer 3 decoding. We're kinda lost as to which files from the distribution we need just for this. We want to get rid of anything that's not mpeg1 layer 3...
First of all, you probably only need to worry about the libmad subdirectory, as this contains the decoder proper.
Of that, the only files not needed for decoding Layer III are layer12.c, layer12.h, sf_table.dat, and qc_table.dat. You'll need to modify some of the code to deal with the absence of the Layer I and Layer II decoders, but that shouldn't be hard.
If you want you can also probably do away with the timer interface (timer.c, timer.h) to simplify things. Again you'll have to patch a few places to deal with its absence, but it's not a critical component.
-- Rob Leslie rob@mars.org