48 #ifndef GNASH_MOVIE_DEFINITION_H
49 #define GNASH_MOVIE_DEFINITION_H
58 #include <boost/intrusive_ptr.hpp>
59 #include <boost/cstdint.hpp>
98 typedef std::vector<boost::intrusive_ptr<SWF::ControlTag> >
PlayList;
177 boost::intrusive_ptr<movie_definition> ,
181 log_swferror(
_(
"IMPORT tag appears outside SWF definition"));
242 virtual void add_font(
int , boost::intrusive_ptr<Font> )
340 virtual void addBitmap(
int , boost::intrusive_ptr<CachedBitmap> )
396 virtual boost::uint16_t
exportID(
const std::string& )
const {
417 virtual const std::string&
get_url()
const = 0;
448 virtual void storeDescriptiveMetadata(
const std::string& )
452 virtual const std::string& getDescriptiveMetadata()
const
454 static const std::string
s;
471 #endif // GNASH_MOVIE_DEFINITION_H
virtual void addBitmap(int, boost::intrusive_ptr< CachedBitmap >)
Add a bitmap DisplayObject in the dictionary, with the specified DisplayObject id.
Definition: movie_definition.h:340
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
std::vector< ImportSpec > Imports
Definition: movie_definition.h:166
virtual bool get_labeled_frame(const std::string &, size_t &) const
Get 0-based index of the frame with given label.
Definition: movie_definition.h:216
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
A Font resource.
Definition: Font.h:90
virtual void set_loading_sound_stream_id(int)
Set the currently being loaded sound stream.
Definition: movie_definition.h:370
virtual void incrementLoadedFrames()
Definition: movie_definition.h:148
SWFStream & s
Definition: DefineBitsTag.cpp:73
virtual void add_sound_sample(int, sound_sample *)
Add a sound sample DisplayObject in the dictionary, with the specified DisplayObject id...
Definition: movie_definition.h:362
virtual const std::string & get_url() const =0
Return the URL of the SWF stream this definition has been read from.
boost::uint16_t id() const
The immutable id of the DefinitionTag.
Definition: DefinitionTag.h:77
virtual size_t get_width_pixels() const =0
Frame width in pixels.
virtual int get_version() const =0
virtual size_t get_bytes_total() const =0
Get total number of bytes in (uncompressed for SWF) input stream.
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:46
virtual size_t get_frame_count() const =0
virtual size_t get_loading_frame() const =0
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded.
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
virtual boost::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
virtual bool completeLoad()
Definition: movie_definition.h:421
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:390
std::pair< int, std::string > ImportSpec
Definition: movie_definition.h:165
virtual const PlayList * getPlaylist(size_t) const
Return the list of execute tags for given frame number.
Definition: movie_definition.h:159
virtual void set_jpeg_loader(std::auto_ptr< image::JpegInput >)
Definition: movie_definition.h:296
virtual sound_sample * get_sound_sample(int) const
Get the sound sample with given ID.
Definition: movie_definition.h:351
virtual DefinitionTag * getDefinitionTag(boost::uint16_t) const
Get a DisplayObject from the dictionary.
Definition: movie_definition.h:196
virtual void add_font(int, boost::intrusive_ptr< Font >)
Add a font DisplayObject with given ID to the CharacterDictionary.
Definition: movie_definition.h:242
movie_definition(boost::uint16_t id=0)
Definition: movie_definition.h:461
virtual bool ensure_frame_loaded(size_t) const
Ensure that frame number 'framenum' (1-based offset) has been loaded (load on demand).
Definition: movie_definition.h:437
virtual float get_frame_rate() const =0
#define _(String)
Definition: log.h:44
virtual Font * get_font(int) const
Return the font with given DisplayObject id.
Definition: movie_definition.h:253
virtual image::JpegInput * get_jpeg_loader() const
Get the jpeg input loader, to load a DefineBits image (one without table info).
Definition: movie_definition.h:311
std::vector< boost::intrusive_ptr< SWF::ControlTag > > PlayList
Definition: movie_definition.h:98
virtual void setAS3()
Set whether the SWFMovie should use AVM2 or AVM1.
Definition: movie_definition.h:403
virtual CachedBitmap * getBitmap(int) const
Get a bitmap from the bitmap dictionary.
Definition: movie_definition.h:329
virtual void addDisplayObject(boost::uint16_t, DefinitionTag *)
Add a DefinitionTag with given ID to the CharactersDictionary.
Definition: movie_definition.h:233
virtual void importResources(boost::intrusive_ptr< movie_definition >, const Imports &)
Import resources.
Definition: movie_definition.h:176
virtual const SWFRect & get_frame_size() const =0
Return size of frame, in TWIPS.
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:55
virtual size_t get_bytes_loaded() const =0
virtual bool isAS3() const
True if the SWFMovie should use AVM2.
Definition: movie_definition.h:410
virtual Font * get_font(const std::string &, bool, bool) const
Find a font from the movie (not shared) lib.
Definition: movie_definition.h:259
virtual ~movie_definition()
Definition: movie_definition.h:466
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
virtual void add_frame_name(const std::string &)
Labels the frame currently being loaded with the given name.
Definition: movie_definition.h:285
virtual Movie * createMovie(Global_as &, DisplayObject *=0)
Create a movie instance from a def.
Definition: movie_definition.h:143
DefinitionTag(boost::uint16_t id)
Definition: DefinitionTag.h:83
virtual size_t get_height_pixels() const =0
Frame height in pixels.
An identifier for a sound sample managed by a sound_handler.
Definition: sound_definition.h:61
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:37
virtual int get_loading_sound_stream_id() const
Get the currently being loaded sound stream, if any.
Definition: movie_definition.h:382
virtual void addControlTag(boost::intrusive_ptr< SWF::ControlTag >)
Add an ControlTag to this movie_definition's playlist.
Definition: movie_definition.h:273
Definition: GnashKey.h:331
virtual void registerExport(const std::string &, boost::uint16_t)
Register a symbol to refer to a character id.
Definition: movie_definition.h:390