Go to the documentation of this file.
19 #ifndef GNASH_BITMAPMOVIEDEFINITION_H
20 #define GNASH_BITMAPMOVIEDEFINITION_H
26 #include <boost/intrusive_ptr.hpp>
125 return _bitmap.get();
140 boost::intrusive_ptr<CachedBitmap> _bitmap;
145 #endif // GNASH_BITMAPMOVIEDEFINITION_H
BitmapMovieDefinition(std::unique_ptr< image::GnashImage > image, Renderer *renderer, std::string url)
Construct a BitmapMovieDefinition for the given image (rgb)
Definition: BitmapMovieDefinition.cpp:41
virtual const std::string & get_url() const
Return the URL of the SWF stream this definition has been read from.
Definition: BitmapMovieDefinition.h:111
@ CLASS_MOVIE_CLIP
Definition: namedStrings.h:227
A "movie" definition for a bitmap file.
Definition: BitmapMovieDefinition.h:46
virtual int get_version() const
Definition: BitmapMovieDefinition.h:67
@ height
Definition: klash_part.cpp:329
The base class for all ActionScript objects.
Definition: as_object.h:162
virtual size_t get_frame_count() const
Definition: BitmapMovieDefinition.h:79
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Base class for render handlers.
Definition: Renderer.h:189
double twipsToPixels(int i)
Definition: GnashNumeric.h:97
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
virtual size_t get_bytes_loaded() const
Return number of bytes loaded.
Definition: BitmapMovieDefinition.h:96
const CachedBitmap * bitmap() const
Definition: BitmapMovieDefinition.h:124
std::int32_t height() const
Return height of this rectangle in TWIPS.
Definition: SWFRect.h:109
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
virtual DisplayObject * createDisplayObject(Global_as &, DisplayObject *) const
Create a DisplayObject with the given parent.
Definition: BitmapMovieDefinition.cpp:56
std::string url
Definition: gnash.cpp:59
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
virtual Movie * createMovie(Global_as &gl, DisplayObject *parent=nullptr)
Create a playable Movie from this def.
Definition: BitmapMovieDefinition.cpp:35
as_object * getObjectWithPrototype(Global_as &gl, const ObjectURI &c)
Definition: as_object.cpp:1109
std::int32_t width() const
Return width of this rectangle in TWIPS.
Definition: SWFRect.h:103
virtual float get_frame_rate() const
Definition: BitmapMovieDefinition.h:83
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
size_t get_loading_frame() const
Returns 1 based index. Ex: if 1 then 1st frame as been fully loaded.
Definition: BitmapMovieDefinition.h:119
virtual const SWFRect & get_frame_size() const
Return size of frame, in TWIPS.
Definition: BitmapMovieDefinition.h:87
@ o
Definition: GnashKey.h:161
virtual size_t get_width_pixels() const
Frame width in pixels.
Definition: BitmapMovieDefinition.h:71
@ width
Definition: klash_part.cpp:329
virtual size_t get_bytes_total() const
Return total number of bytes which composed this movie.
Definition: BitmapMovieDefinition.h:104
A CachedBitmap is created by the renderer in a format of its choosing.
Definition: CachedBitmap.h:38
virtual size_t get_height_pixels() const
Frame height in pixels.
Definition: BitmapMovieDefinition.h:75
A top-level movie displaying a still bitmap.
Definition: BitmapMovie.h:41