Go to the documentation of this file.
41 class Renderer_agg_base;
48 void beforeRendering();
55 bool init(
int argc,
char **argv[]);
56 virtual void quitUI();
62 void setInterval(
unsigned int interval);
63 void setTimeout(
unsigned int timeout);
86 std::unique_ptr<unsigned char[]> _offscreenbuf;
88 int _offscreenbuf_size;
90 unsigned int _timeout;
91 unsigned int _framecount;
92 unsigned int _samplesFetched;
95 std::string _pixelformat;
97 std::string _fileOutput;
98 unsigned int _fileOutputFPS;
99 unsigned int _fileOutputAdvance;
100 unsigned long _lastVideoFrameDump;
101 std::ofstream _fileStream;
102 void init_dumpfile();
104 std::shared_ptr<sound::sound_handler> _soundHandler;
108 unsigned long _sleepUS;
110 std::string _startTrigger;
gnash_cursor_type
Enumerates mouse cursor types.
Definition: gui.h:81
VGPath path
Definition: testr_gtk.cpp:84
std::shared_ptr< Renderer > _renderer
The handler which is called to update the client area of our window.
Definition: gui.h:506
DSOEXPORT bool equals(const as_value &v, int version) const
Return true if this value is abstractly equal to the given one.
Definition: as_value.cpp:555
DSOEXPORT Renderer_agg_base * create_Renderer_agg(const char *pixelformat)
Create a render handler.
Definition: Renderer_agg.cpp:2048
@ height
Definition: klash_part.cpp:329
The base class for all ActionScript objects.
Definition: as_object.h:162
Movie & getRootMovie()
Access the originating root movie (not necessarily _level0)
Definition: movie_root.h:303
bool setupEvents()
Definition: dump.h:64
A class used to virtualize time flow.
Definition: VirtualClock.h:34
virtual void fetchSamples(std::int16_t *to, unsigned int nSamples)
Fetch mixed samples.
Definition: sound_handler.cpp:646
void log_debug(StringType msg, Args... args)
Definition: log.h:301
void render()
Definition: dump.h:58
void setSoundHandler(std::shared_ptr< sound::sound_handler > s)
Set the sound::sound_handler.
Definition: RunResources.h:88
int getopt(int, char *const *, const char *)
#define _(String)
Definition: log.h:44
A manually advanced clock.
Definition: ManualClock.h:31
Provides information about timeline context.
Definition: as_environment.h:51
bool parsePath(const std::string &var_path_in, std::string &path, std::string &var)
Definition: as_environment.cpp:397
void setRenderHandlerSize(int width, int height)
Definition: dump.cpp:373
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Parent class from which all GUI implementations will depend.
Definition: gui.h:88
void setTimeout(unsigned int timeout)
Set the time in milliseconds after which the programme should exit.
Definition: dump.cpp:274
virtual void init_buffer(unsigned char *mem, int size, int x, int y, int rowstride)=0
@ n
Definition: GnashKey.h:160
~DumpGui()
Definition: dump.cpp:107
bool want_multiple_regions()
Definition: dump.h:71
bool run()
Start main rendering loop.
Definition: dump.cpp:189
void log_error(StringType msg, Args... args)
Definition: log.h:283
RunResources & _runResources
Per-run resources.
Definition: gui.h:500
void setRenderer(std::shared_ptr< Renderer > r)
Definition: RunResources.h:108
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
@ r
Definition: GnashKey.h:164
void writeFrame()
Definition: dump.cpp:297
DumpGui(unsigned long xid, float scale, bool loop, RunResources &r)
Definition: dump.cpp:81
int _width
Desired window width.
Definition: gui.h:494
VM & getVM()
Return the VM used by this movie_root.
Definition: movie_root.h:356
bool createMenu()
Definition: dump.h:49
Null sound_handler, for testing or manual fetching of samples.
Definition: NullSoundHandler.h:37
void advance(unsigned long amount)
Advance the clock by the given amount of milliseconds.
Definition: ManualClock.h:53
bool init(int argc, char **argv[])
/ Initialise the gui and the associated renderer.
Definition: dump.cpp:113
void writeSamples()
Definition: dump.cpp:309
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
ActionScript value type.
Definition: as_value.h:95
media::MediaHandler * mediaHandler() const
Definition: RunResources.h:104
void setCursor(gnash_cursor_type)
Sets the current mouse cursor for the Gui window.
Definition: dump.h:68
void render(int, int, int, int)
Definition: dump.h:59
void quit()
Always called on exit.
Definition: gui.cpp:215
void renderBuffer()
Definition: dump.h:57
std::sig_atomic_t terminate_request
Definition: dump.cpp:69
void setFullscreen()
Definition: dump.h:65
bool createWindow(const char *, int width, int height, int, int)
Create and display our window.
Definition: dump.h:52
void setInvalidatedRegion(const SWFRect &)
Gives the GUI a hint which region of the stage should be redrawn.
Definition: dump.h:66
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
void terminate_signal(int)
Definition: dump.cpp:72
Sound mixer.
Definition: sound_handler.h:88
void unsetFullscreen()
Definition: dump.h:70
bool createMenuBar()
Definition: dump.h:50
Definition: Renderer_agg.h:30
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
movie_root * getStage()
The root movie, or "Stage".
Definition: gui.h:407
unsigned long _xid
The X Window ID to attach to. If zero, we create a new window.
Definition: gui.h:486
@ c
Definition: GnashKey.h:149
#define DSOEXPORT
Definition: dsodefs.h:55
Range2d< T > & setTo(T x, T y)
Set ourself to bound the given point.
Definition: Range2d.h:339
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
unsigned int _interval
Main loop interval: the time between successive advance_movie calls.
Definition: gui.h:503
bool createWindow(int width, int height)
Definition: dump.cpp:287
geometry::Range2d< int > _validbounds
Definition: gui.h:491
sound::sound_handler * soundHandler() const
Get a pointer to a sound::sound_handler set by a hosting application.
Definition: RunResources.h:96
virtual as_environment & get_environment()
Return a reference to the variable scope of this DisplayObject.
Definition: MovieClip.h:509
virtual VirtualClock & getClock()
Return the clock provided by this Gui.
Definition: dump.h:76
virtual void quitUI()
End main rendering loop calling GUI-specific exit functions.
Definition: dump.cpp:422
void setInterval(unsigned int interval)
Set main loop delay in milliseconds.
Definition: dump.cpp:280
void setInvalidatedRegions(const InvalidatedRanges &)
Definition: dump.h:67
@ o
Definition: GnashKey.h:161
@ width
Definition: klash_part.cpp:329
@ u
Definition: GnashKey.h:167
unsigned long elapsed() const
Return number of milliseconds elapsed since start.
Definition: ManualClock.h:41
bool want_redraw()
Asks the GUI handler if the next frame should be redrawn completely.
Definition: dump.h:72
as_object * findObject(const as_environment &ctx, const std::string &path, const as_environment::ScopeStack *scope)
Find the object referenced by the given path.
Definition: as_environment.cpp:116
bool advanceMovie(bool doDisplay=true)
Give movie an heart-beat.
Definition: gui.cpp:935
@ e
Definition: GnashKey.h:151
int _height
Desired window height.
Definition: gui.h:497
void beforeRendering()
Definition: dump.cpp:417