Gnash  0.8.11dev
VideoFrameTag.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef GNASH_SWF_VIDEOFRAMETAG_H
20 #define GNASH_SWF_VIDEOFRAMETAG_H
21 
22 #include "SWF.h"
23 
24 namespace gnash {
25  // Forward declarations
26  class SWFStream;
27  class RunResources;
28  class movie_definition;
29 }
30 
31 namespace gnash {
32 namespace SWF {
33 
35 {
36 public:
37 
39  //
45  static void loader(SWFStream& in, SWF::TagType tag, movie_definition& m,
46  const RunResources& r);
47 
48 };
49 
50 } // namespace SWF
51 } // namespace gnash
52 
53 
54 #endif // GNASH_VIDEO_STREAM_DEF_H
gnash::SWF::DefineVideoStreamTag::addVideoFrameTag
void addVideoFrameTag(std::unique_ptr< media::EncodedVideoFrame > frame)
Definition: DefineVideoStreamTag.cpp:107
gnash::SWF::DefineVideoStreamTag
Definition: DefineVideoStreamTag.h:44
VideoFrameTag.h
gnash::log_swferror
void log_swferror(StringType msg, Args... args)
Definition: log.h:325
gnash::SWF::TagType
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
gnash::SWF::DefinitionTag
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
gnash::typeName
std::string typeName(const T &inst)
Definition: utility.h:93
_
#define _(String)
Definition: log.h:44
gnash::SWF::VideoFrameTag::loader
static void loader(SWFStream &in, SWF::TagType tag, movie_definition &m, const RunResources &r)
Read tag SWF::VIDEOFRAME.
Definition: VideoFrameTag.cpp:35
gnash::media::VIDEO_CODEC_SCREENVIDEO
@ VIDEO_CODEC_SCREENVIDEO
Screenvideo codec.
Definition: MediaParser.h:84
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::media::VideoInfo
Information about a video stream.
Definition: MediaParser.h:323
gnash::key::m
@ m
Definition: GnashKey.h:159
utility.h
gnash::SWFStream::read
unsigned read(char *buf, unsigned count)
Read <count> bytes from the source stream and copy that data to <buf>.
Definition: SWFStream.cpp:68
gnash::movie_definition
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
gnash::SWF::DefineVideoStreamTag::getVideoInfo
media::VideoInfo * getVideoInfo() const
Get info about video embedded in this definition.
Definition: DefineVideoStreamTag.h:108
IF_VERBOSE_MALFORMED_SWF
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
gnash::key::r
@ r
Definition: GnashKey.h:164
gnash::SWFStream::tell
unsigned long tell()
Return our current (byte) position in the input stream.
Definition: SWFStream.cpp:447
gnash::SWF::VideoFrameTag
Definition: VideoFrameTag.h:35
VideoDecoder.h
gnash::ParserException
An SWF parsing exception.
Definition: GnashException.h:90
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::SWFStream::get_tag_end_position
unsigned long get_tag_end_position()
Return the file position of the end of the current tag.
Definition: SWFStream.cpp:497
gnash::media::VideoInfo::codec
int codec
Definition: MediaParser.h:367
SWF.h
gnash::SWFStream::read_u16
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
RunResources.h
gnash::SWF::VIDEOFRAME
@ VIDEOFRAME
Definition: SWF.h:91
DefineVideoStreamTag.h
gnash::SWFStream::read_u8
std::uint8_t read_u8()
Read a aligned unsigned 8-bit value from the stream.
Definition: SWFStream.cpp:319
movie_definition.h
gnash::SWFStream
SWF stream wrapper class.
Definition: SWFStream.h:59
gnash::SWFStream::ensureBytes
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
gnash::key::SWF
@ SWF
Definition: GnashKey.h:331
SWFStream.h