# HG changeset patch # User alex # Date 1053692256 0 # Node ID 93e5428d0b3e28c9c662b5be273f173a97656c36 # Parent e21bdbee4de25f6adfcca27eb29c7c2da3dd4e38 some changes (michael: is the colorspace_type field needed?) diff -r e21bdbee4de2 -r 93e5428d0b3e DOCS/tech/mpcf.txt --- a/DOCS/tech/mpcf.txt Fri May 23 00:24:28 2003 +0000 +++ b/DOCS/tech/mpcf.txt Fri May 23 12:17:36 2003 +0000 @@ -9,7 +9,7 @@ Simple use the same encoding for nearly all fields - simple decoding, so slow cpus can handle it + simple decoding, so slow cpus (and embedded systems) can handle it Extendible no limit for the possible values for all fields (using universal vlc) allow adding of new headers in the future @@ -22,6 +22,8 @@ headers & index can be repeated audio packet reshuffle checksums to allow quick redownloading of damaged parts + damaged files can be played back with minimal data lost and fast + resyncing times @@ -230,11 +232,6 @@ length_in_msec length of the file in milli seconds (can be 0 if realtime or such) -index_flag - 1 indicates that this file has an index - Note, all files SHOULD have an index at the end except, (realtime) streams - Note, all streams SHOULD have an index - stream_id Note: streams with a lower relative class MUST have a lower relative id so a stream with class 0 MUST allways have a id which is lower then any @@ -251,7 +248,7 @@ fourcc identification for the codec example: "H264" - MUST contain 4 bytes, note, this might be increasd in the future if + MUST contain 4 bytes, note, this might be increased in the future if needed language_code @@ -286,6 +283,11 @@ fixed_fps 1 indicates that the fps is fixed +index_flag + 1 indicates that this file has an index + Note, all files SHOULD have an index at the end except, (realtime) streams + Note, all streams SHOULD have an index + codec_specific_data_type 0 end 1 native @@ -371,6 +373,9 @@ depth for compatibility with some win32 codecs + +colorspace_type + ? samplerate_mul the number of samples per second in one time_base unit @@ -543,7 +548,7 @@ static inline uint64_t get_v(BufferContext *bc){ uint64_t val= 0; - for(; spaceLeft(bc) > 0; ){ + for(; space_left(bc) > 0; ){ int tmp= *(bc->buf_ptr++); if(tmp&0x80) val= (val<<7) + tmp - 0x80; @@ -557,7 +562,7 @@ static inline int put_v(BufferContext *bc, uint64_t val){ int i; - if(spaceLeft(bc) < 9) return -1; + if(space_left(bc) < 9) return -1; val &= 0x7FFFFFFFFFFFFFFFULL; // FIXME can only encode upto 63 bits currently for(i=7; ; i+=7){ @@ -639,3 +644,15 @@ audio_stream_header (stream 3, audio jpjp, timebase 1 , lsb_timestamp_length=8) audio_stream_header (stream 4, audio usen, timebase 1 , lsb_timestamp_length=8) index (stream 0) + + Authors + +Folks from MPlayer Developers Mailinglist (http://www.mplayehrq.hu/). +Authors in ABC-order: (FIXME! Tell us if we left you out) + Beregszaszi, Alex (alex@fsn.hu) + Bunkus, Moritz (moritz@bunkus.org) + Diedrich, Tobias (td@sim.uni-hannover.de) + Franz, Fabian (FabianFranz@gmx.de) + Gereoffy, Arpad (arpi@thot.banki.hu) + Hess, Andreas (jaska@gmx.net) + Niedermayer, Michael (michaelni@gmx.at)