43 #define STARTCORNERUPPERLEFT (0) 44 #define STARTCORNERUPPERRIGHT (1) 45 #define STARTCORNERLOWERLEFT (2) 46 #define STARTCORNERLOWERRIGHT (3) 70 DPL5((
">> asn1_decodeText(%X,%X)\n", listPtr, text));
75 currItem = listPtr->children;
78 text->horizontalJustification = 0;
79 text->verticalJustification = 0;
80 text->verticalLineOrientation = MHEG5FALSE;
82 text->startCorner = 0;
83 text->textWrapping = MHEG5FALSE;
84 text->characterSetEncoded = MHEG5FALSE;
86 while (currItem != NULL)
88 switch (currItem->tag)
103 text->characterSet = currItem->data.intData;
104 text->characterSetEncoded = MHEG5TRUE;
107 text->horizontalJustification = currItem->data.intData;
110 text->horizontalJustification--;
111 if ((text->horizontalJustification < HJUSTIFICATION_START) ||
112 (text->horizontalJustification >= HJUSTIFICATION_JUSTIFIED))
115 text->horizontalJustification = HJUSTIFICATION_START;
119 text->verticalJustification = currItem->data.intData;
121 text->verticalJustification--;
122 if ((text->verticalJustification > VJUSTIFICATION_JUSTIFIED) ||
123 (text->verticalJustification < VJUSTIFICATION_START))
125 text->verticalJustification = VJUSTIFICATION_START;
130 if (currItem->data.intData == 1)
132 text->verticalLineOrientation = MHEG5TRUE;
138 text->startCorner = currItem->data.intData;
141 if ((text->startCorner < STARTCORNERUPPERLEFT) ||
142 (text->startCorner > STARTCORNERLOWERRIGHT))
145 text->startCorner = STARTCORNERUPPERLEFT;
149 text->textWrapping = (currItem->data.boolData == 0) ? MHEG5FALSE : MHEG5TRUE;
154 currItem = currItem->next;
162 DPL2((
"WARNING:[ASN.1] asn1_decodeText() returns errVal = %d\n", errVal));
166 DPL5((
"<< asn1_decodeText() Returns %d\n", errVal));
186 text->visible.ingredient.root.clazz = MHEG5TEXT;
190 DPL2((
"WARNING:[ASN.1] asn1_createText() Fails\n"));
192 MHEG5freeMem( text );
asnErr asn1_decodeFontBody(fpa1_syntaxList *listPtr, MHEG5FontBody *fontBody)
Decodes FontBody class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
Implement the MHEG5 Text Class 36 Text Class Defines attributes and behaviour of pieces of textual in...
Typedefs, macros used by all of parser. These may be duplicated elsewhere.
Functions to create a MHEG5Text from a MHEG5 script (in the form of a list of fpa1_syntaxList structu...
typedefs etc for the whole object creation section.
Contains macros for MHEG-5 ASN.1 tags and structures.
asnErr asn1_decodeVisible(fpa1_syntaxList *listPtr, MHEG5Visible *visible)
Decodes Visible class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
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.
Functions to create a MHEG5Application from a MHEG5 script (in the form of a list of fpa1_syntaxList ...
Functions to create a MHEG5Visible from a MHEG5 script (in the form of a list of fpa1_syntaxList stru...
asnErr asn1_decodeText(fpa1_syntaxList *listPtr, MHEG5Text *text)
Decodes Text class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
MHEG5Ingredient * asn1_createText(fpa1_syntaxList *listPtr)
Decodes Text class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...