Go to the documentation of this file.
20 #ifndef GNASH_TYPESPARSER_H
21 #define GNASH_TYPESPARSER_H
23 #include <boost/optional.hpp>
33 class movie_definition;
SWFMatrix readSWFMatrix(SWFStream &in)
Read a SWFMatrix from input stream.
Definition: TypesParser.cpp:49
SpreadMode spreadMode
Definition: FillStyle.h:232
SpreadMode
Definition: SWF.h:1537
@ RADIAL
Definition: FillStyle.h:162
void ensureBits(unsigned long needed)
Ensure the requested number of bits are available for a bitwise read in currently opened tag.
Definition: SWFStream.h:382
unsigned read_uint(unsigned short bitcount)
Reads a bit-packed unsigned integer from the stream and returns it. The given bitcount determines the...
Definition: SWFStream.cpp:102
A SolidFill containing one color.
Definition: FillStyle.h:247
int read_sint(unsigned short bitcount)
Reads a bit-packed little-endian signed integer from the stream. The given bitcount determines the nu...
Definition: SWFStream.cpp:191
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
@ FILL_CLIPPED_BITMAP_HARD
swf8 (alexis is wrong), non-smoothed / hard edges
Definition: SWF.h:1533
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
@ DEFINESHAPE
Definition: SWF.h:34
FillType
SWF fill style types. Symbolic names copied from Ming.
Definition: SWF.h:1521
@ i
Definition: GnashKey.h:155
@ REFLECT
Definition: FillStyle.h:168
A basic RGBA type.
Definition: RGBA.h:36
SWFMatrix & invert()
Invert this SWFMatrix and return the result.
Definition: SWFMatrix.cpp:288
std::pair< FillStyle, boost::optional< FillStyle > > OptionalFillPair
Either a single or a morph-pair FillStyle.
Definition: TypesParser.h:52
#define _(String)
Definition: log.h:44
@ FILL_TILED_BITMAP
Definition: SWF.h:1526
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ FILL_CLIPPED_BITMAP
Definition: SWF.h:1527
@ g
Definition: GnashKey.h:153
@ m
Definition: GnashKey.h:159
@ FILL_FOCAL_GRADIENT
Definition: SWF.h:1525
double focalPoint() const
Get the focal point of this GradientFill.
Definition: FillStyle.h:228
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
@ RGB
Definition: FillStyle.h:172
@ GRADIENT_SPREAD_REPEAT
Definition: SWF.h:1540
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
@ t
Definition: GnashKey.h:166
const VGfloat color[4]
Definition: testr_gtk.cpp:82
@ r
Definition: GnashKey.h:164
@ FILL_LINEAR_GRADIENT
Definition: SWF.h:1523
@ FILL_TILED_BITMAP_HARD
swf8 (alexis is wrong), non-smoothed / hard edges
Definition: SWF.h:1530
@ a
Definition: GnashKey.h:147
@ PAD
Definition: FillStyle.h:166
@ GRADIENT_SPREAD_REFLECT
Definition: SWF.h:1539
float read_short_sfixed()
Read a 8.8 fixed point signed value.
Definition: SWFStream.cpp:235
@ FILL_RADIAL_GRADIENT
Definition: SWF.h:1524
type
Definition: GnashKey.h:330
A GradientFill.
Definition: FillStyle.h:154
InterpolationMode
Definition: SWF.h:1544
@ REPEAT
Definition: FillStyle.h:167
@ DEFINESHAPE2
Definition: SWF.h:54
void setFocalPoint(double d)
Set the focal point.
Definition: FillStyle.cpp:98
@ DEFINESHAPE4_
Definition: SWF.h:97
InterpolationMode interpolation
Definition: FillStyle.h:233
@ GRADIENT_INTERPOLATION_LINEAR
Definition: SWF.h:1546
An SWF parsing exception.
Definition: GnashException.h:90
std::vector< GradientRecord > GradientRecords
Definition: FillStyle.h:176
Definition: SWFMatrix.h:54
SWFCxForm readCxFormRGBA(SWFStream &in)
Read a CxForm with alpha from the input stream.
Definition: TypesParser.cpp:354
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
OptionalFillPair readFills(SWFStream &in, SWF::TagType t, movie_definition &md, bool readMorph)
Read FillStyles from a stream.
Definition: TypesParser.cpp:161
void log_parse(StringType msg, Args... args)
Definition: log.h:313
rgba readRGB(SWFStream &in)
Read an RGB rgba from input stream.
Definition: TypesParser.cpp:106
@ GRADIENT_INTERPOLATION_NORMAL
Definition: SWF.h:1545
@ DEFINESHAPE4
Definition: SWF.h:110
@ LINEAR
Definition: FillStyle.h:161
@ DEFINESHAPE3
Definition: SWF.h:62
SWFCxForm readCxFormRGB(SWFStream &in)
Read a RGB CxForm from the input stream.
Definition: TypesParser.cpp:322
std::uint8_t read_u8()
Read a aligned unsigned 8-bit value from the stream.
Definition: SWFStream.cpp:319
bool read_bit()
Reads a single bit off the stream and returns it.
Definition: SWFStream.cpp:88
void setRecords(const GradientRecords &recs)
Definition: FillStyle.h:198
SWF stream wrapper class.
Definition: SWFStream.h:59
SWFRect readRect(SWFStream &in)
Read a bit-packed rectangle from an SWF stream.
Definition: TypesParser.cpp:130
void align()
Consume all bits of current byte.
Definition: SWFStream.h:135
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
@ b
Definition: GnashKey.h:148
@ FILL_SOLID
Definition: SWF.h:1522
@ LINEAR_RGB
Definition: FillStyle.h:173
@ GRADIENT_SPREAD_PAD
Definition: SWF.h:1538
rgba readRGBA(SWFStream &in)
Read an RGBA rgba from input stream.
Definition: TypesParser.cpp:95
Type
The type of GradientFill.
Definition: FillStyle.h:160