Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GNASH_DUMP_H
00020 #define GNASH_DUMP_H
00021
00022 #ifdef HAVE_CONFIG_H
00023 #include "gnashconfig.h"
00024 #endif
00025
00026 #include "dsodefs.h"
00027 #include "gui.h"
00028 #include <string>
00029 #include <fstream>
00030 #include <boost/scoped_array.hpp>
00031
00032 namespace gnash
00033 {
00034
00035 class Renderer_agg_base;
00036
00037 typedef bool (*callback_t)(void*, int, void *data);
00038
00039 class DSOEXPORT DumpGui : public Gui
00040 {
00041 public:
00042 DumpGui(unsigned long xid, float scale, bool loop, RunResources& r);
00043 ~DumpGui();
00044 void beforeRendering();
00045 bool createMenu() { return true; }
00046 bool createMenuBar() { return true; }
00047 bool createWindow(int width, int height);
00048 bool createWindow(const char* , int width, int height,
00049 int , int )
00050 { return createWindow(width, height); }
00051 bool init(int argc, char **argv[]);
00052 virtual void quitUI();
00053 void renderBuffer() {return; }
00054 void render() { return; }
00055 void render(int , int , int , int )
00056 { render(); }
00057 bool run();
00058 void setInterval(unsigned int interval);
00059 void setTimeout(unsigned int timeout);
00060 bool setupEvents() { return true; }
00061 void setFullscreen() { return; }
00062 void setInvalidatedRegion(const SWFRect& ) { return; }
00063 void setInvalidatedRegions(const InvalidatedRanges& ) { return; }
00064 void setCursor(gnash_cursor_type ) { return; }
00065 void setRenderHandlerSize(int width, int height);
00066 void unsetFullscreen() { return; }
00067 bool want_multiple_regions() { return true; }
00068 bool want_redraw() { return false; }
00069 void writeFrame();
00070
00071 private:
00072
00073 Renderer_agg_base* _agg_renderer;
00074
00075
00076
00077
00078
00079 boost::scoped_array<unsigned char> _offscreenbuf;
00080
00081 int _offscreenbuf_size;
00082
00083 unsigned int _timeout;
00084 unsigned int _framecount;
00085
00086 unsigned int _bpp;
00087 std::string _pixelformat;
00088
00089 std::string _fileOutput;
00090 std::ofstream _fileStream;
00091 void init_dumpfile();
00092
00093
00094
00095 };
00096
00097
00098 }
00099
00100
00101 #endif