MHEG-5  19.3.0
MHEG-5 Documentation
fpa1_tok.c
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2000 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
27 /*---includes for this file--------------------------------------------------*/
28 #include <stdio.h>
29 #include <stdlib.h>
30 
31 #include "vpa1_tgs.h"
32 #include "vpa1_rdf.h"
33 
34 #include "fpa1_cho.h"
35 #include "fpa1_set.h"
36 #include "fpa1_seq.h"
37 #include "fpa1_syn.h"
38 #include "fpa1_tok.h"
39 #include "fpa1_typ.h"
40 
41 /*---local typedef structs for this file-------------------------------------*/
42 #define TOK_GRP_SET_COMPS 6
43 
44 #define TOK_GRP_ITMS_SEQ_COMPS 2
45 
46 #define ACTION_SLOT_CHOICE_COMPS 2
47 
48 /*---constant definitions for this file--------------------------------------*/
49 
50 
51 /*---local (static) variable declarations for this file----------------------*/
52 
53 int tokGrpSetCompsArr[ 2 * TOK_GRP_SET_COMPS + 1 ]
54  = { 2 * TOK_GRP_SET_COMPS, /* array limit */
55  /* Presentable (Ingredient) */
56  OBJECT_REFERENCE_TYPE, SYN_NEEDED,
57  INITACTIVE, SYN_DEFAULT,
58  SHARED, SYN_DEFAULT,
59  /* TokenManager */
60  MOVEMENTTABLE, SYN_OPTIONAL,
61  /* TokenGroup */
62  TGITEMS, SYN_OPTIONAL,
63  NOTOKEN, SYN_OPTIONAL };
64 
65 int tokGrpItmsSeqCompArr[ 2 * TOK_GRP_ITMS_SEQ_COMPS + 1 ]
66  = { 2 * TOK_GRP_ITMS_SEQ_COMPS, /* limit */
67  OBJECT_REFERENCE_TYPE, SYN_NEEDED,
68  SEQ_SIZE_OF_ACTION_SLOT, SYN_OPTIONAL };
69 
70 int actSlotChoiceCompArr[ ACTION_SLOT_CHOICE_COMPS + 1 ]
71  = { ACTION_SLOT_CHOICE_COMPS + 1,
72  ACTION_CLASS_TYPE,
73  MHEG_NULL };
74 
75 /*---local function definitions----------------------------------------------*/
76 
77 /*---global function definitions---------------------------------------------*/
78 
Contains functions to decode MHEG-5 ASN.1 types.
Contains functions to decode MHEG-5 ASN.1 Token Group and Token Manager class components.
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
Typedefs for script reading functions.
Contains macros for MHEG-5 ASN.1 tags and structures.
Contains functions used to parse MHEG-5 ASN.1 SETs. SETs can have components in any order and as such...
Contains functions used to parse MHEG-5 ASN.1 SEQUENCEs. SEQUENCEs have components in order...