47 #define MAXMH5ORIENTATION 5 48 static MHEG5Orientation mh5Orientations[MAXMH5ORIENTATION] = {
49 MHEG5LEFT, MHEG5LEFT, MHEG5RIGHT, MHEG5UP, MHEG5DOWN
52 #define MAXMH5SLIDERSTYLE 4 53 static MHEG5SliderStyle mh5SliderStyles[MAXMH5SLIDERSTYLE] = {
54 MHEG5NORMAL, MHEG5NORMAL, MHEG5THERMOMETER, MHEG5PROPORTIONAL
77 DPL5((
">> asn1_decodeSlider(%X,%X)\n", listPtr));
85 slider->visible.ingredient.root.clazz = MHEG5SLIDER;
87 slider->originalMinValue = 1;
88 slider->originalStepSize = 1;
89 slider->sliderStyle = MHEG5NORMAL;
93 slider->initialValue = 1;
96 currItem = listPtr->children;
97 while (currItem != NULL)
100 switch (currItem->tag)
103 enumIndex = currItem->data.intData;
105 if ((enumIndex > 0) && (enumIndex < MAXMH5ORIENTATION))
107 slider->orientation = mh5Orientations[enumIndex];
115 slider->originalMaxValue = currItem->data.intData;
118 slider->originalMinValue = currItem->data.intData;
129 slider->initialValue = slider->originalMinValue;
132 slider->initialValue = currItem->data.intData;
135 slider->initialPortion = currItem->data.intData;
138 slider->originalStepSize = currItem->data.intData;
141 enumIndex = currItem->data.intData;
143 if ((enumIndex > 0) && (enumIndex < MAXMH5SLIDERSTYLE))
145 slider->sliderStyle = mh5SliderStyles[enumIndex];
158 currItem = currItem->next;
164 if (errVal != ASN_NO_ERROR)
167 DPL2((
"WARNING:[ASN.1] asn1_decodeSlider() errVal = %d\n", errVal));
169 MHEG5freeMem( slider );
174 DPL5((
"<< asn1_decodeSlider() %X\n", slider));
Contains functions/structure used to do MHEG-5 ASN.1 syntax parsing.
Typedefs, macros used by all of parser. These may be duplicated elsewhere.
MHEG5Ingredient * asn1_createSlider(fpa1_syntaxList *listPtr)
Decodes Slider class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
asnErr asn1_decodeInteractible(fpa1_syntaxList *listPtr, MHEG5Interactible *interactible)
Decodes interactible class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
Implement the MHEG5 Slider Class. Slider Class. Defines the behaviour of sliders. Base class: Visible...
Functions to create a MHEG5Slider from a MHEG5 script (in the form of a list of fpa1_syntaxList struc...
typedefs etc for the whole object creation section.
Contains macros for MHEG-5 ASN.1 tags and structures.
Functions to create a MHEG5Interactible from a MHEG5 script (in the form of a list of fpa1_syntaxList...
asnErr asn1_decodeVisible(fpa1_syntaxList *listPtr, MHEG5Visible *visible)
Decodes Visible class. Refer to MHEG5 Specification (ISO/IEC 13522-2:1996), Appendix A...
Functions to create a MHEG5Visible from a MHEG5 script (in the form of a list of fpa1_syntaxList stru...