Information technology — Coding of multimedia and hypermedia information — Part 3: MHEG script interchange representation

Technologies de l'information — Codage de l'information multimédia et hypermédia — Partie 3: Représentation d'interéchange script MHEG

General Information

Status
Published
Publication Date
28-May-1997
Current Stage
9093 - International Standard confirmed
Completion Date
29-Jul-2019
Ref Project

Relations

Buy Standard

Standard
ISO/IEC 13522-3:1997 - Information technology -- Coding of multimedia and hypermedia information
English language
135 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

ISO/IEC
INTERNATIONAL
13522-3
STANDARD
First edition
1997-05-I 5
Information technology - Coding of
multimedia and hypermedia information -
Part 3:
MHEG script interchange representation
Codage de /‘information multimkdia et
Technologies de /‘information -
hypermedia -
Partie 3: Rep&en ta tion d ‘in terkhange script MHEG
Reference number
ISO/I EC 13522-3: 1997(E)

---------------------- Page: 1 ----------------------
ISO/I,EC 13522-3: 1997(E)
Contents
1
1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .~.
Scope
1
. . . . . . . . . . . . . . . .~.~.
11 . Context of the scope
1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .~.~.~.”.
12 . Scope of this part of ISO/IEC 13522
1
..,..................................................................~..................~....~.......~..,~.............,.
2 Normative references
2
3 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*.“.
6
4 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .“.“.”.~.~~.~~~~.
7
5 Conformance .
7
..........................................................................................
51 . Information object conformance
7
............................................................................................................
5.1 .I Profiles
7
.........................................................................................................
5.1.2 Encoding
8
.......................................................................................................
5.1.3 Syntax
8
.......................................................................................................
5.1.4 Semantics
8
..............................................................................................
52 . Implementation conformance
8
.............................................................................
Conformance requirements
5.2.1
8
...........................................................................
Conformance documentation
5.2.2
Y
. .*.,.~.~.
5.3 Application conformance
9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .~.~.
54 . Test Methods
9
6 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .~.”.~~~.~~~.~.~.~.~~~~~
Y
. . . . . . . . . . . . . . . . . . . . . . . . . .“.~.
61 . Description methodology
10
. . . . . . . . . . . . . . . . . . . . . . . . . . . .~.~.
62 . Data processing operations
10
. . . . . . . . . . . . . . . . . . .~.”.~.
63 . Access to external data and functions
11
.............................................................................................................
7 MHEG/MHEG-3 relationship
11
....................................................................................................................
7.1 MHEG entities
11
..............................................................................................................
7.2 Functional entities
12
...............................................................................................
73 . MHEG-SIR script interpreter
12
....................................................................................................................
8 Elements of MHEG-SIR
12
..........................................................................................................................
81 . Data types
13
.............................................................................................
8.1 .l Predefined types
13
Primitive types .
8.1 .l .l
.............................................. 14
8.1.1.1.1 . void type
14
8.1 .l .I .2 octet type .
14
8.1 .1.1.3 short type .
14
long type .
8.1 .1.1.4
14
unsigned short type .
8.1 .1.1.5
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,
electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher.
ISO/IEC Copyright Office l Case postale 56 l Cl-l-l 211 Geneve 20 l Switzerland
Printed in Switzerland
ii

---------------------- Page: 2 ----------------------
0 lSO/IEC ISOAEC 13522-3: 1997(E)
8.1.1.1.6 unsigned long type . 14
float type . 14
8.1.1.1.7
14
8.1.1.1.8 double type .
14
8.1.1.1.9 boolean type .
14
8.1.1.1.10 character type .
14
8.1.1.1.11 data identifier type .
15
8.1.1.1.12 object reference type .
15
8.1.1.2 Predefined constructed types .
............................ 15
8.1.2 Declared constructed types .
.......................................... .............................. 15
8.1.2.1 sequence types
string types . 16
8.1.2.2 .
array types . . 16
8.1.2.3
structure types . . 17
8.1.2.4
........................... .................. 17
8.1.2.5 union types .
....................................... 17
82 . Data .
......................................... ............. 18
8.2.1 Immediate values .
..................................................... 18
8.2.2 Constants .
....................................... 18
8.2.3 Variables .
Global variables . . . 19
8.2.3.1
Local variables . . 19
8.2.3.2
Dynamic variables . . 19
8.2.3.3
........................................... ........................................ 19
83 . Functions .
............................................................................................................. 20
8.3.1 Routines
20
............................................................................ ..................................
8.3.2 Services
................................................... ....................................... 21
8.3.3 Predefined functions
21
84 . Messages .
21
...........................................................................................
8.4.1 Package exceptions
........................................................................................ 22
8.4.2 Predefined messages
............................................................................ 22
. Instructions .
85
22
86 . Identifiers .
22
...................................................................................................
8.6.1 Type identifiers
................................................................................................... 23
8.6.2 Data identifiers
................................................ ............................................. 23
8.6.3 Function identifiers
............................................................................................ 23
8.6.4 Message identifiers
23
9 The MHEG-SIR virtual machine .
........................................................................... 24
. Structure of the MHEG-SIR virtual machine
91
24
Structures and notations .
92 .
24
9.2.1 Table .
................................................... 24
9.2.2 Stack .
25
9.2.3 Parameter stack .
..................................................... 25
9.2.4 Queue .
........................................................................................... 25
Data representation
9.2.5
........................................................................ 26
.................................................
93 . Memory areas
.................................................................................... 26
M h-script memory areas
9.3.1
27
................................................................................
9.3.1 .I Data areas
27
Type definition table .
9.3.1.1.1
27
Constant table .
9.3.1.1.2
.................. 27
Global variable definition table
9.3.1.1.3
27
...............................................................................
9.3.1.2 Code areas
.............................. 27
9.3.1.2.1 Routine definition table
............................ 28
9.3.1.2.2 Package definition table
.............................. 28
9.3.1.2.3 Service definition table
Exception definition table . 28
9.3.1.2.4
Handler definition table . 29
9.3.1.2.5
9.3.1.2.6 Program code area .
29
. . .
III

