Gnash
0.8.11dev
|
Class to group together per-run and external resources for Gnash. More...
#include <RunResources.h>
Public Member Functions | |
RunResources () | |
Constructs a RunResources instance with an immutable base URL. More... | |
void | setStreamProvider (std::shared_ptr< StreamProvider > sp) |
Set the StreamProvider. More... | |
const StreamProvider & | streamProvider () const |
Get a StreamProvider instance. More... | |
void | setSoundHandler (std::shared_ptr< sound::sound_handler > s) |
Set the sound::sound_handler. More... | |
sound::sound_handler * | soundHandler () const |
Get a pointer to a sound::sound_handler set by a hosting application. More... | |
void | setMediaHandler (std::shared_ptr< media::MediaHandler > s) |
media::MediaHandler * | mediaHandler () const |
void | setRenderer (std::shared_ptr< Renderer > r) |
Renderer * | renderer () const |
void | setTagLoaders (std::shared_ptr< const SWF::TagLoadersTable > loaders) |
Set the loader functions for SWF parsing. More... | |
const SWF::TagLoadersTable & | tagLoaders () const |
Get the loader function table for parsing a SWF. More... | |
void | setRenderBackend (const std::string &x) |
std::string & | getRenderBackend () |
std::string & | getHWAccelBackend () |
void | setHWAccelBackend (const std::string &x) |
Class to group together per-run and external resources for Gnash.
This holds the following resources:
|
inline |
Constructs a RunResources instance with an immutable base URL.
baseURL | The base URL for the run. This cannot be changed after construction. |
|
inline |
Set the hardware video accleration backend, none or vaapi. This is set in the users gnashrc file, or can be overridden with the –render-mode option to gnash.
Referenced by gnash::GtkGui::init().
|
inline |
Referenced by gnash::GtkGui::init(), gnash::Qt4Gui::init(), and gnash::gui::FBGui::init().
|
inline |
|
inline |
|
inline |
References x.
|
inline |
References gnash::key::s.
|
inline |
Set the renderer backend, agg, opengl, or cairo. This is set in the users gnashrc file, or can be overridden with the –hwaccel option to gnash.
|
inline |
|
inline |
Set the sound::sound_handler.
s | A pointer to the sound::sound_handler for use by Gnash core. This may also be NULL. This is cached in various places, so changing it during a run will lead to unexpected behaviour. |
References gnash::key::s.
Referenced by gnash::DumpGui::init().
|
inline |
Set the StreamProvider.
This can probably be changed during a run without ill effects.
|
inline |
Set the loader functions for SWF parsing.
This must be present before parsing. It is a pointer to const so that the same table can be shared between simultaneous runs if desired.
|
inline |
Get a pointer to a sound::sound_handler set by a hosting application.
Referenced by gnash::movie_root::advance(), gnash::SWF::define_sound_loader(), gnash::SWF::StreamSoundBlockTag::executeActions(), gnash::SWF::StartSoundTag::executeActions(), gnash::DumpGui::init(), gnash::SWF::SoundStreamHeadTag::loader(), gnash::SWF::StreamSoundBlockTag::loader(), gnash::SWF::StartSoundTag::loader(), gnash::Button::mouseEvent(), gnash::Gui::pause(), gnash::Gui::play(), gnash::registerSystemNative(), gnash::movie_root::reset(), gnash::MovieClip::setStreamSoundId(), gnash::Gui::start(), gnash::Gui::stop(), gnash::Gui::toggleSound(), gnash::DumpGui::writeSamples(), and gnash::sound_sample::~sound_sample().
|
inline |
Get a StreamProvider instance.
This isn't optional. It must always be available, or nothing can be loaded.
Referenced by gnash::MovieFactory::clear(), gnash::NetConnection_as::connect(), gnash::SWF::ImportAssetsTag::executeState(), gnash::externalinterface_class_init(), gnash::NetConnection_as::getStream(), gnash::movie_root::getURL(), gnash::MovieLoader::loadMovie(), gnash::MovieClip::loadVariables(), gnash::registerLocalConnectionNative(), gnash::registerSoundNative(), gnash::Gui::takeScreenShot(), and gnash::NetConnection_as::validateURL().
|
inline |
Get the loader function table for parsing a SWF.
References x.
Referenced by gnash::SWFParser::read().