MHEG5  18.9.0
MHEG5 Documentation
fpa1_sce.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  *******************************************************************************/
26 /*---includes for this file--------------------------------------------------*/
27 #include <stdio.h>
28 #include <stdlib.h>
29 
30 #include "vpa1_tgs.h"
31 #include "vpa1_rdf.h"
32 
33 #include "fpa1_sce.h"
34 #include "fpa1_set.h"
35 #include "fpa1_seq.h"
36 #include "fpa1_syn.h"
37 #include "fpa1_BlockAlloc.h"
38 
39 /*---local typedef structs for this file-------------------------------------*/
40 
41 /*---constant definitions for this file--------------------------------------*/
42 #define SCENE_SET_COMPS 14
43 
44 #define SCENE_COORD_SYS_SEQ_COMPS 2
45 #define NEXT_SCENE_SEQ_COMPS 2
46 
47 
48 /*---local (static) variable declarations for this file----------------------*/
49 
50 /* doesn't include COMPONENTS OF - only explicit types */
51 int sceneSetCompsArr[ 2 * SCENE_SET_COMPS + 1 ]
52  = { 2 * SCENE_SET_COMPS, /* array limit */
53  /* Group */
62  /* Scene */
68  OINPUTMASK, SYN_OPTIONAL };
69 
70 /* SEQUENCES */
72  = { 2 * SCENE_COORD_SYS_SEQ_COMPS, /* limit */
74  INTEGER, SYN_NEEDED };
75 
77  = { 2 * NEXT_SCENE_SEQ_COMPS, /* limit */
79  INTEGER, SYN_NEEDED };
80 
81 /*---local function definitions----------------------------------------------*/
82 
83 /*---global function definitions---------------------------------------------*/
84 
85 #ifdef DEBUG_TAGS
86 
90 static void fpa1_decodeSceneSetList( fpa1_syntaxList *listPtr, int indentCount )
91 {
92  int spaceCount = indentCount;
93  fpa1_syntaxList *startPtr = listPtr;
94 
95  while (listPtr != NULL)
96  {
97  spaceCount = indentCount;
98 
99  while (spaceCount > 0)
100  {
101  printf( " " );
102  spaceCount--;
103  }
104 
105  printf( "Scene Tag %d\n", listPtr->tag );
106  fpa1_decodeSceneSetList( listPtr->children, indentCount + 1 );
107 
108  listPtr = listPtr->next;
109  }
110 
111  fpa1_delList( startPtr );
112 } /* fpa1_decodeSceneSetList() */
113 
114 #endif
#define SYN_NEEDED
Definition: fpa1_syn.h:34
#define NEXTSCN
Definition: vpa1_tgs.h:104
#define CLOSEDOWN
Definition: vpa1_tgs.h:55
#define INTEGER
Definition: vpa1_tgs.h:40
int sceneSetCompsArr[2 *SCENE_SET_COMPS+1]
Definition: fpa1_sce.c:52
#define ITEMS
Definition: vpa1_tgs.h:57
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
struct fpa1_syntaxItem * children
Definition: fpa1_syn.h:53
#define SYN_DEFAULT
Definition: fpa1_syn.h:36
Typedefs for script reading functions.
#define OBJINFO
Definition: vpa1_tgs.h:53
#define OCTETSTRING
Definition: vpa1_tgs.h:41
Contains macros for MHEG-5 ASN.1 tags and structures.
#define GCPRIO
Definition: vpa1_tgs.h:56
int nextSceneSeqCompArr[2 *NEXT_SCENE_SEQ_COMPS+1]
Definition: fpa1_sce.c:77
#define SYN_OPTIONAL
Definition: fpa1_syn.h:35
#define SCENECOORDS
Definition: vpa1_tgs.h:101
#define SCENE_COORD_SYS_SEQ_COMPS
Definition: fpa1_sce.c:44
#define NEXT_SCENE_SEQ_COMPS
Definition: fpa1_sce.c:45
syntax item block manager Contains functions to create a mini memory manager for allocating syntax li...
int sneCoordSysSeqCompArr[2 *SCENE_COORD_SYS_SEQ_COMPS+1]
Definition: fpa1_sce.c:72
#define STDVER
Definition: vpa1_tgs.h:52
int fpa1_delList(fpa1_syntaxList *firstComp)
#define SCENE_SET_COMPS
Definition: fpa1_sce.c:42
Contains functions to decode MHEG-5 ASN.1 Scene class components.
Contains functions used to parse MHEG-5 ASN.1 SETs. SETs can have components in any order and as such...
#define STARTUP
Definition: vpa1_tgs.h:54
#define MOVING
Definition: vpa1_tgs.h:103
struct fpa1_syntaxItem * next
Definition: fpa1_syn.h:52
Contains functions used to parse MHEG-5 ASN.1 SEQUENCEs. SEQUENCEs have components in order...
#define ASPECT
Definition: vpa1_tgs.h:102
#define INEVENT
Definition: vpa1_tgs.h:100
#define STDID
Definition: vpa1_tgs.h:51
#define OINPUTMASK
Definition: vpa1_tgs.h:317