mp3 normalizing

I'm trying to create a program similar to mp3Trim (http://www.logiccell.com/~mp3trim/), but i can't find any information on how to normalize an mp3 without first decoding it to .wav and then encoding it back to mp3.

Does anybody have any information or know where i can find the information to accomplish this?