Go to the documentation of this file.
20 #ifndef GNASH_SWF_TAG_LOADERS_H
21 #define GNASH_SWF_TAG_LOADERS_H
27 class movie_definition;
56 const RunResources&
r);
60 const RunResources&
r);
65 const RunResources& );
72 #endif // GNASH_SWF_TAG_LOADERS_H
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
std::string name
Definition: LocalConnection_as.cpp:149
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
Holds the immutable data for a sprite, as read from as SWF stream. @ should not derive from movie_def...
Definition: sprite_definition.h:50
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
size_t arraySize(T(&)[N])
Get the size of an array without passing a pointer by mistake.
Definition: GnashAlgorithm.h:58
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define _(String)
Definition: log.h:44
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string,...
Definition: SWFStream.cpp:395
Immutable definition of a SWF movie's contents.
Definition: SWFMovieDefinition.h:159
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void define_sound_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Sample rate table for DEFINESOUNDHEAD tags.
Definition: tag_loaders.cpp:151
@ DEFINESOUND
Definition: SWF.h:46
@ FRAMELABEL
Definition: SWF.h:73
@ m
Definition: GnashKey.h:159
std::int32_t second
Definition: Date_as.cpp:93
unsigned read(char *buf, unsigned count)
Read <count> bytes from the source stream and copy that data to <buf>.
Definition: SWFStream.cpp:68
void reflex_loader(SWFStream &in, TagType tag, movie_definition &, const RunResources &)
SWF Tags Reflex (777)
Definition: tag_loaders.cpp:378
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
void log_error(StringType msg, Args... args)
Definition: log.h:283
@ SERIALNUMBER
Definition: SWF.h:71
std::int16_t read_s16()
Read a aligned signed 16-bit value from the stream.
Definition: SWFStream.cpp:355
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
An identifier for a sound sample managed by a sound_handler.
Definition: sound_definition.h:62
@ r
Definition: GnashKey.h:164
void frame_label_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Label the current frame (SWF::FRAMELABEL)
Definition: tag_loaders.cpp:58
unsigned long tell()
Return our current (byte) position in the input stream.
Definition: SWFStream.cpp:447
std::uint32_t read_u32()
Read a aligned unsigned 32-bit value from the stream.
Definition: SWFStream.cpp:361
@ METADATA
Definition: SWF.h:107
virtual int create_sound(std::unique_ptr< SimpleBuffer > data, const media::SoundInfo &sinfo)
Event sound functions:
Definition: sound_handler.cpp:455
An SWF parsing exception.
Definition: GnashException.h:90
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
@ FILEATTRIBUTES
Definition: SWF.h:99
@ DEFINESPRITE
Definition: SWF.h:69
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
void sprite_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Create and initialize a sprite, and add it to the movie.
Definition: tag_loaders.cpp:99
void metadata_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: tag_loaders.cpp:301
Sound mixer.
Definition: sound_handler.h:88
void serialnumber_loader(SWFStream &in, TagType tag, movie_definition &, const RunResources &)
Load a SWF::SERIALNUMBER tag.
Definition: tag_loaders.cpp:343
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
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 file_attributes_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: tag_loaders.cpp:247
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
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
@ REFLEX
Definition: SWF.h:117
A simple buffer of bytes.
Definition: SimpleBuffer.h:38