ISO/IEC TR 13818-5:1997
(Main)Information technology — Generic coding of moving pictures and associated audio information — Part 5: Software simulation
Information technology — Generic coding of moving pictures and associated audio information — Part 5: Software simulation
Technologies de l'information — Codage générique des images animées et des informations sonores associées — Partie 5: Simulation de logiciel
General Information
Relations
Standards Content (Sample)
TECHNICAL
ISO/IEC
REPORT
TR 138184
First edition
19974 2-l 5
Information technology - Generic coding
of moving pictures and associated audio
information -
Part 5:
Software simulation
Technologies de I’informa tion - Codage g&Grique des images animbes et
des informations sonores associkes -
Partie 5: Simulation de logiciel
Reference number
ISOA EC TR 13818-5: 1997(E)
---------------------- Page: 1 ----------------------
ISO/IEC TR 13818-5 : 1997 (E)
Contents
. . . . . . . . . . . . . . . . . . . .~. “.~.~. 1
1 GENERAL
.................................................................................................................................................................. 1
1.1 SCOPE
.................................................................................................................................... 1
1.2 NORMATIVE REFERENCES
2
TECHNICAL ELEMENTS . . . . . . . . . .0.*.~.~
2
........................................................................................................................................................ 2
2.1 DEFINITIONS
......................................................................................................................... 13
2.2 SYMBOLS AND ABBREVIATIONS
14
SYSTEMS SIMULATION . . . . . . . . . . . . .~.~. ”. “.
3
14
SOFTWARE INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 SYSTEMS DOCUMENTATION FILES
1.5
3.2. I Readme . . . . , . . . . . . . . . . . . . . . . . . . . . , . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
/5
3.2.2 doc.tex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “.
SYSTEMS CODE LISTINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . “. 18
3.3
.............................................. /8
3.3.1 Consumer. C .
18
Consumer. H .
3.3.2
/ 8
Decoder. C
3.3.3 .
Decoder. H . I9
3.3.4 .
20
3.3.5 Directory. C .
2 1
Directory. H. .
3.3.6
22
Encoder. C
3.3.7 .
..................................................................................................................................................... 23
3.3.8 Encoder. H
Even ts. C . 24
3.3.9
Events. H . . . 24
3.3.10
24
3.3.11 IPortFromFile. C .
AL 35
3.3.12 IPortFromFile. H .
I
IPortFromRam. C . 3.5
3.3.13
26
3.3.14 IPortFromRam. H .
26
3.3.1.5 InputPort. C .
InputPort. H . 27
3.3.16
28
3.3. I7 Makefile .
3.3.18 OPortToFile. C . 28
OPort ToFile. H . 28
3.3.19 .
29
3.3.20 OPortToRam. C .
29
3.3.21 OPortToRam. H.
.......................................................................................................................................
29
OutputPort. C
3.3.22 .
30
3.3.23 OutputPort. H .
3.3.24 PES.C . 31
3.3.25 PES. H . 32
33
3.3.26 PESConsumer. C .
34
3.3.27 PESConsumer. H .
3.3.28 35
PESProducer. C . .
3 6
3.3.29 PESProducer. H .
....................................................................................................................
3.3.30 Poly. c - - 37
.......................................................................................................................................................
3.3.31 P0ly.H. 37
.....................................................................................................................................................
3.3.32 Producer. C . . 37
3.3.33 Producer. H . 38
...............................................................................................................
3.3.34 Section. C . . 38
0 ISO/IEC 1997
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means. electronie or
mechanical, including photocopying and microfilm, without Permission in writing from the publisher.
ISO/IEC Copyright Office l Case postale 56 l Cl-I-121 1 Geneve 28 l Switzerland
Printed in Switzerland
ii
---------------------- Page: 2 ----------------------
ISO/IEC TR 13818-5 : 1997 (E)
0 ISOIIEC
38
...................................................................................................................................................
3.3.35 Section. H
39
..................................................................................................................................
3.3.36 SectionConsumers. C
41
..................................................................................................................................
3.3.37 SectionConsumers. H
41
SectionProducers. C .
3.3.38
42
...................................................................................................................................
SectionProducers. H
3.3.39
42
TS. C .
3.3.40
43
...........................................................................................................................................................
TS.H
3.3.41
44
...........................................................................................................................................
3.3.42 TSConsumer. C
45
...........................................................................................................................................
3.3.43 TSConsumer. H
45
TSProducer. C .
3.3.44
46
............................................................................................................................................
3.3.45 TSProducer. H
46
.............................................................................................................................................
3.3.46 TimeStamp. C
47
TimeStamp. H .
3.3.47
47
Utilities. C .
3.3.48
47
3.3.49 Utilities. H .
48
....................................................................................................................................................
3.3.50 decode. C
49
....................................................................................................................................................
3.3.51 encode. C
49
.......................................................................................................................................................
3.3.52 pesin. C
50
pesout. C .
3.3.53
51
4 VIDEO SIMULATION .
52
...........................................................................................................................
4.1 VIDEO DOCUMENTATION FILES
52
README .
4.1.1
53
4.1.2 doc/ARCHITECTURE .
......................................................................................................................................... 53
4.1.3 doc/mpeg2dec.doc
doc/mpeg2enc.doc . 54
4.1.4
VIDEO ENCODER LISTINGS . 58
4.2
58
4.2.1 encoder/CHANGES .
........................................................................................................................................... 58
4.2.2 encoder/Makefile
............................................................................................................................................ 58
4.2.3 encoder/config. h
......................................................................................................................................... 58
4.2.4 encoder/conform.c
encoder/fdctre& c . 60
4.2.5
............................................................................................................................................ 60
4.2.6 encoder/global. h
................................................................................................................................................ 62
4.2.7 encoder/idct.c
encoder/motion. c . 62
4.2.8
4.2.9 encoder/mpeg2enc.c . 69
72
4.2.10 encoder/mpeg2enc. h .
....................................................................................................................................... 72
4.2.11 encoder/predict.c
encoder/putbits.c . 75
4.2.12
encoder/puthdr.c . 75
4.2.13
4.2.14 encoder/putmpg.c . 76
4.2.15 encoder/putpic.c . 77
........................................................................................................................................ 78
4.2.16 encoder/pu tseq. c
4.2.17 encoderYputv1c.c . 80
4.2.18 enc0derYquantize.c . 81
........................................................................................................................................
4.2.19 encoder/ratectl.c 82
encoder/readpic.c . 84
4.2.20
4.2.21 encoder/stats.c . 86
4.2.22 encoder/transfrm. c . 88
.............................................................................................................................................
4.2.23 encoder/vlc. h 89
encoder/writepic. c . 91
4.2.24
4.3 VIDEO DECODER LISTINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
4.3.1 decoder/CHANGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.2 decoder/EXAMPLES 92
decoder/IEEEll80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.3 92
4.3.4 decoder/Makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
93
4.3.5 decoder/README . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
. . .
111
---------------------- Page: 3 ----------------------
0 ISO/IEC
ISOAEC TR 13818-5 : 1997 (E)
94
.................................................................................................................................
4.3.6 decoder/SPATIAL. DOC
95
..............................................................................................................................................
decoder/TODO
4.3.7
95
............................................................................................................................................
4.3.8 decoder/config. h
95
...........................................................................................................................................
4.3.9 decoderYdisp1ay.c
101
......................................................................................................................................
decoder/getbits.c
4.3.10
101
.......................................................................................................................................
decoder(getb1k.c
4.3.11
104
......................................................................................................................................
decoder/gethdr.c
4.3.12
108
.......................................................................................................................................
4.3.13 decoder/getpic.c
113
decoderYgetv1c.c .
4.3.14
117
.......................................................................................................................................
decoder/getvlc. h
4.3.15
119
......................................................................................................................................
decoder/global. h
4.3.16
12I
..........................................................................................................................................
4.3.17 decoder1idct.c
122
decoder/idctref c .
4.3.18
123
decoder/motion.c .
4.3.19
124
................................................................................................................................
4.3.20 decoder/mpeg2dec.c
127
................................................................................................................................
4.3.21 decoder/mpeg2dec. h
127
decoder/recon. c .
4.3.22
130
decoder/spatscal.c .
4.3.23
131
decoder/store.c .
4.3.24
133
decoder/subspic.c .
4.3.25
135
....................................................................................................................................
4.3.26 decoder/systems.c
136
.......................................................................................................................................
4.3.27 decoder/verij) c
................................................................................................................................. 138
VIDEOPARAMETERFILES
4.4
138
.........................................................................................................................................
par/MPEG-1 .par
4.4.1
138
..............................................................................................................................................
4.4.2 par/NTSC.par
138
.................................................................................................................................................
4.4.3 par/PAL.par
................................................................................................................................................ 138
par/inter.mat
4.4.4
138
................................................................................................................................................
4.4.5 par/intra.mat
......................................................................................................................................... 140
5 AUDI0 SIMULATION
140
VERIFICATIONOFTHESIMULATIONSOJTWARE .
5.1
143
AUDIODOCUMENTATIONLISTINGS .
5.2
.................................................................................................................................................. 143
5.2.1 Readme. 1 st
............................................................................................................................................ 143
5.2.2 doc/readme. 1 st
doc/readme.dp.Ol. txt . 144
5.2.3
146
doc/readme.jmz.Ol. txt .
5.2.4
.................................................................................................................................. 147
5.2.5 doc/readme.jmz.02. txt
doc/readme.jmz. 03. txt . 147
5.2.6
5.2.7 doc/readme.jmz. 04. txt . 148
5.2.8 doc/readme.mc.OI. txt . 148
5.2.9 doc/readme. rb. 01. txt . 149
149
5.2.10 doc/readme. sn. 01. txt .
doc/readme.sr.Ol. txt . 149
5.2.11
doc/readme.sr.02. txt . 149
5.2.12
5.2.13 doc/readme.ss.Ol. txt . 150
151
5.3 AUDIOIBWSAMPLINGFXEQUENCIESENCODERLISTINGS .
lsf/encoder/INSTALL . 151
5.3.1
5.3.2 lsf/encoder/Makefile . 151
5.3.3 lsf/encoder/Makefile. in . 151
lsf/encoderlcommon. c . 151
5.3.4
lsf/encoderlcommon. h . 158
5.3.5
5.3.6 lsf/encoder/configure . 160
5.3.7 lsf/encoder/encode. c . 163
lsf/encoder/encoder. h . 169
5.3.8
lsf/encoder/formatBitstream.c . 170
5.3.9
5.3.10 lsf/encoder/formatBitstream. h . 172
5.3.11 lsf/encoder/huffman. c . 173
iv
---------------------- Page: 4 ----------------------
ISO/IEC TR 138184 : 1997 (E)
0 ISO/IEC
175
..............................................................................................................................
5.3.12 lsf/encoder/huffman. h
175
..............................................................................................................................
5.3.13 lsf/encoder/ieeeJZoa t. c
179
..............................................................................................................................
5.3.14 lsf/encoder/ieeefloat. h
180
...................................................................................................................
lsf/encoder/l3bitstream-pvt. h
5.3.15
180
.........................................................................................................................
lsf/encoder/l3bitstream. c
5.3.16
183
.........................................................................................................................
5.3.17 lsf/encoder/13bitstream. h
184
...................................................................................................................................
5.3.18 lsf/encoder/l3psy. c
188
lsf/encoder/l3psy. h .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.