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;
100 virtual int get_version()
const = 0;
105 virtual size_t get_width_pixels()
const = 0;
110 virtual size_t get_height_pixels()
const = 0;
112 virtual size_t get_frame_count()
const = 0;
113 virtual float get_frame_rate()
const = 0;
116 virtual const SWFRect& get_frame_size()
const = 0;
118 virtual size_t get_bytes_loaded()
const = 0;
127 virtual size_t get_bytes_total()
const = 0;
177 boost::intrusive_ptr<movie_definition> ,
181 log_swferror(
_(
"IMPORT tag appears outside SWF definition"));
223 virtual size_t get_loading_frame()
const = 0;
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 Font * get_font(int) const
Return the font with given DisplayObject id.
Definition: movie_definition.h:253
virtual void registerExport(const std::string &, std::uint16_t)
Register a symbol to refer to a character id.
Definition: movie_definition.h:390
virtual CachedBitmap * getBitmap(int) const
Get a bitmap from the bitmap dictionary.
Definition: movie_definition.h:329
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
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
A Font resource.
Definition: Font.h:89
movie_definition(std::uint16_t id=0)
Definition: movie_definition.h:461
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
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
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:46
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:47
virtual bool completeLoad()
Definition: movie_definition.h:421
virtual const PlayList * getPlaylist(size_t) const
Return the list of execute tags for given frame number.
Definition: movie_definition.h:159
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
std::pair< int, std::string > ImportSpec
Definition: movie_definition.h:165
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 addDisplayObject(std::uint16_t, DefinitionTag *)
Add a DefinitionTag with given ID to the CharactersDictionary.
Definition: movie_definition.h:233
virtual std::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
virtual DefinitionTag * getDefinitionTag(std::uint16_t) const
Get a DisplayObject from the dictionary.
Definition: movie_definition.h:196
#define _(String)
Definition: log.h:44
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
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
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
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 bool isAS3() const
True if the SWFMovie should use AVM2.
Definition: movie_definition.h:410
virtual void importResources(boost::intrusive_ptr< movie_definition >, const Imports &)
Import resources.
Definition: movie_definition.h:176
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:49
virtual ~movie_definition()
Definition: movie_definition.h:466
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 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
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 void set_jpeg_loader(std::unique_ptr< image::JpegInput >)
Definition: movie_definition.h:296
Definition: GnashKey.h:165
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 Movie * createMovie(Global_as &, DisplayObject *=nullptr)
Create a movie instance from a def.
Definition: movie_definition.h:143
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 sound_sample * get_sound_sample(int) const
Get the sound sample with given ID.
Definition: movie_definition.h:351
virtual int get_loading_sound_stream_id() const
Get the currently being loaded sound stream, if any.
Definition: movie_definition.h:382