Crude JPEG encoders, decoders and MPEG player
The project has been developed and tested using Visual Studio .NET 2003
The project contains 3 folders namely:
MyEncoder: Contains the MPEG encoder code. MyDecoder:Contains the MPEG decoder code. MyDisplay: Contains the UI code.
The project can either be run as indidual components or using the UI only.
-
First open the MyEncoder project, compile it and run using command-line MyEncoder.exe
-
Open the MyDecoder project, compile it and run using command-line: MyDecoder.exe
-
Finally open the UI. Select Display Preferences from the menu.
- Type the path of the Source file, base file and the enhanced file. Click OK.
- The click on the Play button. Pause, Next, Previous, Enhanced buttons are provided for user's convenience.
Alternately, the project can also be run using the UI only. Compile the MyEncoder and MyDecoder and then drop the executables in the MyDispla directory. You can now use the UI menu Encode to start the encoder and the Decode menu to start the decoder with appropriate parameters.
We are currently, using the following file format for the encoder: FrameWidth FrameHeight Q-Parameter I Y-Blocks
Cr-Blocks Cb-Blocks P (X-MotionVector1)(Y-MotionVector1)(Y-MacroBlock1)(X-MotionVector2)(Y-MotionVector2)(Y-MacroBlock2) Cr-Block Cb-Block