MHEG5  18.9.0
MHEG5 Documentation
fpa1_vis.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_set.h"
35 #include "fpa1_seq.h"
36 #include "fpa1_syn.h"
37 #include "fpa1_vis.h"
38 
39 /*---local typedef structs for this file-------------------------------------*/
40 
41 /*---constant definitions for this file--------------------------------------*/
42 #define VIS_SET_COMPS 8
43 #define BMP_SET_COMPS 10
44 #define LART_SET_COMPS 13
45 #define RECT_SET_COMPS 10
46 #define DLART_SET_COMPS 11
47 
48 #define VIS_NDO_SIZE 3
49 #define VIS_NDA_SIZE 2 /* Video */
50 
51 #define BMP_EXPLICIT 2
52 #define LART_DDDOO_SIZE 5
53 #define LART_ADDOO_SIZE 4 /* Rectangle */
54 
55 #define OBOX_SIZE_SEQ_COMPS 2
56 
57 
58 /*---local (static) variable declarations for this file----------------------*/
59 
60 /* Bitmap */
61 int bmpSetCompsArr[ 2 * BMP_SET_COMPS + 1 ]
62  = { 2 * BMP_SET_COMPS, /* array limit */
63  /* Ingredient */
69  /* Visible */
73  /* Bitmap */
75  OTRANS, SYN_DEFAULT };
76 
77 /* LineArt */
78 int lartSetCompsArr[ 2 * LART_SET_COMPS + 1 ]
79  = { 2 * LART_SET_COMPS, /* array limit */
80  /* Ingredient */
86  /* Visible */
90  /* LineArt */
95  ORFCOLOUR, SYN_OPTIONAL };
96 
97 /* Rectangle */
98 int rectSetCompsArr[ 2 * RECT_SET_COMPS + 1 ]
99  = { 2 * RECT_SET_COMPS, /* array limit */
100  /* Ingredient */
104  /* Visible */
108  /* LineArt */
112  ORFCOLOUR, SYN_OPTIONAL };
113 
114 /* LineArt */
115 int dLartSetCompsArr[ 2 * DLART_SET_COMPS + 1 ]
116  = { 2 * DLART_SET_COMPS, /* array limit */
117  /* Ingredient */
121  /* Visible */
125  /* LineArt */
130  ORFCOLOUR, SYN_OPTIONAL };
131 
132 /* SEQUENCEs */
133 int oboxSizeSeqCompArr[ 2 * OBOX_SIZE_SEQ_COMPS + 1 ] = { 2 * OBOX_SIZE_SEQ_COMPS, /* limit */
135  INTEGER, SYN_NEEDED };
136 
137 /*---local function definitions----------------------------------------------*/
138 
139 /*---global function definitions---------------------------------------------*/
#define SYN_NEEDED
Definition: fpa1_syn.h:34
int oboxSizeSeqCompArr[2 *OBOX_SIZE_SEQ_COMPS+1]
Definition: fpa1_vis.c:133
int lartSetCompsArr[2 *LART_SET_COMPS+1]
Definition: fpa1_vis.c:79
#define INTEGER
Definition: vpa1_tgs.h:40
#define INITACTIVE
Definition: vpa1_tgs.h:105
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
#define OPOSITION
Definition: vpa1_tgs.h:126
#define SYN_DEFAULT
Definition: fpa1_syn.h:36
Typedefs for script reading functions.
#define BMP_SET_COMPS
Definition: fpa1_vis.c:43
#define DLART_SET_COMPS
Definition: fpa1_vis.c:46
#define BBBOX
Definition: vpa1_tgs.h:130
#define ORLCOLOUR
Definition: vpa1_tgs.h:133
Contains macros for MHEG-5 ASN.1 tags and structures.
int bmpSetCompsArr[2 *BMP_SET_COMPS+1]
Definition: fpa1_vis.c:62
#define SHARED
Definition: vpa1_tgs.h:108
#define OCONTENT
Definition: vpa1_tgs.h:107
#define SYN_OPTIONAL
Definition: fpa1_syn.h:35
int rectSetCompsArr[2 *RECT_SET_COMPS+1]
Definition: fpa1_vis.c:99
#define OTRANS
Definition: vpa1_tgs.h:129
int dLartSetCompsArr[2 *DLART_SET_COMPS+1]
Definition: fpa1_vis.c:116
#define OLSTYLE
Definition: vpa1_tgs.h:132
#define OBOXSIZE
Definition: vpa1_tgs.h:125
#define TILING
Definition: vpa1_tgs.h:128
Contains functions used to parse MHEG-5 ASN.1 SETs. SETs can have components in any order and as such...
#define LART_SET_COMPS
Definition: fpa1_vis.c:44
#define OBOX_SIZE_SEQ_COMPS
Definition: fpa1_vis.c:55
Contains functions used to parse MHEG-5 ASN.1 SEQUENCEs. SEQUENCEs have components in order...
#define ORFCOLOUR
Definition: vpa1_tgs.h:134
#define OLWIDTH
Definition: vpa1_tgs.h:131
#define RECT_SET_COMPS
Definition: fpa1_vis.c:45
#define OPALREF
Definition: vpa1_tgs.h:127
#define CHOOK
Definition: vpa1_tgs.h:106