Gnash
0.8.11dev
|
A "movie" definition for a bitmap file. More...
#include <BitmapMovieDefinition.h>
Public Member Functions | |
BitmapMovieDefinition (std::unique_ptr< image::GnashImage > image, Renderer *renderer, std::string url) | |
Construct a BitmapMovieDefinition for the given image (rgb) More... | |
virtual DisplayObject * | createDisplayObject (Global_as &, DisplayObject *) const |
Create a DisplayObject with the given parent. More... | |
virtual int | get_version () const |
virtual size_t | get_width_pixels () const |
Frame width in pixels. More... | |
virtual size_t | get_height_pixels () const |
Frame height in pixels. More... | |
virtual size_t | get_frame_count () const |
virtual float | get_frame_rate () const |
virtual const SWFRect & | get_frame_size () const |
Return size of frame, in TWIPS. More... | |
virtual size_t | get_bytes_loaded () const |
Return number of bytes loaded. More... | |
virtual size_t | get_bytes_total () const |
Return total number of bytes which composed this movie. More... | |
virtual Movie * | createMovie (Global_as &gl, DisplayObject *parent=nullptr) |
Create a playable Movie from this def. More... | |
virtual const std::string & | get_url () const |
Return the URL of the SWF stream this definition has been read from. More... | |
size_t | get_loading_frame () const |
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded. More... | |
const CachedBitmap * | bitmap () const |
![]() | |
virtual void | incrementLoadedFrames () |
virtual const PlayList * | getPlaylist (size_t) const |
Return the list of execute tags for given frame number. More... | |
virtual void | importResources (boost::intrusive_ptr< movie_definition >, const Imports &) |
Import resources. More... | |
virtual DefinitionTag * | getDefinitionTag (std::uint16_t) const |
Get a DisplayObject from the dictionary. More... | |
virtual bool | get_labeled_frame (const std::string &, size_t &) const |
Get 0-based index of the frame with given label. More... | |
virtual void | addDisplayObject (std::uint16_t, DefinitionTag *) |
Add a DefinitionTag with given ID to the CharactersDictionary. More... | |
virtual void | add_font (int, boost::intrusive_ptr< Font >) |
Add a font DisplayObject with given ID to the CharacterDictionary. More... | |
virtual Font * | get_font (int) const |
Return the font with given DisplayObject id. More... | |
virtual Font * | get_font (const std::string &, bool, bool) const |
Find a font from the movie (not shared) lib. More... | |
virtual void | addControlTag (boost::intrusive_ptr< SWF::ControlTag >) |
Add an ControlTag to this movie_definition's playlist. More... | |
virtual void | add_frame_name (const std::string &) |
Labels the frame currently being loaded with the given name. More... | |
virtual void | set_jpeg_loader (std::unique_ptr< image::JpegInput >) |
virtual image::JpegInput * | get_jpeg_loader () const |
Get the jpeg input loader, to load a DefineBits image (one without table info). More... | |
virtual CachedBitmap * | getBitmap (int) const |
Get a bitmap from the bitmap dictionary. More... | |
virtual void | addBitmap (int, boost::intrusive_ptr< CachedBitmap >) |
Add a bitmap DisplayObject in the dictionary, with the specified DisplayObject id. More... | |
virtual sound_sample * | get_sound_sample (int) const |
Get the sound sample with given ID. More... | |
virtual void | add_sound_sample (int, sound_sample *) |
Add a sound sample DisplayObject in the dictionary, with the specified DisplayObject id. More... | |
virtual void | set_loading_sound_stream_id (int) |
Set the currently being loaded sound stream. More... | |
virtual int | get_loading_sound_stream_id () const |
Get the currently being loaded sound stream, if any. More... | |
virtual void | registerExport (const std::string &, std::uint16_t) |
Register a symbol to refer to a character id. More... | |
virtual std::uint16_t | exportID (const std::string &) const |
Get the id that corresponds to a symbol. More... | |
virtual void | setAS3 () |
Set whether the SWFMovie should use AVM2 or AVM1. More... | |
virtual bool | isAS3 () const |
True if the SWFMovie should use AVM2. More... | |
virtual bool | completeLoad () |
virtual bool | ensure_frame_loaded (size_t) const |
Ensure that frame number 'framenum' (1-based offset) has been loaded (load on demand). More... | |
![]() | |
virtual | ~DefinitionTag () |
virtual DSOTEXPORT void | executeState (MovieClip *m, DisplayList &) const |
Executing a DefinitionTag adds its id to list of known characters. More... | |
std::uint16_t | id () const |
The immutable id of the DefinitionTag. More... | |
![]() | |
virtual | ~ControlTag () |
virtual void | executeActions (MovieClip *, DisplayList &) const |
Execute Action tags. More... | |
![]() | |
ref_counted () | |
ref_counted (const ref_counted &) | |
void | add_ref () const |
void | drop_ref () const |
long | get_ref_count () const |
Additional Inherited Members | |
![]() | |
typedef std::vector< boost::intrusive_ptr< SWF::ControlTag > > | PlayList |
typedef std::pair< int, std::string > | ImportSpec |
typedef std::vector< ImportSpec > | Imports |
![]() | |
enum | Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 } |
Type of ControlTag. More... | |
![]() | |
movie_definition (std::uint16_t id=0) | |
virtual | ~movie_definition () |
![]() | |
DefinitionTag (std::uint16_t id) | |
![]() | |
virtual | ~ref_counted () |
A "movie" definition for a bitmap file.
The createMovie function will return a BitmapMovie
gnash::BitmapMovieDefinition::BitmapMovieDefinition | ( | std::unique_ptr< image::GnashImage > | image, |
Renderer * | renderer, | ||
std::string | url | ||
) |
Construct a BitmapMovieDefinition for the given image (rgb)
Will be initialized with the following values
|
inline |
|
virtual |
Create a DisplayObject with the given parent.
This function will determine the correct prototype and associated object using the passed global.
gl | The global object used to set prototype and associated object. Calling this function creates a new DisplayObject from the DefinitionTag and adds it as a child of the specified parent DisplayObject. |
Implements gnash::SWF::DefinitionTag.
|
virtual |
Create a playable Movie from this def.
Reimplemented from gnash::movie_definition.
References gnash::NSV::CLASS_MOVIE_CLIP, gnash::getObjectWithPrototype(), and gnash::key::o.
|
inlinevirtual |
Return number of bytes loaded.
Since no progressive load is implemented yet we'll always return total bytes here..
Implements gnash::movie_definition.
|
inlinevirtual |
Return total number of bytes which composed this movie.
We actually cheat, and return the image size here...
Implements gnash::movie_definition.
|
inlinevirtual |
Implements gnash::movie_definition.
|
inlinevirtual |
Implements gnash::movie_definition.
Referenced by gnash::BitmapMovie::frameRate().
|
inlinevirtual |
Return size of frame, in TWIPS.
Implements gnash::movie_definition.
Referenced by gnash::Bitmap::Bitmap().
|
inlinevirtual |
Frame height in pixels.
The frame size is in twips and may be rounded up.
Implements gnash::movie_definition.
References gnash::twipsToPixels().
Referenced by gnash::BitmapMovie::heightPixels().
|
inlinevirtual |
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded.
Implements gnash::movie_definition.
|
inlinevirtual |
Return the URL of the SWF stream this definition has been read from.
Implements gnash::movie_definition.
Referenced by gnash::BitmapMovie::url().
|
inlinevirtual |
Implements gnash::movie_definition.
Referenced by gnash::BitmapMovie::version().
|
inlinevirtual |
Frame width in pixels.
The frame size is in twips and may be rounded up.
Implements gnash::movie_definition.
References gnash::twipsToPixels().
Referenced by gnash::BitmapMovie::widthPixels().