Go to the documentation of this file.
23 #ifndef GNASH_SWFPARSER_H
24 #define GNASH_SWFPARSER_H
30 class movie_definition;
58 _runResources(runResources),
86 bool read(std::streamsize bytes);
void(* TagLoader)(SWFStream &input, TagType type, movie_definition &m, const RunResources &r)
Signature of an SWF tag loader.
Definition: TagLoadersTable.h:48
const SWF::TagLoadersTable & tagLoaders() const
Get the loader function table for parsing a SWF.
Definition: RunResources.h:126
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
unsigned read(char *buf, unsigned count)
Read <count> bytes from the source stream and copy that data to <buf>.
Definition: SWFStream.cpp:68
@ SHOWFRAME
Definition: SWF.h:33
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
size_t bytesRead() const
The number of bytes processed by this SWFParser.
Definition: SWFParser.h:69
void log_error(StringType msg, Args... args)
Definition: log.h:283
bool read(std::streamsize bytes)
Parse a specified number of bytes from the stream.
Definition: SWFParser.cpp:51
SWF::TagType open_tag()
Open an SWF tag and return it's type.
Definition: SWFStream.cpp:505
@ END
Definition: GnashKey.h:212
unsigned long tell()
Return our current (byte) position in the input stream.
Definition: SWFStream.cpp:447
virtual void incrementLoadedFrames()
Definition: movie_definition.h:148
An SWF parsing exception.
Definition: GnashException.h:90
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
void close_tag()
Seek to the end of the most-recently-opened tag.
Definition: SWFStream.cpp:582
unsigned long get_tag_end_position()
Return the file position of the end of the current tag.
Definition: SWFStream.cpp:497
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
bool get(TagType t, TagLoader &lf) const
Get the TagLoader for a specified TagType.
Definition: TagLoadersTable.cpp:29
@ f
Definition: GnashKey.h:152
pixel_iterator< T > end(GnashImage &im)
Definition: ImageIterators.h:198
Table of SWF tags loaders.
Definition: TagLoadersTable.h:39
SWFParser(SWFStream &in, movie_definition *md, const RunResources &runResources)
Definition: SWFParser.h:54
The SWFParser parses tags from a SWFStream.
Definition: SWFParser.h:51
SWF stream wrapper class.
Definition: SWFStream.h:59
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
@ SWF
Definition: GnashKey.h:331
std::string hexify(const unsigned char *p, size_t length, bool ascii)
Convert a sequence of bytes to hex or ascii format.
Definition: log.cpp:48
@ e
Definition: GnashKey.h:151
@ END
Definition: SWF.h:32