Diffstat (limited to 'core/multimedia/opieplayer/libflash/swf.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libflash/swf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/libflash/swf.h b/core/multimedia/opieplayer/libflash/swf.h index 48986cc..5f5e4f7 100644 --- a/core/multimedia/opieplayer/libflash/swf.h +++ b/core/multimedia/opieplayer/libflash/swf.h | |||
@@ -115,115 +115,115 @@ struct ActionRecord { | |||
115 | ~ActionRecord() { | 115 | ~ActionRecord() { |
116 | if (frameLabel) free(frameLabel); | 116 | if (frameLabel) free(frameLabel); |
117 | if (url) free(url); | 117 | if (url) free(url); |
118 | if (target) free(target); | 118 | if (target) free(target); |
119 | }; | 119 | }; |
120 | }; | 120 | }; |
121 | 121 | ||
122 | enum FontFlags { | 122 | enum FontFlags { |
123 | fontUnicode = 0x20, | 123 | fontUnicode = 0x20, |
124 | fontShiftJIS = 0x10, | 124 | fontShiftJIS = 0x10, |
125 | fontANSI = 0x08, | 125 | fontANSI = 0x08, |
126 | fontItalic = 0x04, | 126 | fontItalic = 0x04, |
127 | fontBold = 0x02, | 127 | fontBold = 0x02, |
128 | fontWideCodes = 0x01 | 128 | fontWideCodes = 0x01 |
129 | }; | 129 | }; |
130 | 130 | ||
131 | enum TextFlags { | 131 | enum TextFlags { |
132 | isTextControl = 0x80, | 132 | isTextControl = 0x80, |
133 | 133 | ||
134 | textIsLarge = 0x70, | 134 | textIsLarge = 0x70, |
135 | textHasFont = 0x08, | 135 | textHasFont = 0x08, |
136 | textHasColor = 0x04, | 136 | textHasColor = 0x04, |
137 | textHasYOffset= 0x02, | 137 | textHasYOffset= 0x02, |
138 | textHasXOffset= 0x01 | 138 | textHasXOffset= 0x01 |
139 | }; | 139 | }; |
140 | 140 | ||
141 | #ifndef NULL | 141 | #ifndef NULL |
142 | #define NULL 0 | 142 | #define NULL 0 |
143 | #endif | 143 | #endif |
144 | 144 | ||
145 | // Tag values that represent actions or data in a Flash script. | 145 | // Tag values that represent actions or data in a Flash script. |
146 | enum | 146 | enum |
147 | { | 147 | { |
148 | stagEnd = 0, | 148 | stagEnd = 0, |
149 | stagShowFrame = 1, | 149 | stagShowFrame = 1, |
150 | stagDefineShape = 2, | 150 | stagDefineShape = 2, |
151 | stagFreeCharacter = 3, | 151 | stagFreeCharacter = 3, |
152 | stagPlaceObject = 4, | 152 | stagPlaceObject = 4, |
153 | stagRemoveObject = 5, | 153 | stagRemoveObject = 5, |
154 | stagDefineBits = 6, | 154 | stagDefineBits = 6, |
155 | stagDefineButton = 7, | 155 | stagDefineButton = 7, |
156 | stagJPEGTables = 8, | 156 | stagJPEGTables = 8, |
157 | stagSetBackgroundColor= 9, | 157 | stagSetBackgroundColor= 9, |
158 | stagDefineFont = 10, | 158 | stagDefineFont = 10, |
159 | stagDefineText = 11, | 159 | stagDefineText = 11, |
160 | stagDoAction = 12, | 160 | stagDoAction = 12, |
161 | stagDefineFontInfo = 13, | 161 | stagDefineFontInfo = 13, |
162 | stagDefineSound = 14,// Event sound tags. | 162 | stagDefineSound = 14,// Event sound tags. |
163 | stagStartSound = 15, | 163 | stagStartSound = 15, |
164 | stagStopSound = 16, | 164 | stagStopSound = 16, |
165 | stagDefineButtonSound= 17, | 165 | stagDefineButtonSound= 17, |
166 | stagSoundStreamHead = 18, | 166 | stagSoundStreamHead = 18, |
167 | stagSoundStreamBlock= 19, | 167 | stagSoundStreamBlock= 19, |
168 | stagDefineBitsLossless = 20,// A bitmap using lossless zlib compression. | 168 | stagDefineBitsLossless = 20,// A bitmap using lossless zlib compression. |
169 | stagDefineBitsJPEG2 = 21,// A bitmap using an internal JPEG compression table. | 169 | stagDefineBitsJPEG2 = 21,// A bitmap using an internal JPEG compression table. |
170 | stagDefineShape2 = 22, | 170 | stagDefineShape2 = 22, |
171 | stagDefineButtonCxform= 23, | 171 | stagDefineButtonCxform= 23, |
172 | stagProtect = 24,// This file should not be importable for editing. | 172 | stagProtect = 24,// This file should not be importable for editing. |
173 | 173 | ||
174 | // These are the new tags for Flash 3. | 174 | // These are the new tags for Flash 3. |
175 | stagPlaceObject2 = 26,// The new style place w/ alpha color transform and name. | 175 | stagPlaceObject2 = 26,// The new style place w/ alpha color transform and name. |
176 | stagRemoveObject2 = 28,// A more compact remove object that omits the character tag (just depth). | 176 | stagRemoveObject2 = 28,// A more compact remove object that omits the character tag (just depth). |
177 | stagDefineShape3 = 32,// A shape V3 includes alpha values. | 177 | stagDefineShape3 = 32,// A shape V3 includes alpha values. |
178 | stagDefineText2 = 33,// A text V2 includes alpha values. | 178 | stagDefineText2 = 33,// A text V2 includes alpha values. |
179 | stagDefineButton2 = 34,// A button V2 includes color transform, alpha and multiple actions | 179 | stagDefineButton2 = 34,// A button V2 includes color transform, alpha and multiple actions |
180 | stagDefineBitsJPEG3 = 35,// A JPEG bitmap with alpha info. | 180 | stagDefineBitsJPEG3 = 35,// A JPEG bitmap with alpha info. |
181 | stagDefineBitsLossless2 = 36,// A lossless bitmap with alpha info. | 181 | stagDefineBitsLossless2 = 36,// A lossless bitmap with alpha info. |
182 | stagDefineSprite = 39,// Define a sequence of tags that describe the behavior of a sprite. | 182 | stagDefineSprite = 39,// Define a sequence of tags that describe the behavior of a sprite. |
183 | stagNameCharacter = 40,// Name a character definition, character id and a string, (used for buttons, bitmaps, sprites and sounds). | 183 | stagNameCharacter = 40,// Name a character definition, character id and a string, (used for buttons, bitmaps, sprites and sounds). |
184 | stagFrameLabel = 43,// A string label for the current frame. | 184 | stagFrameLabel = 43,// A string label for the current frame. |
185 | stagSoundStreamHead2 = 45,// For lossless streaming sound, should not have needed this... | 185 | stagSoundStreamHead2 = 45,// For lossless streaming sound, should not have needed this... |
186 | stagDefineMorphShape = 46,// A morph shape definition | 186 | stagDefineMorphShape = 46,// A morph shape definition |
187 | stagDefineFont2 = 48, | 187 | stagDefineFont2 = 48, |
188 | 188 | ||
189 | notEnoughData = 0xffff,// Special code | 189 | notEnoughData = 0xffff,// Special code |
190 | }; | 190 | }; |
191 | 191 | ||
192 | #ifndef false | 192 | #ifndef false |
193 | #define false 0 | 193 | #define false 0 |
194 | #endif | 194 | #endif |
195 | #ifndef true | 195 | #ifndef true |
196 | #define true 1 | 196 | #define true 1 |
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | extern int shape_size,shape_nb,shaperecord_size,shaperecord_nb,style_size,style_nb; | 199 | extern int shape_size,shape_nb,shaperecord_size,shaperecord_nb,style_size,style_nb; |
200 | 200 | ||
201 | typedef void (*ScanLineFunc)(void *id, long y, long start, long end); | 201 | typedef void (*ScanLineFunc)(void *id, long y, long start, long end); |
202 | 202 | ||
203 | class Bitmap; | 203 | class Bitmap; |
204 | struct FlashMovie; | 204 | struct FlashMovie; |
205 | 205 | ||
206 | extern "C" { | 206 | extern "C" { |
207 | #include "jpeglib.h" | 207 | #include "jpeglib.h" |
208 | }; | 208 | }; |
209 | extern "C" { | 209 | extern "C" { |
210 | //#include "zlib.h" | 210 | //#include "zlib.h" |
211 | #include "/opt/qt-2.3.2-embedded/src/3rdparty/zlib/zlib.h" | 211 | #include "../src/3rdparty/zlib/zlib.h" |
212 | }; | 212 | }; |
213 | 213 | ||
214 | #include "graphic.h" | 214 | #include "graphic.h" |
215 | #include "character.h" | 215 | #include "character.h" |
216 | #include "bitmap.h" | 216 | #include "bitmap.h" |
217 | #include "shape.h" | 217 | #include "shape.h" |
218 | #include "displaylist.h" | 218 | #include "displaylist.h" |
219 | #include "sound.h" | 219 | #include "sound.h" |
220 | #include "button.h" | 220 | #include "button.h" |
221 | #include "font.h" | 221 | #include "font.h" |
222 | #include "text.h" | 222 | #include "text.h" |
223 | #include "adpcm.h" | 223 | #include "adpcm.h" |
224 | #include "program.h" | 224 | #include "program.h" |
225 | #include "sprite.h" | 225 | #include "sprite.h" |
226 | #include "script.h" | 226 | #include "script.h" |
227 | #include "movie.h" | 227 | #include "movie.h" |
228 | 228 | ||
229 | #endif /* _SWF_H_ */ | 229 | #endif /* _SWF_H_ */ |