---------------------- Page: 3 ----------------------
0 ISO/IEC
ISO/IEC 13522=3:1997(E)
........................................ .............................................. 29
9.3.2 Rt-script memory areas
............................................................ 29
9.3.2.1 Dynamic memory areas
Variable table . .29
9.3.2.1 .l
Call stack . . 30
9.3.2.1.2
Parameter stack . 30
9.3.2.1.3
Message queue . 31
9.3.2.1.4
...... ........................................... 31
9.3.2.1.5 Heap
31
9.3.2.2 Registers .
Instruction pointer register . 32
9.3.2.2.1
Instruction register . 32
9.3.2.2.2
Error register . 32
9.3.2.2.3
Stack pointer register . 32
9.3.2.2.4
Frame pointer register . 32
9.3.2.2.5
Queue pointer register . 32
9.3.2.2.6
Function register . 32
9.3.2.2.7
........................................................................................................................ 33
94 . Script statuses
.............................................................................................. 33
Mh-script statuses
9.4.1
...................................... ....................................... 33
9.4.1 .I Not available
................................................................................... 33
9.4.1.2 Available
............................................................................................... 33
Rt-script statuses
9.4.2
................................... ........ .................................... 33
9.4.2.1 Not ready
.................................. .............................................. 33
9.4.2.2 Ready
34
Running . . .
9.4.2.3
34
Erroneous . .
9.4.2.4
34
.................................................................... .................................................
Processing units
95 .
34
.............................................................................................
9.5.1 Message reception
34
MHEG-3 API operations .
9.5.1 .l
.......................... 34
External exception .
9.5.1.2
....................................... 35
InstructionExecutionError exception.
9.5.1.3
35
MHEG-3 API exception .
9.5.1.4
35
.........................................................................................
Mh-script initialisation
9.5.2
35
..........................................................................................
Rt-script initialisation
9.5.3
36
.......................................................................................
Rt-script execution unit
9.5.4
36
.................................................................
MHEG-SIR instruction execution unit
9.5.5
36
..................................................... .....................................
10 Provisions for run-time environment access
36
........................................................................................................................
10.1 General model
37
..................................................................................................
Declaration of IDL interfaces
10.2
38
................................................
Invocation of external operations in an MHEG-SIR program.
10.3
................................................... 38
Handling of external exceptions in an MHEG-SIR program
10.4
....................................................... 38
Invocation of external operations by an MHEG-3 engine
10.5
......................................................... 38
Handling of external exceptions by an MHEG-3 engine
10.6
............................................................................................. 39
Platform mapping specifications
10.7
39
..............................................................................................
II Provisions for MHEG object manipulation
39
.............................................................................. ............................
Invoking MHEG actions
11.1
39
....................................................................
11.1.1 Sending messages to other scripts
40
.....................................................
11.1.2 Exchange of information with MHEG objects
40
...................................................................................................
Receiving MHEG messages
11.2
40
....................................... ........................................
11.2.1 MHEG-3 API run operations
40
........................................................................................
1 I .2.2 MHEG API exceptions
40
.........................................................................................................................
12 MHEG-SIR declarations
41
.....................................................................................................................
12.1 Type declaration
41
.....................................................................................................
12.1.1 Type identifier
41
....................................................................... ..........................
12.1.2 Type description
iv

