MHEG5  18.9.0
MHEG5 Documentation
fpa1_stm.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_syn.h"
37 
38 /*---local typedef structs for this file-------------------------------------*/
39 
40 /*---constant definitions for this file--------------------------------------*/
41 #define STREAM_SET_COMPS 8
42 #define AUDIO_SET_COMPS 4
43 #define VID_SET_COMPS 6
44 #define RTG_SET_COMPS 7
45 
46 #define STM_CMP_CHOICE_COMPS 3
47 
48 
49 /*---local (static) variable declarations for this file----------------------*/
50 
52  = { 2 * STREAM_SET_COMPS, /* array limit */
53  /* Presentable (Ingredient) */
59  /* Stream */
62  LOOPING, SYN_OPTIONAL };
63 
64 int audioSetCompsArr[ 2 * AUDIO_SET_COMPS + 1 ]
65  = { 2 * AUDIO_SET_COMPS, /* array limit */
66  /* Presentable (Ingredient) */
69  /* Audio */
71  OVOLUME, SYN_DEFAULT };
72 
73 int videoSetCompsArr[ 2 * VID_SET_COMPS + 1 ]
74  = { 2 * VID_SET_COMPS, /* array limit */
75  /* Ingredient */
78  /* Visible */
81  /* Video/RTGraphics */
83  TERMIN, SYN_DEFAULT };
84 
85 int rtgSetCompsArr[ 2 * RTG_SET_COMPS + 1 ]
86  = { 2 * RTG_SET_COMPS, /* array limit */
87  /* Ingredient */
90  /* Visible */
94  /* Video/RTGraphics */
96  TERMIN, SYN_DEFAULT };
97 
98 /* CHOICEs */
100  AUDIO,
101  VIDEO,
102  RTGRAPHICS };
103 
104 /*---local function definitions----------------------------------------------*/
105 
106 /*---global function definitions---------------------------------------------*/
107 
#define SYN_NEEDED
Definition: fpa1_syn.h:34
#define OVOLUME
Definition: vpa1_tgs.h:148
#define COMPTAG
Definition: vpa1_tgs.h:147
#define TERMIN
Definition: vpa1_tgs.h:149
#define INITACTIVE
Definition: vpa1_tgs.h:105
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
#define STM_CMP_CHOICE_COMPS
Definition: fpa1_stm.c:46
#define OPOSITION
Definition: vpa1_tgs.h:126
int audioSetCompsArr[2 *AUDIO_SET_COMPS+1]
Definition: fpa1_stm.c:65
int streamSetCompsArr[2 *STREAM_SET_COMPS+1]
Definition: fpa1_stm.c:52
#define SYN_DEFAULT
Definition: fpa1_syn.h:36
Typedefs for script reading functions.
#define STORAGE
Definition: vpa1_tgs.h:142
#define RTGRAPHICS
Definition: vpa1_tgs.h:146
Contains macros for MHEG-5 ASN.1 tags and structures.
#define SHARED
Definition: vpa1_tgs.h:108
#define OCONTENT
Definition: vpa1_tgs.h:107
#define SYN_OPTIONAL
Definition: fpa1_syn.h:35
#define LOOPING
Definition: vpa1_tgs.h:143
#define OBOXSIZE
Definition: vpa1_tgs.h:125
#define VID_SET_COMPS
Definition: fpa1_stm.c:43
#define STREAM_SET_COMPS
Definition: fpa1_stm.c:41
#define VIDEO
Definition: vpa1_tgs.h:145
#define MULTIPLEX
Definition: vpa1_tgs.h:141
Contains functions used to parse MHEG-5 ASN.1 SETs. SETs can have components in any order and as such...
int rtgSetCompsArr[2 *RTG_SET_COMPS+1]
Definition: fpa1_stm.c:86
int stmCmpChoiceCompArr[STM_CMP_CHOICE_COMPS+1]
Definition: fpa1_stm.c:99
#define AUDIO_SET_COMPS
Definition: fpa1_stm.c:42
#define RTG_SET_COMPS
Definition: fpa1_stm.c:44
#define AUDIO
Definition: vpa1_tgs.h:144
#define OPALREF
Definition: vpa1_tgs.h:127
int videoSetCompsArr[2 *VID_SET_COMPS+1]
Definition: fpa1_stm.c:74
#define CHOOK
Definition: vpa1_tgs.h:106