forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wiki entry for PMP Mod 1.02 "PMP File Format"

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
happycoding



Joined: 22 Jan 2006
Posts: 31

PostPosted: Fri Feb 24, 2006 5:46 pm    Post subject: Wiki entry for PMP Mod 1.02 "PMP File Format" Reply with quote

I've added an entry (http://en.wikipedia.org/wiki/PMP_Format) for PMP Mod 1.02 "PMP File Format" because someone (e.g. directshow filter for parsing .pmp) may need this spec. I am not the container inventor, so if you think it has error, please revise it or let me know. Thank you!

EDIT. wiki will delete it because it think this is a original research. :(
Now I paste it here FYI.
Quote:

Jonny has invented a .pmp file format for SONY's PSP. Following is the specification for PMP File Format:

1.pmp video
1.1 video header
unsigned int pmpm; // It is ASCII hardcoded "0x6d706d70"
unsigned int version;
unsigned int number_of_frames;
unsigned int width;
unsigned int height;
unsigned int scale;
unsigned int rate;
unsigned int maximum_frame_size;
1.2 video index
unsigned int size; // Frame one's size * 2 + (Frame one is KeyFrame)?1:0
unsigned int size; // Frame two's size * 2 + (Frame two is KeyFrame)?1:0
...
unsigned int size; // Frame number_of_frames's size * 2 + (Frame number_of_frames is KeyFrame)?1:0
1.3 video data
byte frame[size]; // store binary data of frame one
byte frame[size]; // store binary data of frame two
...
byte frame[size]; // store binary data of frame number_of_frames
2.pmp audio
2.1 audio header
unsigned int frame_size;
unsigned int number_of_frames;
2.2 audio index
byte index; // If Frame one is indexed, index=1, otherwise, index=0
byte index; // If Frame two is indexed, index=1, otherwise, index=0
...
byte index; // If Frame number_of_frames is indexed, index=1, otherwise, index=0
2.3 audio data
byte frame[size]; // store binary data of frame one and index (1 byte), if have.
byte frame[size]; // store binary data of frame two and index (1 byte), if have.
...
byte frame[size]; // store binary data of frame number_of_frames and index (1 byte), if have.

Pay attention:
1.The PMP File Format is only for little endian. Please be careful if you parse it in a big endian machine (e.g. PowerPC).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group