Gnash  0.8.11dev
DefineBitsTag.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 
20 #ifndef GNASH_SWF_DEFINEBITSTAG_H
21 #define GNASH_SWF_DEFINEBITSTAG_H
22 
23 #include "SWF.h"
24 
25 // Forward declarations
26 namespace gnash {
27  class movie_definition;
28  class RunResources;
29  class SWFStream;
30 }
31 
32 namespace gnash {
33 namespace SWF {
34 
35 void jpeg_tables_loader(SWFStream&, TagType, movie_definition&,
36  const RunResources&);
37 
39 {
40 public:
41  static void loader(SWFStream&, TagType, movie_definition&,
42  const RunResources&);
43 
44 };
45 
46 } // namespace SWF
47 } // namespace gnash
48 
49 
50 #endif
51 
52 // Local Variables:
53 // mode: C++
54 // indent-tabs-mode: t
55 // End:
pix
BitmapData_as::iterator pix
Definition: BitmapData_as.cpp:568
gnash::SWF::DefineBitsTag::loader
static void loader(SWFStream &, TagType, movie_definition &, const RunResources &)
Definition: DefineBitsTag.cpp:196
height
@ height
Definition: klash_part.cpp:329
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::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
gnash::key::i
@ i
Definition: GnashKey.h:155
TagLoadersTable.h
gnash::SWF::JPEGTABLES
@ JPEGTABLES
Definition: SWF.h:40
_
#define _(String)
Definition: log.h:44
Renderer.h
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::SWF::DEFINELOSSLESS2
@ DEFINELOSSLESS2
Definition: SWF.h:66
gnash::key::g
@ g
Definition: GnashKey.h:153
gnash::Renderer::createCachedBitmap
virtual CachedBitmap * createCachedBitmap(std::unique_ptr< image::GnashImage > im)=0
Given an image, returns a pointer to a CachedBitmap class that can later be passed to FillStyleX_bitm...
gnash::FileType
FileType
Definition: GnashEnums.h:25
gnash::SWF::DEFINEBITSJPEG4
@ DEFINEBITSJPEG4
Definition: SWF.h:116
gnash::GNASH_FILETYPE_JPEG
@ GNASH_FILETYPE_JPEG
Definition: GnashEnums.h:26
zlib_adapter.h
gnash::Renderer
Base class for render handlers.
Definition: Renderer.h:189
gnash::key::m
@ m
Definition: GnashKey.h:159
utility.h
gnash::key::s
@ s
Definition: GnashKey.h:165
GnashImage.h
gnash::image::mergeAlpha
void mergeAlpha(ImageRGBA &im, GnashImage::const_iterator alphaData, const size_t bufferLength)
Definition: GnashImage.cpp:146
gnash::movie_definition
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
CachedBitmap.h
IF_VERBOSE_MALFORMED_SWF
#define IF_VERBOSE_MALFORMED_SWF(x)
Definition: log.h:404
gnash::image::JpegInput
Class for reading JPEG image data.
Definition: GnashImageJpeg.h:50
gnash::image::JpegInput::createSWFJpeg2HeaderOnly
static std::unique_ptr< JpegInput > createSWFJpeg2HeaderOnly(std::shared_ptr< IOChannel > in, unsigned int maxHeaderBytes)
Create a JPEG 'loader' object by reading a JPEG header.
Definition: GnashImageJpeg.h:145
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::image::scanline
GnashImage::iterator scanline(GnashImage &im, size_t row)
Get a pointer to a given row of any image.
Definition: GnashImage.h:392
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::SWF::DEFINELOSSLESS
@ DEFINELOSSLESS
Definition: SWF.h:52
gnash::key::j
@ j
Definition: GnashKey.h:156
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::SWF::DefineBitsTag
Definition: DefineBitsTag.h:39
SWFMovieDefinition.h
IF_VERBOSE_PARSE
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
GnashImageJpeg.h
gnash::GNASH_FILETYPE_PNG
@ GNASH_FILETYPE_PNG
Definition: GnashEnums.h:27
gnash::log_parse
void log_parse(StringType msg, Args... args)
Definition: log.h:313
log.h
gnash::SWF::DEFINEBITS
@ DEFINEBITS
Definition: SWF.h:38
gnashconfig.h
SWF.h
gnash::image::JpegInput::readSWFJpeg2WithTables
static DSOEXPORT std::unique_ptr< GnashImage > readSWFJpeg2WithTables(JpegInput &loader)
For reading SWF JPEG2-style image data, using pre-loaded headers stored in the given JpegInput object...
Definition: GnashImageJpeg.cpp:446
gnash::SWFStream::read_u16
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
DefineBitsTag.h
RunResources.h
gnash::image::Input::readSWFJpeg3
static DSOEXPORT std::unique_ptr< ImageRGBA > readSWFJpeg3(std::shared_ptr< gnash::IOChannel > in)
For reading SWF JPEG3-style image data, like ordinary JPEG, but stores the data in ImageRGBA format.
Definition: GnashImage.cpp:283
gnash::SWF::DEFINEBITSJPEG2
@ DEFINEBITSJPEG2
Definition: SWF.h:53
gnash::GNASH_FILETYPE_GIF
@ GNASH_FILETYPE_GIF
Definition: GnashEnums.h:28
gnash::SWF::jpeg_tables_loader
void jpeg_tables_loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: DefineBitsTag.cpp:146
gnash::equal
bool equal(string_table &st, string_table::key a, string_table::key b, bool caseless)
Check whether two keys are equivalent.
Definition: string_table.cpp:174
gnash::image::Input::readImageData
static DSOEXPORT std::unique_ptr< GnashImage > readImageData(std::shared_ptr< gnash::IOChannel > in, FileType type)
Read image data from an IOChannel into an GnashImage.
Definition: GnashImage.cpp:215
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
width
@ width
Definition: klash_part.cpp:329
gnash::key::SWF
@ SWF
Definition: GnashKey.h:331
gnash::image::JpegInput::discardPartialBuffer
DSOEXPORT void discardPartialBuffer()
Discard any data sitting in our input buffer.
Definition: GnashImageJpeg.cpp:245
gnash::SWF::DEFINEBITSJPEG3
@ DEFINEBITSJPEG3
Definition: SWF.h:65
GnashException.h
SWFStream.h
IOChannel.h
gnash::key::e
@ e
Definition: GnashKey.h:151