MHEG5  18.9.0
MHEG5 Documentation
Macros | Functions | Variables
asn1_createAction.c File Reference

Functions to create a MHEG5Action from a MHEG5 script (in the form of a list of fpa1_syntaxList structures). MHEG5Action consists itself of a list of elementary actions (stored as a list of MHEG5GList structures. More...

#include <stdio.h>
#include "vpa1_sys.h"
#include "vpa1_tgs.h"
#include "fpa1_syn.h"
#include "fpa1_rdf.h"
#include "asn1_sys.h"
#include "mh5action.h"
#include "mh5profile.h"
#include "mh5support.h"
#include "asn1_createAction.h"
#include "asn1_createExtras.h"
#include "asn1_createGroup.h"

Go to the source code of this file.

Macros

#define AssignNextParam(gl)
 

Functions

MHEG5EventType asn1_decodeEventType (MHEG5Int evt_val)
 
MHEG5GListasn1_addNewGList (MHEG5GList *gList)
 Creates a new MHEG5GList element and adds it to the end of the supplied list. More...
 
asnErr asn1_decodeObjectReference (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 Decodes a MHEG object reference to a MHEG5GList. This function can cope with listPtr being NULL. Will return an error code in that eventuality. Will clean up properly if a asn1_NewGList call fails. Note: This function expects a valid MHEG5GList item to be passed in but will create any others necessary. More...
 
asnErr asn1_decodeGenericObjectReference (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 
asnErr asn1_decodeGenericInteger (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 
asnErr asn1_decodeGenericBoolean (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 
asnErr asn1_decodeGenericOctetString (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 
asnErr asn1_decodeGenericContentReference (fpa1_syntaxList *listPtr, MHEG5GList *gList)
 
void asn1_decodeActions (fpa1_syntaxList *listPtr, MHEG5ActionList *p_actions)
 Decodes action class Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A, section [A.42] for details of ASN.1 representation. This function ignores any elementary actions in cannot decode (Including if a malloc fails during decoding. NULL is returned if no actions could be decoded. More...
 
void asn1_decodeNextScenes (fpa1_syntaxList *listPtr, ParamList *p_scenes)
 Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A, section[A.3] for details of ASN.1 representation. NextScenes is a GList containg references to the following scenes. Each reference are of the form: OpenBracket, OctetString, Integer, CloseBracket. Safe if asn1_addGList() fails to allocate memory, returns NULL after deleting any allocated GList items. More...
 

Variables

MHEG5Actionasn1_GroupActionPtr = NULL
 
MHEG5GListasn1_GroupParamPtr = NULL
 
int asn1_GroupActionCount = 0
 
int asn1_GroupParamCount = 0
 

Detailed Description

Functions to create a MHEG5Action from a MHEG5 script (in the form of a list of fpa1_syntaxList structures). MHEG5Action consists itself of a list of elementary actions (stored as a list of MHEG5GList structures.

Date
16/07/2002
Author
S.Charman

Definition in file asn1_createAction.c.

Macro Definition Documentation

#define AssignNextParam (   gl)
Value:
gl = NULL; }
MHEG5GList * asn1_GroupParamPtr
int asn1_GroupParamCount
int fpa1_GroupParamCount
Definition: fpa1_rdf.c:68

Definition at line 48 of file asn1_createAction.c.

Function Documentation

MHEG5GList* asn1_addNewGList ( MHEG5GList gList)

Creates a new MHEG5GList element and adds it to the end of the supplied list.

Parameters
gListMHEG5GList to be extended.
Returns
MHEG5GList The GList item created. Null if failed to create GList.

Definition at line 73 of file asn1_createAction.c.

void asn1_decodeActions ( fpa1_syntaxList listPtr,
MHEG5ActionList p_actions 
)

Decodes action class Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A, section [A.42] for details of ASN.1 representation. This function ignores any elementary actions in cannot decode (Including if a malloc fails during decoding. NULL is returned if no actions could be decoded.

Parameters
listPtrpointer to current fpa1_syntaxList item
Returns
MHEG5Action. NULL if fails.

Definition at line 444 of file asn1_createAction.c.

MHEG5EventType asn1_decodeEventType ( MHEG5Int  evt_val)

Definition at line 69 of file asn1_createLink.c.

asnErr asn1_decodeGenericBoolean ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)

This function can cope with listPtr being NULL. Will return an error code in that eventuality.

Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to GenericBoolean class being decoded. (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 304 of file asn1_createAction.c.

asnErr asn1_decodeGenericContentReference ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)

This function can cope with listPtr being NULL. Will return an error code in that eventuality.

Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to GenericContentReference class being decoded. (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 395 of file asn1_createAction.c.

asnErr asn1_decodeGenericInteger ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)

This function can cope with listPtr being NULL. Will return an error code in that eventuality.

Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to GenericObjectInteger class being decoded. (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 257 of file asn1_createAction.c.

asnErr asn1_decodeGenericObjectReference ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)
Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to GenericObjectReference class being decoded. (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 211 of file asn1_createAction.c.

asnErr asn1_decodeGenericOctetString ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)

This function can cope with listPtr being NULL. Will return an error code in that eventuality.

Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to GenericOctetString class being decoded. (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 350 of file asn1_createAction.c.

void asn1_decodeNextScenes ( fpa1_syntaxList listPtr,
ParamList p_scenes 
)

Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A, section[A.3] for details of ASN.1 representation. NextScenes is a GList containg references to the following scenes. Each reference are of the form: OpenBracket, OctetString, Integer, CloseBracket. Safe if asn1_addGList() fails to allocate memory, returns NULL after deleting any allocated GList items.

Parameters
listPtrpointer to current fpa1_syntaxList item
p_scenesPointer to next scenes list being decoded.
Returns
void

Definition at line 1495 of file asn1_createAction.c.

asnErr asn1_decodeObjectReference ( fpa1_syntaxList listPtr,
MHEG5GList gList 
)

Decodes a MHEG object reference to a MHEG5GList. This function can cope with listPtr being NULL. Will return an error code in that eventuality. Will clean up properly if a asn1_NewGList call fails. Note: This function expects a valid MHEG5GList item to be passed in but will create any others necessary.

Parameters
listPtrpointer to current fpa1_syntaxList item
lineartPointer to objectReference class being decoded (in the form of a MHEG5GList).
Returns
asnErr

Definition at line 160 of file asn1_createAction.c.

Variable Documentation

int asn1_GroupActionCount = 0

Definition at line 60 of file asn1_createAction.c.

MHEG5Action* asn1_GroupActionPtr = NULL

Definition at line 57 of file asn1_createAction.c.

int asn1_GroupParamCount = 0

Definition at line 61 of file asn1_createAction.c.

MHEG5GList* asn1_GroupParamPtr = NULL

Definition at line 58 of file asn1_createAction.c.