---------------------- Page: 4 ----------------------
0 lSO/IEC ISO/IEC 13522=3:1997(E)
12.1.2.1 String description . 42
12.1.2.2 Sequence description . 42
12.1.2.3 Array description . 42
12.1.2.4 Structure description . 42
12.1.2.5 Union description . 42
12.2 Constant declaration . 43
12.2.1 Data identifier . 43
12.2.2 Type identifier . 43
.............................................
12.2.3 Constant value . 43
44
12.3 Global variable declaration .
..................................................................................................... 44
12.3.1 Data identifier
...............................................................
Type identifier . 44
12.3.2
Constant reference . 44
12.3.3
12.4 Package declaration . 45
........................................................
12.4.1 Package identifier . 45
................ 45
12.4.2 Name .
............................................................................................. 45
12.4.3 Service description
Function identifier . 45
12.4.3.1
Name . 46
12.4.3.2
Calling mode . . 46
12.4.3.3
Type identifier . 46
12.4.3.4
Parameter description . 46
12.4.3.5
12.4.3.5.1 Passing mode . 46
Type identifier . 47
12.4.3.5.2
......................................................................................... 47
‘I 2.4.4 Exception description
Message identifier . 47
12.4.4.1
Parameter description . 47
12.4.4.2
................................................................................................................ 47
12.5 Handler declaration
.............................................................................................. 48
12.5.1 Message identifier
............................................................................................... 48
12.5.2 Function identifier
............................................................. .................................................... 48
12.6 Routine declaration
............................................................................................... 48
12.6.1 Function identifier
..................................................................................................... 48
12.6.2 Type identifier
48
12.6.3 Parameter description .
........................................................................... 49
12.6.3.1 Passing mode
......................................................................... 49
12.6.3.2 Type identifier.
........................................... 49
Local variable declaration .
12.6.4
............................................... 49
12.6.4.1 Data identifier .
..................................... 49
12.6.4.2 Type identifier .
.................................................... 49
12.6.4.3 Constant reference. .
........................... 50
Program code .
12.6.5
.............................. 50
........................................................... .................................
13 MHEG-SIR instructions
.............................. 50
........................................................................
13.1 Presentation methodology
..................................... 50
Error conditions . .
13.1.1
......................................... 51
Formal specification .
13.1.2
................................. 51
Data table notation .
13.1.3
......................................... 51
Template instruction notation .
13.1.4
.................................................... 52
Primitives .
13.1.5
............................................. ................................... 52
Classification of MHEG-SIR instructions
13.2
................................................................... 54
Description of instructions .
13.3
............................................ 54
13.3.1 No operation .
54
13.3.2 Yield . .
54
13.3.3 Return .
................. 55
13.3.4 Free .
55
13.3.5 Not . .
V

---------------------- Page: 5 ----------------------
0 ISO/IEC
ISO/IEC 13522=3:1997(E)
............................................................................................... ................ 56
13.3.6 Or
........................................................................................................ 56
13.3.7 Exclusive or
57
13.3.8 And .
.................................................................................................. 57
13.3.9
Equal reference
58
13.3.10 .
Equal
58
13.3.11 .
Less than
....................................................................................................... 59
13.3.12 Greater than
.................................................................................................................. 59
Add
13.3.13
59
Subtract .
13.3.14
60
Multiply .
13.3.15
................................................................................................................. 60
Divide
13.3.16
................................................................................................................ 61
Negate
13.3.17
61
..........................................................................................................
Remainder
13.3.18
............................................................................................................ 62
Duplicate
13.3.19
............................................................................................................... 62
13.3.20 Convert
...................................................................................................... 62
13.3.21 Jump on true
63
.....................................................................................................
13.3.22 Jump on false
63
.................................................................................................................
13.3.23 Jump
................................................................................................................. 64
13.3.24 Shift
64
...........................................................................................
13.3.25 Get object reference
65
..............................................................................................
13.3.26 Long jump on true
65
.............................................................................................
13.3.27 Long jump on false
65
...........................................................................................................
13.3.28 Long jump
66
.................................................................................................................
13.3.29 Call
........................................................................................................ 67
13.3.30 External call
................................................................................................................ 68
Push
13.3.31
................................................................................................... 69
13.3.32 Push reference
.................................................................................................. 69
Push immediate
13.3.33
70
................................................................................................................
13.3.34
POP
70
.....................................................................................................
13.3.35 Pop reference
70
......................................................................................................
13.3.36 Pop contents
............................................................................................................... 71
13.3.37 Allocate
71
...........................................................................................................
13.3.38 Increment
72
..........................................................................................................
13.3.39 Decrement
72
................................................................................................................
13.3.40 Get
73
.......................................................................................................
13.3.41 Get contents
74
...............................................................................................................
13.3.42 Set
75
.......................................................................................................
13.3.43 Set contents
TP
............................................................................................................. f3
Type conversion rules
13.4
76
......................................................................................
Reversible conversions
13.4.1
........................................................................................... 76
Lossless extensions
13.4.2
........................................................ 76
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.