MHEG5  18.9.0
MHEG5 Documentation
fpa1_iac.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_iac.h"
35 #include "fpa1_set.h"
36 #include "fpa1_syn.h"
37 
38 /*******************
39  * LOCAL TYPEDEFS *
40  ********************/
41 
42 /*******************
43  * LOCAL MACROS *
44  ********************/
45 #define SLIDER_SET_COMPS 16
46 #define ENT_FLD_SET_COMPS 24
47 #define HYP_TXT_SET_COMPS 20
48 #define IAC_EXPLICIT 2
49 
50 /*******************
51  * EXPORTED DATA *
52  ********************/
53 
54 /*******************
55  * STATIC DATA *
56  ********************/
57 
59  = { 2 * SLIDER_SET_COMPS, /* array limit */
60  /* Ingredient */
64  /* Visible */
68  /* Interactible */
71  /* Slider */
79  SLIDEREFCOL, SYN_OPTIONAL };
80 
82  = { 2 * ENT_FLD_SET_COMPS, /* array limit */
83  /* Presentable (Ingredient) */
89  /* Visible */
93  /* Text */
104  /* Interactible */
107  /* EntryField */
111  MAXLEN, SYN_DEFAULT };
112 
114  = { 2 * HYP_TXT_SET_COMPS, /* array limit */
115  /* Presentable (Ingredient) */
121  /* Visible */
125  /* Text */
136  /* Interactible */
138  HIGHREFCOL, SYN_OPTIONAL };
139 
140 /**********************
141  * FUNCTION PROTOTYPES *
142  ***********************/
143 
151 {
152  /* SliderClass a SET - any order */
153  return fpa1_setParse( sliderSetCompsArr, filePosLimit );
154 } /* fpa1_decodeSlider () */
155 
163 {
164  /* EntryFieldClass a SET - any order */
165  return fpa1_setParse( entFldSetCompsArr, filePosLimit );
166 } /* fpa1_decodeEntryField () */
167 
175 {
176  /* HyperTextClass a SET - any order */
177  return fpa1_setParse( hypTxtSetCompsArr, filePosLimit );
178 } /* fpa1_decodeHyperText () */
179 
fpa1_syntaxList * fpa1_setParse(int *, vpa1_filePos)
Definition: fpa1_set.c:178
#define SYN_NEEDED
Definition: fpa1_syn.h:34
#define CHARLIST
Definition: vpa1_tgs.h:159
fpa1_syntaxList * fpa1_decodeSlider(vpa1_filePos filePosLimit)
Definition: fpa1_iac.c:150
#define SLSTYLE
Definition: vpa1_tgs.h:157
#define STEPSIZE
Definition: vpa1_tgs.h:156
#define HYP_TXT_SET_COMPS
Definition: fpa1_iac.c:47
#define MAXVAL
Definition: vpa1_tgs.h:152
#define SLIDER_SET_COMPS
Definition: fpa1_iac.c:45
#define FONTATTS
Definition: vpa1_tgs.h:92
#define INITACTIVE
Definition: vpa1_tgs.h:105
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
fpa1_syntaxList * fpa1_decodeEntryField(vpa1_filePos filePosLimit)
Definition: fpa1_iac.c:162
#define OPOSITION
Definition: vpa1_tgs.h:126
#define SYN_DEFAULT
Definition: fpa1_syn.h:36
Typedefs for script reading functions.
#define INPUTTYPE
Definition: vpa1_tgs.h:158
int sliderSetCompsArr[2 *SLIDER_SET_COMPS+1]
Definition: fpa1_iac.c:59
Contains macros for MHEG-5 ASN.1 tags and structures.
#define ENT_FLD_SET_COMPS
Definition: fpa1_iac.c:46
#define SHARED
Definition: vpa1_tgs.h:108
#define OCONTENT
Definition: vpa1_tgs.h:107
#define CHARSET
Definition: vpa1_tgs.h:87
#define SYN_OPTIONAL
Definition: fpa1_syn.h:35
#define HIGHREFCOL
Definition: vpa1_tgs.h:98
#define MINVAL
Definition: vpa1_tgs.h:153
#define INITPOR
Definition: vpa1_tgs.h:155
#define TCOL
Definition: vpa1_tgs.h:90
fpa1_syntaxList * fpa1_decodeHyperText(vpa1_filePos filePosLimit)
Definition: fpa1_iac.c:174
#define OBSCURED
Definition: vpa1_tgs.h:160
Contains functions to decode MHEG-5 ASN.1 Slider, Interactible, Entry Field, Hyper Text class compone...
#define OBOXSIZE
Definition: vpa1_tgs.h:125
int hypTxtSetCompsArr[2 *HYP_TXT_SET_COMPS+1]
Definition: fpa1_iac.c:114
#define LINEOR
Definition: vpa1_tgs.h:138
#define OFONT
Definition: vpa1_tgs.h:135
#define INITVAL
Definition: vpa1_tgs.h:154
#define BACKCOL
Definition: vpa1_tgs.h:88
#define TEXTWRAP
Definition: vpa1_tgs.h:140
Contains functions used to parse MHEG-5 ASN.1 SETs. SETs can have components in any order and as such...
#define ENGRESP
Definition: vpa1_tgs.h:150
#define HJUST
Definition: vpa1_tgs.h:136
int entFldSetCompsArr[2 *ENT_FLD_SET_COMPS+1]
Definition: fpa1_iac.c:82
long vpa1_filePos
Definition: vpa1_sys.h:47
#define SLIDEREFCOL
Definition: vpa1_tgs.h:99
#define MAXLEN
Definition: vpa1_tgs.h:161
#define STARTCORN
Definition: vpa1_tgs.h:139
#define ORIENTATION
Definition: vpa1_tgs.h:151
#define OPALREF
Definition: vpa1_tgs.h:127
#define CHOOK
Definition: vpa1_tgs.h:106
#define VJUST
Definition: vpa1_tgs.h:137