• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

tag_loaders.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software
00003 //   Foundation, Inc
00004 // 
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 // 
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 
00020 #ifndef GNASH_SWF_TAG_LOADERS_H
00021 #define GNASH_SWF_TAG_LOADERS_H
00022 
00023 #include "SWF.h" 
00024 #include "SWFStream.h"
00025 
00026 #include <cassert>
00027 
00028 // Forward declarations
00029 namespace gnash {
00030     class movie_definition;
00031     class RunResources;
00032 }
00033 
00034 namespace gnash {
00035 namespace SWF {
00036 
00038 void null_loader(SWFStream&, TagType, movie_definition&, const RunResources&);
00039 
00041 void fixme_loader(SWFStream&, TagType, movie_definition&, const RunResources&);
00042 
00046 void jpeg_tables_loader(SWFStream&, TagType, movie_definition&,
00047                 const RunResources&);
00048 
00052 void define_bits_jpeg_loader(SWFStream&, TagType, movie_definition&,
00053                 const RunResources&);
00054 
00056 void define_bits_jpeg2_loader(SWFStream&, TagType, movie_definition&,
00057                 const RunResources&);
00058 
00062 void define_bits_jpeg3_loader(SWFStream&, TagType, movie_definition&,
00063                 const RunResources&);
00064 
00066 //
00067 void reflex_loader(SWFStream&, TagType, movie_definition&,
00068                 const RunResources&);
00069 
00070 void define_bits_lossless_2_loader(SWFStream&, TagType, movie_definition&,
00071                 const RunResources&);
00072 
00074 //
00077 void sprite_loader(SWFStream&, TagType, movie_definition&, const RunResources&);
00078 
00079 // end_tag doesn't actually need to exist.
00080 // TODO: drop this loader ?
00081 inline void end_loader(SWFStream& in, TagType tag, movie_definition&,
00082         const RunResources&)
00083 {
00084     assert(tag == SWF::END); // 0
00085     assert(in.tell() == in.get_tag_end_position());
00086 }
00087 
00088 void remove_object_2_loader(SWFStream&, TagType, movie_definition&,
00089                 const RunResources&);
00090 
00091 void do_action_loader(SWFStream&, TagType, movie_definition&, const RunResources&);
00092 
00094 void frame_label_loader(SWFStream&, TagType, movie_definition&,
00095                 const RunResources&);
00096 
00098 void define_sound_loader(SWFStream&, TagType, movie_definition&,
00099                 const RunResources&);
00100 
00101 void do_init_action_loader(SWFStream&, TagType, movie_definition&,
00102                 const RunResources&);
00103 
00105 void sound_stream_head_loader(SWFStream&, TagType, movie_definition&,
00106                 const RunResources&);
00107 
00109 void sound_stream_block_loader(SWFStream&, TagType, movie_definition&,
00110                 const RunResources&);
00111 
00112 void
00113 define_video_loader(SWFStream& in, TagType tag, movie_definition& m,
00114                 const RunResources& r);
00115 
00116 void
00117 video_loader(SWFStream& in, TagType tag, movie_definition& m,
00118                 const RunResources& r);
00119 
00120 void
00121 file_attributes_loader(SWFStream& in, TagType tag, movie_definition& m,
00122                 const RunResources& r);
00123 
00124 void
00125 metadata_loader(SWFStream& in, TagType tag, movie_definition& m,
00126                 const RunResources& r);
00127 
00129 void
00130 serialnumber_loader(SWFStream& in, TagType tag, movie_definition& /*m*/,
00131         const RunResources& /*r*/);
00132 
00133 
00134 } // namespace gnash::SWF
00135 } // namespace gnash
00136 
00137 
00138 #endif // GNASH_SWF_TAG_LOADERS_H
00139 
00140 
00141 // Local Variables:
00142 // mode: C++
00143 // indent-tabs-mode: t
00144 // End:

Generated on Fri Mar 16 2012 15:46:12 for Gnash by  doxygen 1.7.1