44 #include "asn1_testHarness.h" 90 if (application == NULL)
92 DPL1((
"ERROR:[ASN.1] unable to create application: malloc failed\n"));
101 memset(application, 0, size);
109 DPL2((
"WARNING:[ASN.1] Failed to decode the MHEG5Application object\n"));
123 asn1_printApplication(application, ASN1_PARSER);
130 DPL2((
"WARNING:[ASN.1] Failure to read application file\n"));
176 DPL1((
"ERROR:[ASN.1] unable to create scene: malloc failed\n"));
184 memset(scene, 0, size);
191 DPL2((
"WARNING:[ASN.1] Failed to decode the MHEG5Sccene object\n"));
201 asn1_printScene(scene, ASN1_PARSER);
208 DPL2((
"WARNING:[ASN.1] Failure to read scene file\n"));
void MHEG5applicationInit(MHEG5Application *application)
Initialise an application object with default values.
int fpa1_GroupActionCount
void MHEG5sceneDestruct(MHEG5Scene *scene)
Destruct a scene object.
Distributor for Prepare, Destruct, Activate, Deactivate and Clone calls. Distribute the +Prepare +Des...
Contains functions/globals used to read MHEG-5 ASN.1 scripts.
void MHEG5applicationFree(MHEG5Application *application)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
Functions to create a MHEG5Action from a MHEG5 script (in the form of a list of fpa1_syntaxList struc...
void MHEG5sceneFree(MHEG5Scene *scene)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
fpa1_syntaxList * fpa1_parseScriptASN(unsigned char *asndata, unsigned long len)
Top level entry point to the ASN.1 script to fpa1_syntaxList converter. This function takes the origi...
asnErr asn1_decodeScene(fpa1_syntaxList *listPtr, MHEG5Scene *scene)
int fpa1_freeUnusedData(void)
Interface functions for invoking the ASN.1 parser.
Typedefs for script reading functions.
asnErr asn1_decodeApplication(fpa1_syntaxList *listPtr, MHEG5Application *application)
Decodes Group class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
void MHEG5sceneInit(MHEG5Scene *scene)
Initialise a scene object with default values.
typedefs etc for the whole object creation section.
Functions to create a MHEG5Scene from a MHEG5 script (in the form of a list of fpa1_syntaxList struct...
syntax item block manager Contains functions to create a mini memory manager for allocating syntax li...
MHEG5Action * asn1_GroupActionPtr
void MHEG5applicationDestruct(MHEG5Application *application)
Destruct an application object. This function destructs all parts of an application object...
MHEG5GList * asn1_GroupParamPtr
Implementation of the MHEG5 Application Class Defines a set of Ingredient objects, which are shared within an application scope. Base class: Group Subclasses: None Status: Concrete class.
Implementation of the MHEG5 Scene Class Scene Class Defines a set of Ingredient objects to be activat...
MHEG5Scene * asn1_parseScene(unsigned char *asnData, unsigned long dataLength)
Top level ASN.1 parser interface function. Creates and fills a MHEG5Scene object from a char array co...
Functions to create a MHEG5Application from a MHEG5 script (in the form of a list of fpa1_syntaxList ...
MHEG5Application * asn1_parseApplication(unsigned char *asnData, unsigned long dataLength)
Top level ASN.1 parser interface function. Creates and fills a MHEG5Application object from a char ar...