2 * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3 * 2005-2006 Eric Anholt <eric@anholt.net>
4 * 2006-2007 Benjamin Otte <otte@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef __SWFDEC_TAGS_H__
23 #define __SWFDEC_TAGS_H__
31 SWFDEC_TAG_SHOWFRAME
= 1,
32 SWFDEC_TAG_DEFINESHAPE
= 2,
33 SWFDEC_TAG_FREECHARACTER
= 3,
34 SWFDEC_TAG_PLACEOBJECT
= 4,
35 SWFDEC_TAG_REMOVEOBJECT
= 5,
36 SWFDEC_TAG_DEFINEBITSJPEG
= 6,
37 SWFDEC_TAG_DEFINEBUTTON
= 7,
38 SWFDEC_TAG_JPEGTABLES
= 8,
39 SWFDEC_TAG_SETBACKGROUNDCOLOR
= 9,
40 SWFDEC_TAG_DEFINEFONT
= 10,
41 SWFDEC_TAG_DEFINETEXT
= 11,
42 SWFDEC_TAG_DOACTION
= 12,
43 SWFDEC_TAG_DEFINEFONTINFO
= 13,
44 SWFDEC_TAG_DEFINESOUND
= 14, /* Event sound tags. */
45 SWFDEC_TAG_STARTSOUND
= 15,
46 SWFDEC_TAG_DEFINEBUTTONSOUND
= 17,
47 SWFDEC_TAG_SOUNDSTREAMHEAD
= 18,
48 SWFDEC_TAG_SOUNDSTREAMBLOCK
= 19,
49 SWFDEC_TAG_DEFINEBITSLOSSLESS
= 20, /* A bitmap using lossless zlib compression. */
50 SWFDEC_TAG_DEFINEBITSJPEG2
= 21, /* A bitmap using an internal JPEG compression table. */
51 SWFDEC_TAG_DEFINESHAPE2
= 22,
52 SWFDEC_TAG_DEFINEBUTTONCXFORM
= 23,
53 SWFDEC_TAG_PROTECT
= 24, /* This file should not be importable for editing. */
54 SWFDEC_TAG_PLACEOBJECT2
= 26, /* The new style place w/ alpha color transform and name. */
55 SWFDEC_TAG_REMOVEOBJECT2
= 28, /* A more compact remove object that omits the character tag (just depth). */
56 SWFDEC_TAG_DEFINESHAPE3
= 32, /* A shape V3 includes alpha values. */
57 SWFDEC_TAG_DEFINETEXT2
= 33, /* A text V2 includes alpha values. */
58 SWFDEC_TAG_DEFINEBUTTON2
= 34, /* A button V2 includes color transform, alpha and multiple actions */
59 SWFDEC_TAG_DEFINEBITSJPEG3
= 35, /* A JPEG bitmap with alpha info. */
60 SWFDEC_TAG_DEFINEBITSLOSSLESS2
= 36, /* A lossless bitmap with alpha info. */
61 SWFDEC_TAG_DEFINEEDITTEXT
= 37,
62 SWFDEC_TAG_DEFINEMOVIE
= 38,
63 SWFDEC_TAG_DEFINESPRITE
= 39, /* Define a sequence of tags that describe the behavior of a sprite. */
64 SWFDEC_TAG_NAMECHARACTER
= 40, /* Name a character definition, character id and a string, (used for buttons, bitmaps, sprites and sounds). */
65 SWFDEC_TAG_PRODUCTINFO
= 41,
66 SWFDEC_TAG_GENERATORTEXT
= 42, /* contains an id */
67 SWFDEC_TAG_FRAMELABEL
= 43, /* A string label for the current frame. */
68 SWFDEC_TAG_SOUNDSTREAMHEAD2
= 45, /* For lossless streaming sound, should not have needed this... */
69 SWFDEC_TAG_DEFINEMORPHSHAPE
= 46, /* A morph shape definition */
70 SWFDEC_TAG_DEFINEFONT2
= 48,
71 SWFDEC_TAG_TEMPLATECOMMAND
= 49,
72 SWFDEC_TAG_GENERATOR3
= 51,
73 SWFDEC_TAG_EXTERNALFONT
= 52,
74 SWFDEC_TAG_EXPORTASSETS
= 56,
75 SWFDEC_TAG_IMPORTASSETS
= 57,
76 SWFDEC_TAG_ENABLEDEBUGGER
= 58,
77 SWFDEC_TAG_DOINITACTION
= 59,
78 SWFDEC_TAG_DEFINEVIDEOSTREAM
= 60,
79 SWFDEC_TAG_VIDEOFRAME
= 61,
80 SWFDEC_TAG_DEFINEFONTINFO2
= 62,
81 SWFDEC_TAG_DEBUGID
= 63,
82 SWFDEC_TAG_ENABLEDEBUGGER2
= 64,
83 SWFDEC_TAG_SCRIPTLIMITS
= 65,
84 SWFDEC_TAG_SETTABINDEX
= 66,
86 /* magic tags that seem to be similar to FILEATTRIBUTES */
90 SWFDEC_TAG_FILEATTRIBUTES
= 69,
91 SWFDEC_TAG_PLACEOBJECT3
= 70,
92 SWFDEC_TAG_IMPORTASSETS2
= 71,
94 /* seems similar to SWFDEC_TAG_AVM2DECL */
95 SWFDEC_TAG_
= 72, /* allowed with DefineSprite */
97 SWFDEC_TAG_DEFINEFONTALIGNZONES
= 73,
98 SWFDEC_TAG_CSMTEXTSETTINGS
= 74,
99 SWFDEC_TAG_DEFINEFONT3
= 75,
100 SWFDEC_TAG_SYMBOLCLASS
= 76,
101 SWFDEC_TAG_METADATA
= 77,
102 SWFDEC_TAG_DEFINESCALINGGRID
= 78,
104 /* more magic tags that seem to be similar to FILEATTRIBUTES */
108 SWFDEC_TAG_DOABC
= 82,
109 SWFDEC_TAG_DEFINESHAPE4
= 83,
110 SWFDEC_TAG_DEFINEMORPHSHAPE2
= 84,
111 SWFDEC_TAG_PRIVATE_IMAGE
= 85,
112 SWFDEC_TAG_DEFINESCENEDATA
= 86,
113 SWFDEC_TAG_DEFINEBINARYDATA
= 87,
114 SWFDEC_TAG_DEFINEFONTNAME
= 88,
115 SWFDEC_TAG_STARTSOUND2
= 89
119 /* tag is allowe inside DefineSprite */
120 SWFDEC_TAG_DEFINE_SPRITE
= (1 << 0),
121 /* tag must be first tag */
122 SWFDEC_TAG_FIRST_ONLY
= (1 << 1)