summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 11:20:35 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 11:20:35 +0000
commit35a5e9fdb5f647c8b25bc56e3e31a14af962ad78 (patch)
treefe33c3c0294f2edfefd8c191f2026553e45cbcc9 /DOCS
parent1de44c5cde45b64453fda54ece10516392bc5c5f (diff)
downloadmpv-35a5e9fdb5f647c8b25bc56e3e31a14af962ad78.tar.bz2
mpv-35a5e9fdb5f647c8b25bc56e3e31a14af962ad78.tar.xz
zero_bit for normal frames, so we can distinguish them from other packets
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9312 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/tech/mpcf.txt13
1 files changed, 10 insertions, 3 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt
index b1fbec9e8e..12881d0b30 100644
--- a/DOCS/tech/mpcf.txt
+++ b/DOCS/tech/mpcf.txt
@@ -123,12 +123,13 @@ frame
if(keyframe){
keyframe_startcode f(64)
}
- lsb_timestamp v
- stream_id v
+ zero_bit f(1)
priority u(2)
checksum_flag u(1)
msb_timestamp_flag u(1)
- reserved u(4)
+ reserved u(3)
+ lsb_timestamp v
+ stream_id v
if(msb_timestamp_flag)
msb_timestamp v
bitstream
@@ -256,6 +257,11 @@ sample_width/sample_height (aspect ratio)
depth
for compatibility with some win32 codecs
+zero_bit
+ MUST be 0, its there to distinguish non keyframes from other packets,
+ Note: all packets have a 64-bit startcode except non-keyframes to reduce
+ their size, and all startcodes start with a 1 bit
+
priority
if 0 then the frame isnt used as reference (b frame) and can be droped
MUST be > 0 for keyframes
@@ -325,6 +331,7 @@ headers MUST be repeated at least twice (so they exist 3 times in a file)
Index
the index can be repeated but there MUST be at least one at the end
+Note: in case of realtime streaming there is no end, so no index there either
Info packets
the info_packet can be repeated, it can also contain different names & values