Gnash  0.8.11dev
Public Member Functions | Static Public Member Functions | List of all members
gnash::SWF::DefineVideoStreamTag Class Reference

#include <DefineVideoStreamTag.h>

Inheritance diagram for gnash::SWF::DefineVideoStreamTag:
gnash::SWF::DefinitionTag gnash::SWF::ControlTag gnash::ref_counted

Public Member Functions

 ~DefineVideoStreamTag ()
 
DisplayObjectcreateDisplayObject (Global_as &gl, DisplayObject *parent) const
 Create a DisplayObject with the given parent. More...
 
void readDefineVideoFrame (SWFStream &in, SWF::TagType tag, movie_definition &m)
 Read tag SWF::VIDEOFRAME. More...
 
const SWFRectbounds () const
 Return local video bounds in twips. More...
 
media::VideoInfogetVideoInfo () const
 Get info about video embedded in this definition. More...
 
template<typename T >
size_t visitSlice (const T &t, std::uint32_t from, std::uint32_t to) const
 Visit a slice of encoded video frames. More...
 
void addVideoFrameTag (std::unique_ptr< media::EncodedVideoFrame > frame)
 
- Public Member Functions inherited from gnash::SWF::DefinitionTag
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...
 
- Public Member Functions inherited from gnash::SWF::ControlTag
virtual ~ControlTag ()
 
virtual void executeActions (MovieClip *, DisplayList &) const
 Execute Action tags. More...
 
- Public Member Functions inherited from gnash::ref_counted
 ref_counted ()
 
 ref_counted (const ref_counted &)
 
void add_ref () const
 
void drop_ref () const
 
long get_ref_count () const
 

Static Public Member Functions

static void loader (SWFStream &in, SWF::TagType tag, movie_definition &m, const RunResources &r)
 Read tag SWF::DEFINEVIDEOSTREAM. More...
 

Additional Inherited Members

- Public Types inherited from gnash::SWF::ControlTag
- Protected Member Functions inherited from gnash::SWF::DefinitionTag
 DefinitionTag (std::uint16_t id)
 
- Protected Member Functions inherited from gnash::ref_counted
virtual ~ref_counted ()
 

Constructor & Destructor Documentation

gnash::SWF::DefineVideoStreamTag::~DefineVideoStreamTag ( )

Member Function Documentation

void gnash::SWF::DefineVideoStreamTag::addVideoFrameTag ( std::unique_ptr< media::EncodedVideoFrame frame)
const SWFRect& gnash::SWF::DefineVideoStreamTag::bounds ( ) const
inline

Return local video bounds in twips.

DisplayObject * gnash::SWF::DefineVideoStreamTag::createDisplayObject ( Global_as gl,
DisplayObject parent 
) const
virtual

Create a DisplayObject with the given parent.

This function will determine the correct prototype and associated object using the passed global.

Parameters
glThe 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.

References gnash::createVideoObject().

media::VideoInfo* gnash::SWF::DefineVideoStreamTag::getVideoInfo ( ) const
inline

Get info about video embedded in this definition.

May return NULL if there's no embedded video (ActionScript created definition - new Video)

Referenced by gnash::SWF::VideoFrameTag::loader().

void gnash::SWF::DefineVideoStreamTag::loader ( SWFStream in,
SWF::TagType  tag,
movie_definition m,
const RunResources r 
)
static
void gnash::SWF::DefineVideoStreamTag::readDefineVideoFrame ( SWFStream in,
SWF::TagType  tag,
movie_definition m 
)

Read tag SWF::VIDEOFRAME.

The DisplayObject_id (used to find this instance in the DisplayObject's dictionary) is assumed to have been already read. This function is allowed to be called zero or more times, as long as readDefineVideoStream was read before.

template<typename T >
size_t gnash::SWF::DefineVideoStreamTag::visitSlice ( const T &  t,
std::uint32_t  from,
std::uint32_t  to 
) const
inline

Visit a slice of encoded video frames.

Parameters
fromFrame number of first frame to get
toFrame number of last frame to get
Template Parameters
tA visitor that should accept a const media::EncodedVideoFrame.

References addVideoFrameTag(), and gnash::renderer::opengl::for_each().


The documentation for this class was generated from the following files: