00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
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
00080
00081 inline void end_loader(SWFStream& in, TagType tag, movie_definition&,
00082 const RunResources&)
00083 {
00084 assert(tag == SWF::END);
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& ,
00131 const RunResources& );
00132
00133
00134 }
00135 }
00136
00137
00138 #endif // GNASH_SWF_TAG_LOADERS_H
00139
00140
00141
00142
00143
00144