MythTV master
ASN1Codes.h
Go to the documentation of this file.
1/* ASN1Codes.h
2
3 Copyright (C) David C. J. Matthews 2004 dm at prolingua.co.uk
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 Or, point your browser to http://www.gnu.org/copyleft/gpl.html
19
20*/
21#ifndef ASN1CODES_H
22#define ASN1CODES_H
23
24// Universal codes _ standard across all ASN1 definitions
25enum UNIVERSAL_CODES : std::uint8_t {
26 U_BOOL = 1,
27 U_INT = 2,
29 U_NULL = 5,
30 U_ENUM = 10,
32};
33
34// Context_specific codes _ defined for MHEG 5
35enum SPECIFIC_CODES : std::uint8_t {
49 C_FONT = 13,
56 C_LINK = 20,
65 C_TEXT = 29,
78 C_FONT2 = 42,
100 C_NAME = 64,
152 C_ADD = 116,
154 C_APPEND = 118,
156 C_CALL = 120,
158 C_CLEAR = 122,
159 C_CLONE = 123,
165 C_DIVIDE = 129,
173 C_FORK = 137,
202 C_LAUNCH = 166,
204 C_MODULO = 168,
205 C_MOVE = 169,
212 C_QUIT = 176,
214 C_RUN = 178,
218 C_SELECT = 182,
250 C_SPAWN = 214,
251 C_STEP = 215,
252 C_STOP = 216,
256 C_TOGGLE = 220,
259 C_UNLOAD = 223,
273/* UK MHEG */
286// Added in ETSI ES 202 184 V2.1.1 (2010-01)
291};
292
293// Pseudo-codes. These are encoded into the link condition in binary but it's convenient
294// to give them codes here since that way we can include them in the same lookup table.
295enum PSEUDO_CODES : std::uint8_t {
299// The :ActionSlots tag appears in the textual form but not in binary.
301};
302
303#endif
PSEUDO_CODES
Definition: ASN1Codes.h:295
@ P_EVENT_DATA
Definition: ASN1Codes.h:298
@ P_EVENT_TYPE
Definition: ASN1Codes.h:297
@ P_EVENT_SOURCE
Definition: ASN1Codes.h:296
@ P_ACTION_SLOTS
Definition: ASN1Codes.h:300
UNIVERSAL_CODES
Definition: ASN1Codes.h:25
@ U_STRING
Definition: ASN1Codes.h:28
@ U_BOOL
Definition: ASN1Codes.h:26
@ U_ENUM
Definition: ASN1Codes.h:30
@ U_SEQUENCE
Definition: ASN1Codes.h:31
@ U_INT
Definition: ASN1Codes.h:27
@ U_NULL
Definition: ASN1Codes.h:29
SPECIFIC_CODES
Definition: ASN1Codes.h:35
@ C_SET_FONT_ATTRIBUTES
Definition: ASN1Codes.h:278
@ C_OBJECT_REFERENCE
Definition: ASN1Codes.h:104
@ C_MULTIPLE_SELECTION
Definition: ASN1Codes.h:111
@ C_CLOSE_CONNECTION
Definition: ASN1Codes.h:160
@ C_SET_POSITION
Definition: ASN1Codes.h:243
@ C_OBJECT_REF_VARIABLE
Definition: ASN1Codes.h:54
@ C_MIN_VALUE
Definition: ASN1Codes.h:140
@ C_GET_BOX_SIZE
Definition: ASN1Codes.h:175
@ C_BITMAP
Definition: ASN1Codes.h:58
@ C_COMPONENT_TAG
Definition: ASN1Codes.h:134
@ C_SET_SLIDER_VALUE
Definition: ASN1Codes.h:244
@ C_SET_LINE_STYLE
Definition: ASN1Codes.h:238
@ C_APPEND
Definition: ASN1Codes.h:154
@ C_SET_FIRST_ITEM
Definition: ASN1Codes.h:232
@ C_MODULO
Definition: ASN1Codes.h:204
@ C_TERMINATION
Definition: ASN1Codes.h:136
@ C_STORAGE
Definition: ASN1Codes.h:129
@ C_GET_DESKTOP_COLOUR
Definition: ASN1Codes.h:287
@ C_ORIGINAL_VALUE
Definition: ASN1Codes.h:103
@ C_ORIGINAL_VOLUME
Definition: ASN1Codes.h:135
@ C_HYPER_TEXT
Definition: ASN1Codes.h:67
@ C_ORIGINAL_CONTENT
Definition: ASN1Codes.h:94
@ C_SEND_EVENT
Definition: ASN1Codes.h:220
@ C_GET_COUNTER_POSITION
Definition: ASN1Codes.h:289
@ C_NEW_GENERIC_OCTETSTRING
Definition: ASN1Codes.h:263
@ C_DRAW_POLYGON
Definition: ASN1Codes.h:169
@ C_GET_RUNNING_STATUS
Definition: ASN1Codes.h:195
@ C_SET_LABEL
Definition: ASN1Codes.h:236
@ C_ITEMS
Definition: ASN1Codes.h:44
@ C_SLIDER_STYLE
Definition: ASN1Codes.h:144
@ C_ENTRY_FIELD
Definition: ASN1Codes.h:66
@ C_OCTET_STRING_VARIABLE
Definition: ASN1Codes.h:53
@ C_GET_FILL_COLOUR
Definition: ASN1Codes.h:180
@ C_GET_FIRST_ITEM
Definition: ASN1Codes.h:181
@ C_FONT_ATTRIBUTES
Definition: ASN1Codes.h:79
@ C_SET_TIMER
Definition: ASN1Codes.h:246
@ C_GET_LABEL
Definition: ASN1Codes.h:185
@ C_DRAW_ARC
Definition: ASN1Codes.h:166
@ C_ORIGINAL_REF_FILL_COLOUR
Definition: ASN1Codes.h:121
@ C_DRAW_OVAL
Definition: ASN1Codes.h:168
@ C_STORE_PERSISTENT
Definition: ASN1Codes.h:253
@ C_QUIT
Definition: ASN1Codes.h:212
@ C_SCALE_BITMAP
Definition: ASN1Codes.h:215
@ C_ORIGINAL_LINE_WIDTH
Definition: ASN1Codes.h:118
@ C_DRAW_POLYLINE
Definition: ASN1Codes.h:170
@ C_READ_PERSISTENT
Definition: ASN1Codes.h:213
@ C_TOKEN_GROUP_ITEMS
Definition: ASN1Codes.h:107
@ C_SELECT_ITEM
Definition: ASN1Codes.h:219
@ C_PROGRAM_CONNECTION_TAG
Definition: ASN1Codes.h:102
@ C_WRAP_AROUND
Definition: ASN1Codes.h:110
@ C_ADD_ITEM
Definition: ASN1Codes.h:153
@ C_GET_LINE_WIDTH
Definition: ASN1Codes.h:189
@ C_ORIGINAL_REF_LINE_COLOUR
Definition: ASN1Codes.h:120
@ C_ORIGINAL_POSITION
Definition: ASN1Codes.h:113
@ C_DIVIDE
Definition: ASN1Codes.h:165
@ C_INITIALLY_ACTIVE
Definition: ASN1Codes.h:92
@ C_BACKGROUND_COLOUR
Definition: ASN1Codes.h:75
@ C_ENGINE_RESP
Definition: ASN1Codes.h:137
@ C_LAUNCH
Definition: ASN1Codes.h:202
@ C_TEXT_CONTENT_HOOK
Definition: ASN1Codes.h:76
@ C_SPAWN
Definition: ASN1Codes.h:250
@ C_DRAW_LINE
Definition: ASN1Codes.h:167
@ C_MULTIPLEX
Definition: ASN1Codes.h:128
@ C_BRING_TO_FRONT
Definition: ASN1Codes.h:155
@ C_UNLOAD
Definition: ASN1Codes.h:259
@ C_GET_TEXT_CONTENT
Definition: ASN1Codes.h:198
@ C_GET_COUNTER_MAX_POSITION
Definition: ASN1Codes.h:290
@ C_DRAW_SECTOR
Definition: ASN1Codes.h:172
@ C_STREAM_CONTENT_HOOK
Definition: ASN1Codes.h:81
@ C_SET_INPUT_REGISTER
Definition: ASN1Codes.h:276
@ C_GET_BITMAP_DECODE_OFFSET
Definition: ASN1Codes.h:284
@ C_HORIZONTAL_JUSTIFICATION
Definition: ASN1Codes.h:123
@ C_PUSH_BUTTON
Definition: ASN1Codes.h:64
@ C_SELECT
Definition: ASN1Codes.h:218
@ C_TRANSITION_TO
Definition: ASN1Codes.h:258
@ C_GET_CURSOR_POSITION
Definition: ASN1Codes.h:177
@ C_DYNAMIC_LINE_ART
Definition: ASN1Codes.h:60
@ C_SET_COUNTER_TRIGGER
Definition: ASN1Codes.h:226
@ C_INTEGER_VARIABLE
Definition: ASN1Codes.h:52
@ C_CLONE
Definition: ASN1Codes.h:159
@ C_INITIALLY_AVAILABLE
Definition: ASN1Codes.h:101
@ C_TEST_VARIABLE
Definition: ASN1Codes.h:255
@ C_STANDARD_VERSION
Definition: ASN1Codes.h:39
@ C_INDIRECTREFERENCE
Definition: ASN1Codes.h:272
@ C_IP_CONTENT_HOOK
Definition: ASN1Codes.h:80
@ C_INPUT_TYPE
Definition: ASN1Codes.h:145
@ C_HOTSPOT
Definition: ASN1Codes.h:62
@ C_DRAW_RECTANGLE
Definition: ASN1Codes.h:171
@ C_GET_FOCUS_POSITION
Definition: ASN1Codes.h:281
@ C_CHAR_LIST
Definition: ASN1Codes.h:146
@ C_SCENE
Definition: ASN1Codes.h:37
@ C_LINK_CONDITION
Definition: ASN1Codes.h:98
@ C_SET_COUNTER_POSITION
Definition: ASN1Codes.h:225
@ C_SET_TRANSPARENCY
Definition: ASN1Codes.h:247
@ C_SET_COUNTER_END_POSITION
Definition: ASN1Codes.h:224
@ C_GET_LINE_STYLE
Definition: ASN1Codes.h:188
@ C_SLIDER_REF_COLOUR
Definition: ASN1Codes.h:86
@ C_DEFAULT_ATTRIBUTES
Definition: ASN1Codes.h:73
@ C_TEXT_WRAPPING
Definition: ASN1Codes.h:127
@ C_SCALE_VIDEO
Definition: ASN1Codes.h:216
@ C_GET_SLIDER_VALUE
Definition: ASN1Codes.h:197
@ C_NEW_CONTENT_CACHE_PRIO
Definition: ASN1Codes.h:271
@ C_ORIGINAL_LINE_STYLE
Definition: ASN1Codes.h:119
@ C_LINK_EFFECT
Definition: ASN1Codes.h:99
@ C_BITMAP_CONTENT_HOOK
Definition: ASN1Codes.h:82
@ C_GET_POSITION
Definition: ASN1Codes.h:194
@ C_GET_TEXT_DATA
Definition: ASN1Codes.h:199
@ C_GET_LIST_SIZE
Definition: ASN1Codes.h:191
@ C_RESIDENT_PROGRAM
Definition: ASN1Codes.h:45
@ C_SCENE_COORDINATE_SYSTEM
Definition: ASN1Codes.h:88
@ C_GET_ENTRY_POINT
Definition: ASN1Codes.h:179
@ C_GET_LIST_ITEM
Definition: ASN1Codes.h:190
@ C_RUN
Definition: ASN1Codes.h:214
@ C_LOOPING
Definition: ASN1Codes.h:130
@ C_UNLOCK_SCREEN
Definition: ASN1Codes.h:260
@ C_INTERCHANGED_PROGRAM
Definition: ASN1Codes.h:47
@ C_CONTENT_REF_VARIABLE
Definition: ASN1Codes.h:55
@ C_STREAM
Definition: ASN1Codes.h:57
@ C_ADD
Definition: ASN1Codes.h:152
@ C_SET_BITMAP_DECODE_OFFSET
Definition: ASN1Codes.h:283
@ C_DEACTIVATE
Definition: ASN1Codes.h:161
@ C_NAME
Definition: ASN1Codes.h:100
@ C_AUDIO
Definition: ASN1Codes.h:131
@ C_GET_HIGHLIGHT_STATUS
Definition: ASN1Codes.h:182
@ C_ACTIVATE
Definition: ASN1Codes.h:151
@ C_APPLICATION
Definition: ASN1Codes.h:36
@ C_BUTTON_STYLE
Definition: ASN1Codes.h:150
@ C_TOGGLE
Definition: ASN1Codes.h:256
@ C_MOVEMENT_TABLE
Definition: ASN1Codes.h:106
@ C_INITIAL_PORTION
Definition: ASN1Codes.h:142
@ C_CLEAR
Definition: ASN1Codes.h:158
@ C_VIDEO
Definition: ASN1Codes.h:132
@ C_SET_LINE_WIDTH
Definition: ASN1Codes.h:239
@ C_GET_SELECTION_STATUS
Definition: ASN1Codes.h:196
@ C_SET_DATA
Definition: ASN1Codes.h:229
@ C_TOGGLE_ITEM
Definition: ASN1Codes.h:257
@ C_NEW_FONT_REFERENCE
Definition: ASN1Codes.h:269
@ C_ON_CLOSE_DOWN
Definition: ASN1Codes.h:42
@ C_NEW_GENERIC_BOOLEAN
Definition: ASN1Codes.h:261
@ C_LINK
Definition: ASN1Codes.h:56
@ C_SET_FOCUS_POSITION
Definition: ASN1Codes.h:282
@ C_INITIAL_VALUE
Definition: ASN1Codes.h:141
@ C_PALETTE
Definition: ASN1Codes.h:48
@ C_ORIENTATION
Definition: ASN1Codes.h:138
@ C_GET_LAST_ANCHOR_FIRED
Definition: ASN1Codes.h:186
@ C_CONTENT_CACHE_PRIORITY
Definition: ASN1Codes.h:97
@ C_CONTENT_HOOK
Definition: ASN1Codes.h:93
@ C_SHARED
Definition: ASN1Codes.h:95
@ C_SET_CURSOR_SHAPE
Definition: ASN1Codes.h:228
@ C_SET_TEXT_COLOUR
Definition: ASN1Codes.h:277
@ C_NEW_ABSOLUTE_COLOUR
Definition: ASN1Codes.h:267
@ C_NEW_GENERIC_CONTENT_REF
Definition: ASN1Codes.h:265
@ C_GET_LINE_COLOUR
Definition: ASN1Codes.h:187
@ C_ASPECT_RATIO
Definition: ASN1Codes.h:89
@ C_CALL_ACTION_SLOT
Definition: ASN1Codes.h:157
@ C_GET_PORTION
Definition: ASN1Codes.h:193
@ C_GET_INTERACTION_STATUS
Definition: ASN1Codes.h:183
@ C_SET_CELL_POSITION
Definition: ASN1Codes.h:275
@ C_ORIGINAL_LABEL
Definition: ASN1Codes.h:149
@ C_SET_CACHE_PRIORITY
Definition: ASN1Codes.h:223
@ C_GET_ENGINE_SUPPORT
Definition: ASN1Codes.h:178
@ C_MAX_VALUE
Definition: ASN1Codes.h:139
@ C_OBJECT_INFORMATION
Definition: ASN1Codes.h:40
@ C_SET_HIGHLIGHT_STATUS
Definition: ASN1Codes.h:234
@ C_MOVE_TO
Definition: ASN1Codes.h:206
@ C_GET_CELL_ITEM
Definition: ASN1Codes.h:176
@ C_SET_SPEED
Definition: ASN1Codes.h:245
@ C_NO_TOKEN_ACTION_SLOTS
Definition: ASN1Codes.h:108
@ C_SET_CURSOR_POSITION
Definition: ASN1Codes.h:227
@ C_SET_PORTION
Definition: ASN1Codes.h:242
@ C_FONT2
Definition: ASN1Codes.h:78
@ C_PUT_BEFORE
Definition: ASN1Codes.h:210
@ C_SET_SLIDER_PARAMETERS
Definition: ASN1Codes.h:285
@ C_DESELECT
Definition: ASN1Codes.h:163
@ C_DESELECT_ITEM
Definition: ASN1Codes.h:164
@ C_MAX_LENGTH
Definition: ASN1Codes.h:148
@ C_TEXT_COLOUR
Definition: ASN1Codes.h:77
@ C_ORIGINAL_PALETTE_REF
Definition: ASN1Codes.h:114
@ C_MOVING_CURSOR
Definition: ASN1Codes.h:90
@ C_BUTTON_REF_COLOUR
Definition: ASN1Codes.h:84
@ C_STEP
Definition: ASN1Codes.h:251
@ C_START_CORNER
Definition: ASN1Codes.h:126
@ C_STOP
Definition: ASN1Codes.h:252
@ C_STEP_SIZE
Definition: ASN1Codes.h:143
@ C_SEND_TO_BACK
Definition: ASN1Codes.h:221
@ C_SLIDER
Definition: ASN1Codes.h:68
@ C_CHARACTER_SET
Definition: ASN1Codes.h:74
@ C_SET_VOLUME
Definition: ASN1Codes.h:249
@ C_SET_FONT_REF
Definition: ASN1Codes.h:233
@ C_INPUT_EVENT_REGISTER
Definition: ASN1Codes.h:87
@ C_VERTICAL_JUSTIFICATION
Definition: ASN1Codes.h:124
@ C_BOOLEAN_VARIABLE
Definition: ASN1Codes.h:51
@ C_NEW_COLOUR_INDEX
Definition: ASN1Codes.h:266
@ C_LINE_ART_CONTENT_HOOK
Definition: ASN1Codes.h:83
@ C_POSITIONS
Definition: ASN1Codes.h:109
@ C_SET_DESKTOP_COLOUR
Definition: ASN1Codes.h:288
@ C_SWITCH_BUTTON
Definition: ASN1Codes.h:63
@ C_TEXT
Definition: ASN1Codes.h:65
@ C_SET_PALETTE_REF
Definition: ASN1Codes.h:241
@ C_LOCK_SCREEN
Definition: ASN1Codes.h:203
@ C_NEW_FONT_NAME
Definition: ASN1Codes.h:268
@ C_GET_VIDEO_DECODE_OFFSET
Definition: ASN1Codes.h:280
@ C_MULTIPLY
Definition: ASN1Codes.h:207
@ C_GET_OVERWRITE_MODE
Definition: ASN1Codes.h:192
@ C_ORIGINAL_BOX_SIZE
Definition: ASN1Codes.h:112
@ C_CONTENT_REFERENCE
Definition: ASN1Codes.h:105
@ C_RTGRAPHICS
Definition: ASN1Codes.h:133
@ C_ORIGINAL_TRANSPARENCY
Definition: ASN1Codes.h:116
@ C_SET_FILL_COLOUR
Definition: ASN1Codes.h:231
@ C_TOKEN_GROUP
Definition: ASN1Codes.h:69
@ C_SET_INTERACTION_STATUS
Definition: ASN1Codes.h:235
@ C_SET_VIDEO_DECODE_OFFSET
Definition: ASN1Codes.h:279
@ C_ON_START_UP
Definition: ASN1Codes.h:41
@ C_SUBTRACT
Definition: ASN1Codes.h:254
@ C_DEL_ITEM
Definition: ASN1Codes.h:162
@ C_ON_SPAWN_CLOSE_DOWN
Definition: ASN1Codes.h:71
@ C_MOVE
Definition: ASN1Codes.h:205
@ C_NEXT_SCENES
Definition: ASN1Codes.h:91
@ C_GET_ITEM_STATUS
Definition: ASN1Codes.h:184
@ C_PUT_BEHIND
Definition: ASN1Codes.h:211
@ C_CURSOR_SHAPE
Definition: ASN1Codes.h:50
@ C_STANDARD_IDENTIFIER
Definition: ASN1Codes.h:38
@ C_CONTENT_SIZE
Definition: ASN1Codes.h:96
@ C_REMOTE_PROGRAM
Definition: ASN1Codes.h:46
@ C_LINE_ART
Definition: ASN1Codes.h:59
@ C_FORK
Definition: ASN1Codes.h:173
@ C_ORIGINAL_FONT
Definition: ASN1Codes.h:122
@ C_ORIGINAL_GC_PRIORITY
Definition: ASN1Codes.h:43
@ C_OBSCURED_INPUT
Definition: ASN1Codes.h:147
@ C_LINE_ORIENTATION
Definition: ASN1Codes.h:125
@ C_SCROLL_ITEMS
Definition: ASN1Codes.h:217
@ C_BORDERED_BOUNDING_BOX
Definition: ASN1Codes.h:117
@ C_GET_VOLUME
Definition: ASN1Codes.h:201
@ C_ON_RESTART
Definition: ASN1Codes.h:72
@ C_GET_TOKEN_POSITION
Definition: ASN1Codes.h:200
@ C_SET_LINE_COLOUR
Definition: ASN1Codes.h:237
@ C_SET_VARIABLE
Definition: ASN1Codes.h:248
@ C_NEW_GENERIC_OBJECT_REF
Definition: ASN1Codes.h:264
@ C_SET_ENTRY_POINT
Definition: ASN1Codes.h:230
@ C_FONT
Definition: ASN1Codes.h:49
@ C_LIST_GROUP
Definition: ASN1Codes.h:70
@ C_GET_AVAILABILITY_STATUS
Definition: ASN1Codes.h:174
@ C_CALL
Definition: ASN1Codes.h:156
@ C_PRELOAD
Definition: ASN1Codes.h:209
@ C_NEW_GENERIC_INTEGER
Definition: ASN1Codes.h:262
@ C_SET_BACKGROUND_COLOUR
Definition: ASN1Codes.h:274
@ C_NEW_CONTENT_SIZE
Definition: ASN1Codes.h:270
@ C_HIGHLIGHT_REF_COLOUR
Definition: ASN1Codes.h:85
@ C_SET_OVERWRITE_MODE
Definition: ASN1Codes.h:240
@ C_SET_BOX_SIZE
Definition: ASN1Codes.h:222
@ C_OPEN_CONNECTION
Definition: ASN1Codes.h:208
@ C_TILING
Definition: ASN1Codes.h:115
@ C_RECTANGLE
Definition: ASN1Codes.h:61