Go to the documentation of this file.
48 #ifndef GNASH_MOVIE_DEFINITION_H
49 #define GNASH_MOVIE_DEFINITION_H
58 #include <boost/intrusive_ptr.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 std::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 bool isAS3() const
True if the SWFMovie should use AVM2.
Definition: movie_definition.h:410
virtual const SWFRect & get_frame_size() const =0
Return size of frame, in TWIPS.
virtual const PlayList * getPlaylist(size_t) const
Return the list of execute tags for given frame number.
Definition: movie_definition.h:159
virtual void registerExport(const std::string &, std::uint16_t)
Register a symbol to refer to a character id.
Definition: movie_definition.h:390
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
virtual int get_loading_sound_stream_id() const
Get the currently being loaded sound stream, if any.
Definition: movie_definition.h:382
virtual void add_font(int, boost::intrusive_ptr< Font >)
Add a font DisplayObject with given ID to the CharacterDictionary.
Definition: movie_definition.h:242
virtual void addControlTag(boost::intrusive_ptr< SWF::ControlTag >)
Add an ControlTag to this movie_definition's playlist.
Definition: movie_definition.h:273
virtual void set_loading_sound_stream_id(int)
Set the currently being loaded sound stream.
Definition: movie_definition.h:370
std::pair< int, std::string > ImportSpec
Definition: movie_definition.h:165
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
virtual void add_frame_name(const std::string &)
Labels the frame currently being loaded with the given name.
Definition: movie_definition.h:285
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
virtual const std::string & get_url() const =0
Return the URL of the SWF stream this definition has been read from.
virtual size_t get_bytes_loaded() const =0
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual void addDisplayObject(std::uint16_t, DefinitionTag *)
Add a DefinitionTag with given ID to the CharactersDictionary.
Definition: movie_definition.h:233
@ s
Definition: GnashKey.h:165
virtual DefinitionTag * getDefinitionTag(std::uint16_t) const
Get a DisplayObject from the dictionary.
Definition: movie_definition.h:196
virtual size_t get_bytes_total() const =0
Get total number of bytes in (uncompressed for SWF) input stream.
std::vector< ImportSpec > Imports
Definition: movie_definition.h:166
virtual Movie * createMovie(Global_as &, DisplayObject *=nullptr)
Create a movie instance from a def.
Definition: movie_definition.h:143
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
virtual int get_version() const =0
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
virtual void importResources(boost::intrusive_ptr< movie_definition >, const Imports &)
Import resources.
Definition: movie_definition.h:176
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
An identifier for a sound sample managed by a sound_handler.
Definition: sound_definition.h:62
std::uint16_t id() const
The immutable id of the DefinitionTag.
Definition: DefinitionTag.h:76
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
virtual void set_jpeg_loader(std::unique_ptr< image::JpegInput >)
Definition: movie_definition.h:296
virtual void incrementLoadedFrames()
Definition: movie_definition.h:148
std::vector< boost::intrusive_ptr< SWF::ControlTag > > PlayList
Definition: movie_definition.h:98
virtual Font * get_font(int) const
Return the font with given DisplayObject id.
Definition: movie_definition.h:253
virtual size_t get_loading_frame() const =0
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded.
movie_definition(std::uint16_t id=0)
Definition: movie_definition.h:461
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 sound_sample * get_sound_sample(int) const
Get the sound sample with given ID.
Definition: movie_definition.h:351
virtual size_t get_frame_count() const =0
virtual ~movie_definition()
Definition: movie_definition.h:466
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
DefinitionTag(std::uint16_t id)
Definition: DefinitionTag.h:82
virtual void setAS3()
Set whether the SWFMovie should use AVM2 or AVM1.
Definition: movie_definition.h:403
A Font resource.
Definition: Font.h:90
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
virtual std::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
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 size_t get_width_pixels() const =0
Frame width in pixels.
virtual bool completeLoad()
Definition: movie_definition.h:421
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
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 CachedBitmap * getBitmap(int) const
Get a bitmap from the bitmap dictionary.
Definition: movie_definition.h:329
virtual float get_frame_rate() const =0
@ SWF
Definition: GnashKey.h:331
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
virtual size_t get_height_pixels() const =0
Frame height in pixels.