22 #include <boost/intrusive_ptr.hpp>
34 class DefineVideoStreamTag;
114 const boost::intrusive_ptr<const SWF::DefineVideoStreamTag> m_def;
120 bool _embeddedStream;
123 std::int32_t _lastDecodedVideoFrameNum;
126 std::unique_ptr<image::GnashImage> _lastDecodedVideoFrame;
133 std::unique_ptr<media::VideoDecoder> _decoder;
NetStream_as ActionScript class.
Definition: NetStream_as.h:181
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
int height() const
Get the height of the video.
Definition: Video.cpp:85
Video(as_object *object, const SWF::DefineVideoStreamTag *def, DisplayObject *parent)
Definition: Video.cpp:41
void clear()
Definition: Video.cpp:92
~Video()
Definition: Video.cpp:73
virtual bool pointInShape(std::int32_t x, std::int32_t y) const
Return true if the given point falls in this DisplayObject's shape.
Definition: Video.h:58
void setStream(NetStream_as *ns)
Set the input stream for this video.
Definition: Video.cpp:221
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
virtual void markOwnResources() const
Mark video-specific reachable resources.
Definition: Video.cpp:238
virtual SWFRect getBounds() const
Definition: Video.cpp:228
The base class for all ActionScript objects.
Definition: as_object.h:161
Base class for render handlers.
Definition: Renderer.h:188
void add_invalidated_bounds(InvalidatedRanges &ranges, bool force)
Add the DisplayObject's invalidated bounds to the given ranges list.
Definition: Video.cpp:206
std::int32_t x
Definition: BitmapData_as.cpp:434
Definition: GnashKey.h:148
virtual void construct(as_object *init=nullptr)
Register this video instance as a live DisplayObject.
Definition: Video.cpp:199
bool pointInBounds(std::int32_t x, std::int32_t y) const
Return true if the given point falls in this DisplayObject's bounds.
Definition: DisplayObject.h:488
Definition: DefineVideoStreamTag.h:43
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
int width() const
Get the width of the video.
Definition: Video.cpp:78
VideoStream ActionScript object.
Definition: Video.h:49
std::int32_t y
Definition: BitmapData_as.cpp:435
Base class for different types of bitmaps.
Definition: GnashImage.h:77
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
bool smoothing() const
Whether this Video object should request smoothing when scaled.
Definition: Video.h:95
virtual void display(Renderer &renderer, const Transform &xform)
Render the DisplayObject.
Definition: Video.cpp:103
Definition: GnashKey.h:331
void setSmoothing(bool b)
Set whether smoothing is required.
Definition: Video.h:98