Gnash
0.8.11dev
|
#include <DefineVideoStreamTag.h>
Public Member Functions | |
~DefineVideoStreamTag () | |
DisplayObject * | createDisplayObject (Global_as &gl, DisplayObject *parent) const |
Create a DisplayObject with the given parent. | |
void | readDefineVideoFrame (SWFStream &in, SWF::TagType tag, movie_definition &m) |
Read tag SWF::VIDEOFRAME. | |
const SWFRect & | bounds () const |
Return local video bounds in twips. | |
media::VideoInfo * | getVideoInfo () const |
Get info about video embedded in this definition. | |
template<typename T > | |
size_t | visitSlice (const T &t, boost::uint32_t from, boost::uint32_t to) const |
Visit a slice of encoded video frames. | |
void | addVideoFrameTag (std::auto_ptr< media::EncodedVideoFrame > frame) |
![]() | |
virtual | ~DefinitionTag () |
virtual DSOTEXPORT void | executeState (MovieClip *m, DisplayList &) const |
Executing a DefinitionTag adds its id to list of known characters. | |
boost::uint16_t | id () const |
The immutable id of the DefinitionTag. | |
![]() | |
virtual | ~ControlTag () |
virtual void | executeActions (MovieClip *, DisplayList &) const |
Execute Action tags. | |
![]() | |
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. |
Additional Inherited Members | |
![]() | |
enum | Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 } |
Type of ControlTag. More... | |
![]() | |
DefinitionTag (boost::uint16_t id) |
gnash::SWF::DefineVideoStreamTag::~DefineVideoStreamTag | ( | ) |
void gnash::SWF::DefineVideoStreamTag::addVideoFrameTag | ( | std::auto_ptr< media::EncodedVideoFrame > | frame | ) |
Referenced by gnash::SWF::VideoFrameTag::loader().
|
inline |
Return local video bounds in twips.
|
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.
References gnash::createVideoObject().
|
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().
|
static |
Read tag SWF::DEFINEVIDEOSTREAM.
The DisplayObject_id is assumed to have been already read by caller.
This function is allowed to be called only once for each instance of this class.
References gnash::movie_definition::addDisplayObject(), gnash::SWF::DEFINEVIDEOSTREAM, gnash::SWFStream::ensureBytes(), and gnash::SWFStream::read_u16().
Referenced by gnash::SWF::addDefaultLoaders().
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.
|
inline |
Visit a slice of encoded video frames.
from | Frame number of first frame to get |
to | Frame number of last frame to get |
t | A visitor that should accept a const media::EncodedVideoFrame. |
References gnash::renderer::opengl::for_each().