Namespaces | Classes | Typedefs | Enumerations | Functions | Variables

gnash Namespace Reference

Anonymous namespace for callbacks, local functions, event handlers etc. More...

Namespaces

namespace  abc
 

ABC-only resources for parsing and execution.


namespace  amf
 

Functions and classes for handling AMF.


namespace  fontlib
 

Library management.


namespace  geometry
namespace  image
 

Image handling functions and classes.


namespace  Kde4GuiPrefs
namespace  key
namespace  media
 

Gnash media handling subsystem (libmedia).


namespace  noseek_fd_adapter
namespace  NSV
 

Named String Values.


namespace  renderer
namespace  rtmp
namespace  sound
 

Gnash sound handling subsystem (libsound).


namespace  SWF
 

SWF format parsing classes.


namespace  URLAccessManager
 

Manage a list of URL access configuration.


namespace  zlib_adapter
 

Code to wrap zlib compression/decompression around an IOChannel stream.


Classes

class  Cache
class  CQue
class  CQueue
class  DiskStream
class  HTTP
class  Lirc
class  NetStats
struct  pollfd
class  Network
struct  amfpacket_t
class  RTMP
class  RTMPClient
class  RTMPMsg
class  SSHClient
class  SSHServer
class  SSLClient
class  SSLServer
class  Statistics
class  GtkExt
class  Launcher
class  AOS4AggGlue
class  AOS4CairoGlue
class  AOS4Glue
class  AOS4Gui
class  AquaGlue
class  AquaOglGlue
class  AquaGui
class  DumpGui
class  FBGui
class  FltkAggGlue
class  FltkCairoGlue
class  FltkGui
class  GtkGlue
class  GtkAggGlue
class  GtkAggVaapiGlue
class  GtkAggXvGlue
class  GtkCairoGlue
class  GtkGlExtGlue
class  GtkGui
class  ScreenShotter
 Handles screen dumps. More...
class  Gui
 Parent class from which all GUI implementations will depend. More...
class  HaikuAggGlue
class  HaikuGui
class  InputDevice
class  MouseDevice
class  TouchDevice
class  EventDevice
class  DrawingWidget
class  Kde4Glue
class  Kde4AggGlue
class  Kde4CairoGlue
class  Kde4OglGlue
class  EmbedWidget
class  FDMonitor
class  Kde4Gui
class  KdeGlue
class  KdeAggGlue
class  KdeOpenGLGlue
class  qwidget
class  KdeGui
class  NullGui
 Null GUI, used when rendering is disabled. More...
class  Player
class  RiscosGlue
class  RiscosAggGlue
class  RiscosGui
class  SdlAggGlue
class  SdlCairoGlue
class  SdlGlue
class  SdlOglGlue
class  SDLGui
class  BitsReader
 BitsReader is used to encapsulate bit-packed buffer reads. More...
class  CachedBitmap
 A CachedBitmap is created by the renderer in a format of its choosing. More...
class  Extension
class  GcRoot
 Abstract class to allow the GC to store "roots" into a container. More...
class  GcResource
 Collectable resource. More...
class  GC
 Garbage collector singleton. More...
struct  SecondElement
 Retrieve the second element of a container with std::pairs. More...
struct  FirstElement
 Retrieve the first element of a container with std::pairs. More...
struct  CreatePointer
 Return a pointer to a type. More...
struct  RemovePointer
 Recurse to the base type of a pointer. More...
struct  RemovePointer< T * >
struct  RemovePointer< boost::intrusive_ptr< T > >
struct  RemovePointer< boost::shared_ptr< T > >
struct  CheckedDeleter
 Delete a pointer safely. More...
struct  CheckedDeleter< T ** >
struct  CheckedDeleter< T * >
class  GnashException
 Top-level gnash exception. More...
class  MediaException
 An exception from MediaHandler subsystem. More...
class  SoundException
 An exception from SoundHandler subsystem. More...
class  ParserException
 An SWF parsing exception. More...
class  ActionException
 An ActionScript error exception. More...
class  ActionLimitException
 An ActionScript limit exception. More...
class  ActionTypeError
 An ActionScript type error. More...
class  ActionParserException
class  ActionScriptException
class  GnashFactory
 A generic factory class for registering and retrieving objects by key. More...
class  GnashTextureFormat
 OpenGL texture format. More...
class  GnashTexture
 OpenGL texture abstraction. More...
class  GnashVaapiImage
 GnashImage implementation using a VA surface. More...
class  GnashVaapiImageProxy
class  GnashVaapiTexture
 OpenGL texture abstraction. More...
class  IOException
 Exception signalling an IO error. More...
class  IOChannel
 A virtual IO channel. More...
class  LogFile
class  __Host_Function_Report__
class  NamingPolicy
class  OverwriteExisting
class  IncrementalRename
class  NetworkAdapter
 Code to use libcurl as an IOChannel stream. More...
class  RcInitFile
class  ref_counted
 For stuff that's tricky to keep track of w/r/t ownership & cleanup. The only use for this class seems to be for putting derived classes in smart_ptr. More...
class  SharedLib
 TODO: document this class. More...
class  SharedMem
class  SimpleBuffer
 A simple buffer of bytes. More...
class  Socket
 A simple IOChannel subclass for reading and writing sockets. More...
class  string_table
 A general use string table. More...
class  StringNoCaseLessThan
 A case-insensitive string comparator. More...
class  StringNoCaseEqual
 A case-insensitive string equality operator. More...
class  tu_file
class  URL
 Uniform Resource Locator. More...
class  WallClockTimer
 General-purpose wall-clock timer. More...
class  asException
class  CodeStreamException
class  CodeStream
class  as_environment
 ActionScript execution environment. More...
class  as_function
 ActionScript Function, either builtin or SWF-defined. More...
class  AbstractPropertyVisitor
 An abstract property visitor. More...
class  Trigger
 A trigger that can be associated with a property name. More...
class  as_object
 The base class for all ActionScript objects. More...
class  IsVisible
 Function objects for visiting properties. More...
class  Exists
class  IsEnumerable
class  as_value
 ActionScript value type. More...
class  IsStrictArray
 A visitor to check whether an array is strict or not. More...
class  AsBroadcaster
 AsBroadcaster facilities. More...
class  Date_as
class  BitmapData_as
 Implements the BitmapData native type. More...
class  ColorTransform_as
class  Global_as
 The Global object ultimately contains all objects in an ActionScript run. More...
class  AVM1Global
class  Mouse_as
class  NetConnection_as
 NetConnection ActionScript class. More...
class  BufferedAudioStreamer
 Buffered AudioStreamer. More...
class  NetStream_as
 NetStream_as ActionScript class. More...
class  PlayHead
 The playback controller. More...
class  SharedObjectLibrary
class  String_as
class  Optional
 A type to hold a simple value but with an additional 'unset' state. More...
class  TextFormat_as
 The TextFormat_as Relay type stores text properties. More...
class  XML_as
 Implements XML (AS2) and flash.xml.XMLDocument (AS3) class. More...
class  XMLNode_as
 A node in an XML tree. More...
class  BevelFilter
class  Bitmap
class  BitmapFilter
class  BitmapMovie
 A top-level movie displaying a still bitmap. More...
class  BlurFilter
class  builtin_function
 This is a special type of function implementing AS-code in C++. More...
class  Button
class  CharacterProxy
 A proxy for DisplayObject pointers. More...
class  ClassHierarchy
 Register all of the ActionScript classes, with their dependencies. More...
class  ColorMatrixFilter
class  ConvolutionFilter
class  DisplayList
 A list of on-stage DisplayObjects, ordered by depth. More...
class  DisplayObject
 DisplayObject is the base class for all DisplayList objects. More...
class  DisplayObjectContainer
class  drag_state
 What is being dragged and how. More...
class  DropShadowFilter
class  DynamicShape
 The DynamicShape class represents a mutable shape. More...
class  event_id
 A class to identify 'static' SWF events (system events). More...
struct  ExternalInterface
class  GradientRecord
class  BitmapFill
 A BitmapFill. More...
class  GradientFill
 A GradientFill. More...
struct  SolidFill
 A SolidFill containing one color. More...
class  FillStyle
 FillStyle describes the various fill styles for shapes. More...
class  kerning_pair
class  Font
 A Font resource. More...
class  FreetypeGlyphsProvider
 Truetype font rasterizer/converter based on freetype library. More...
class  TargetGuard
class  Function
 A simple SWF-defined Function. More...
class  Function2
 Function2 adds extra sauce to ordinary Functions. More...
class  Edge
 Defines an edge with a control point and an anchor point. More...
class  Path
 A subset of a shape, a series of edges sharing a single set of styles. More...
class  GlowFilter
class  GradientBevelFilter
class  GradientGlowFilter
class  InteractiveObject
 The base class for interactive objects. More...
class  LineStyle
 For the outside of outline shapes, or just bare lines. More...
class  NetworkException
class  LoadVariablesThread
 A manager for loadVariable requests. More...
class  ManualClock
 A manually advanced clock. More...
class  MorphShape
 A DisplayObject that tweens between two shapes. More...
struct  MouseButtonState
 Helper to generate mouse events, given mouse state & history. More...
class  Movie
 A top-level, standalone Movie that can be loaded and played. More...
struct  DepthComparator
class  movie_root
 This class represents the 'Stage' and top-level movie. More...
class  MovieClip
 A MovieClip is a container for DisplayObjects. More...
class  MovieFactory
class  MovieLibrary
 Library of SWF movies indexed by URL strings. More...
class  MovieLoader
 Movie loader. More...
class  NativeFunction
 This class implements functions native to the player. More...
struct  ObjectURI
 A URI for describing as_objects. More...
class  action_buffer
 A code segment. More...
class  BitmapMovieDefinition
 A "movie" definition for a bitmap file. More...
class  filter_factory
class  movie_definition
 Client program's interface to the definition of a movie or sprite. More...
class  sound_sample
 An identifier for a sound sample managed by a sound_handler. More...
class  sprite_definition
 Holds the immutable data for a sprite, as read from as SWF stream. @ should *not* derive from movie_definition, probably! More...
class  SWFMovieLoader
 Helper class handling start and execution of a loading thread. More...
class  CharacterDictionary
 The Characters dictionary associated with each SWF file. More...
class  SWFMovieDefinition
 Immutable definition of a SWF movie's contents. More...
class  SWFParser
 The SWFParser parses tags from a SWFStream. More...
class  GetterSetter
 Holder for getter/setter functions. More...
class  Property
 An abstract property. More...
class  PropertyList
 Set of properties associated with an ActionScript object. More...
class  PropFlags
 Flags defining the level of protection of a member. More...
class  Relay
 This is the base class for type-specific object data. More...
class  ActiveRelay
 A native type that requires periodic updates from the core (movie_root). More...
class  rgba
 A basic RGBA type. More...
class  RunResources
 Class to group together per-run and external resources for Gnash. More...
class  Shape
 For DisplayObjects that don't store unusual state in their instances. More...
class  StaticText
 Static text fields, SWF-defined with read-only text. More...
class  StreamProvider
 Provide IOChannel streams for network or filesystem resources. More...
class  VideoData
class  swf_event
 For embedding event handlers in place_object_2. More...
class  SWFCxForm
 Color transformation record. More...
class  SWFMatrix
class  SWFMovie
 Stateful Movie object (a special kind of sprite). More...
class  SWFRect
 Rectangle class, see swf defined rectangle record. More...
class  SWFStream
 SWF stream wrapper class. More...
class  SystemClock
 A system-clock based virtual clock. More...
class  TextField
 An instance of a DefineEditTextTag. More...
class  Timer
 An interval timer. More...
class  Transform
 The Transform class expresses a stage in a cumulative transformation. More...
class  UserFunction
 A UserFunction is a callable function defined in ActionScript. More...
class  Video
 VideoStream ActionScript object. More...
class  VirtualClock
 A class used to virtualize time flow. More...
class  InterruptableVirtualClock
 A VirtualClock wrapper adding pause/resume capabilities. More...
class  TryBlock
class  With
class  ActionExec
 Executor of an action_buffer. More...
class  CallFrame
 A CallFrame is an element of a CallStack. More...
class  ExecutableCode
 Any executable code. More...
class  GlobalCode
 Global code (out of any function). More...
class  EventCode
 Event code. More...
class  QueuedEvent
 Generic event (constructed by id, invoked using notifyEvent. More...
class  DelayedFunctionCall
 This class is used to queue a function call action. More...
class  FunctionArgs
 A class to contain transferable arguments for a fn_call. More...
class  fn_call
 Parameters/environment for builtin or user-defined functions callable from ActionScript. More...
struct  ThisIsNative
 Check that the 'this' pointer has a particular native type ('Relay'). More...
struct  IsDisplayObject
 Check that the 'this' pointer is a DisplayObject. More...
struct  ValidThis
 Check that the 'this' pointer is not null. More...
class  StackException
class  SafeStack
class  VmGcRoot
 A GC root used to mark all reachable collectable pointers. More...
class  VM
 The AVM1 virtual machine. More...
class  FrameGuard
struct  UnivocalPath
class  PathParser
class  Renderer
 Base class for render handlers. More...
class  Renderer_agg_base
class  agg_bitmap_info
class  AggStyle
class  StyleHandler
class  agg_mask_style_handler
struct  AddStyles
 Style handler. More...
class  Renderer_cairo
struct  oglVertex
class  Tesselator
class  WholeShape
class  VaapiContextData
 VA context user-data. More...
class  VaapiContext
 VA context abstraction. More...
class  VaapiDisplay
 VA display abstraction. More...
struct  VaapiDisplayGLX
 VA/GLX display representation. More...
class  X11Display
 X11 display. More...
struct  VaapiDisplayX11
 VA/X11 display representation. More...
struct  VaapiException
 VA exception abstraction. More...
class  VaapiGlobalContext
 VA API global context. More...
class  VaapiImage
 VA image abstraction. More...
class  VaapiSubpicture
 VA subpicture abstraction. More...
struct  VaapiRectangle
 VA rectangle abstraction. More...
class  VaapiSurfaceImplBase
 VA surface base representation. More...
class  VaapiSurface
 VA surface abstraction. More...
class  VaapiSurfaceGLX
 VA/GLX surface abstraction. More...
class  VaapiSurfaceProxy
 VA surface proxy used to release surface to context. More...
class  GnashNPVariant
 This class holds ownership of (a copy of) an NPVariant. More...
class  nsPluginInstance
class  GnashPluginScriptObject
class  DummyCharacter
 A dummy character instance, for use by unit tests. More...
class  DummyMovieDefinition
 A dummy movie definition, for use by unit tests. More...
class  FuzzyPixel
 An utility class used to compare rgba values with a given tolerance. More...
class  TestingRenderer
 A table of built renderers. More...
class  MovieTester
 An utility class for testing movie playback. More...

Typedefs

typedef bool(* callback_t )(void *, int, void *data)
typedef geometry::Point2d point
typedef
geometry::SnappingRanges2d
< boost::int32_t > 
InvalidatedRanges
 Standard snapping 2d ranges type for invalidated bounds calculation.
typedef boost::shared_ptr
< BitmapFilter
Filter
typedef std::pair< FillStyle,
boost::optional< FillStyle > > 
OptionalFillPair
 Either a single or a morph-pair FillStyle.
typedef std::vector< FilterFilters
typedef as_value(* as_c_function_ptr )(const fn_call &fn)
typedef std::vector< CallFrameCallStack
typedef std::vector< PathPathVec
typedef std::vector< const Path * > PathPtrVec
typedef std::vector< const Path * > PathRefs
typedef std::map< const Path
*, std::vector< oglVertex > > 
PathPointMap

Enumerations

enum  amfresponse_e { onStatus, onResult, onDebugEvents }
enum  gnash_cursor_type { CURSOR_HAND, CURSOR_NORMAL, CURSOR_INPUT }
 

Enumerates mouse cursor types.

More...
enum  FileType {
  GNASH_FILETYPE_JPEG, GNASH_FILETYPE_PNG, GNASH_FILETYPE_GIF, GNASH_FILETYPE_SWF,
  GNASH_FILETYPE_FLV, GNASH_FILETYPE_UNKNOWN
}
enum  { GNASH_TEXTURE_VAAPI = 1 << 0 }
 

Texture flags.

More...
enum  primitive_types { PTYPE_STRING, PTYPE_NUMBER, PTYPE_BOOLEAN }
 

These are the primitive types, see the ECMAScript reference.

More...
enum  Quality { QUALITY_LOW, QUALITY_MEDIUM, QUALITY_HIGH, QUALITY_BEST }
 

The display quality.

More...
enum  CapStyle { CAP_ROUND = 0, CAP_NONE = 1, CAP_SQUARE = 2 }
enum  JoinStyle { JOIN_ROUND = 0, JOIN_BEVEL = 1, JOIN_MITER = 2 }
enum  filter_types {
  DROP_SHADOW = 0, BLUR = 1, GLOW = 2, BEVEL = 3,
  GRADIENT_GLOW = 4, CONVOLUTION = 5, COLOR_MATRIX = 6, GRADIENT_BEVEL = 7
}
enum  VaapiCodec {
  VAAPI_CODEC_UNKNOWN, VAAPI_CODEC_MPEG2, VAAPI_CODEC_MPEG4, VAAPI_CODEC_H264,
  VAAPI_CODEC_VC1
}
 

VA codec.

More...

Functions

std::ostream & operator<< (std::ostream &os, const Cache &cache)
 Dump to the specified output stream.
std::ostream & operator<< (std::ostream &os, const DiskStream &ds)
 Dump to the specified output stream.
bool DSOEXPORT http_handler (Network::thread_params_t *args)
int password_cb (char *buf, int size, int, void *)
int verify_callback (int ok, X509_STORE_CTX *store)
as_value dbus_ext_setsockname (const fn_call &fn)
void dbus_class_init (as_object &obj)
as_value dejagnu_pass (const fn_call &fn)
as_value dejagnu_fail (const fn_call &fn)
as_value dejagnu_totals (const fn_call &fn)
void dejagnu_class_init (as_object &obj)
std::auto_ptr< as_objectinit_dejagnu_instance ()
 Return an instance.
as_value fileio_fopen (const fn_call &fn)
as_value fileio_fread (const fn_call &fn)
as_value fileio_fgetc (const fn_call &fn)
as_value fileio_fgets (const fn_call &fn)
as_value fileio_gets (const fn_call &fn)
as_value fileio_fwrite (const fn_call &fn)
as_value fileio_fputc (const fn_call &fn)
as_value fileio_fputs (const fn_call &fn)
as_value fileio_puts (const fn_call &fn)
as_value fileio_fclose (const fn_call &fn)
as_value fileio_getchar (const fn_call &fn)
as_value fileio_putchar (const fn_call &fn)
as_value fileio_fflush (const fn_call &fn)
as_value fileio_ftell (const fn_call &fn)
as_value fileio_feof (const fn_call &fn)
as_value fileio_fseek (const fn_call &fn)
as_value fileio_unlink (const fn_call &fn)
as_value fileio_asyncmode (const fn_call &fn)
as_value fileio_scandir (const fn_call &fn)
void fileio_class_init (as_object &where, const ObjectURI &)
as_value gtkext_window_new (const fn_call &fn)
as_value gtkext_signal_connect (const fn_call &fn)
as_value gtkext_container_set_border_width (const fn_call &fn)
as_value gtkext_button_new_with_label (const fn_call &fn)
as_value gtkext_signal_connect_swapped (const fn_call &fn)
as_value gtkext_container_add (const fn_call &fn)
as_value gtkext_widget_show (const fn_call &fn)
as_value gtkext_main (const fn_call &fn)
void dump_callbacks (map< string, as_value > &calls)
std::auto_ptr< as_objectinit_gtkext_instance ()
 Return an instance.
void gtkext_class_init (as_object &obj)
as_value launcher_create_md5sum (const fn_call &fn)
as_value launcher_verify_md5sum (const fn_call &fn)
std::auto_ptr< as_objectinit_launcher_instance ()
 Return an instance.
void launcher_class_init (as_object &obj)
as_value lirc_ext_init (const fn_call &fn)
as_value lirc_ext_getkey (const fn_call &fn)
as_value lirc_ext_getbutton (const fn_call &fn)
void lirc_class_init (as_object &obj)
as_value mysql_connect (const fn_call &fn)
as_value mysql_qetData (const fn_call &fn)
as_value mysql_disconnect (const fn_call &fn)
as_value mysql_query (const fn_call &fn)
as_value mysql_row (const fn_call &fn)
as_value mysql_fields (const fn_call &fn)
as_value mysql_fetch (const fn_call &fn)
as_value mysql_store (const fn_call &fn)
as_value mysql_free (const fn_call &fn)
void mysql_class_init (as_object &obj)
std::auto_ptr< GuicreateAOS4Gui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
pascal OSStatus DoWindowClose (EventHandlerCallRef nextHandler, EventRef theEvent, void *userData)
void DoAdvanceMovie (EventLoopTimerRef inTimer, void *data)
void terminate_signal (int)
 Called on CTRL-C and alike.
std::auto_ptr< GuicreateFBGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateFLTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
void get_max_xv_image (Display *display, XvPortID xv_port, unsigned int *width, unsigned int *height)
bool cairoFormatFromVisual (const GdkVisual *visual, cairo_format_t *format)
std::auto_ptr< GuicreateGTKGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateGTKGui (unsigned long xid, float scale, bool loop, RunResources &r)
 Named constructors.
std::auto_ptr< GuicreateKDEGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateKDE4Gui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateSDLGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateFLTKGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateFBGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateAQUAGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateRISCOSGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateAOS4Gui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateHaikuGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateDumpGui (unsigned long xid, float scale, bool loop, RunResources &r)
std::auto_ptr< GuicreateAQUAGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateDumpGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateRISCOSGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateHaikuGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateKDEGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateKDE4Gui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
std::auto_ptr< GuicreateSDLGui (unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
template<typename Container , typename Predicate >
void EraseIf (Container &c, Predicate p)
 Erase elements from an associative container based on a predicate.
template<typename T , size_t N>
size_t arraySize (T(&)[N])
 Get the size of an array without passing a pointer by mistake.
template<typename T , typename U >
void foreachSecond (T begin, T end, U op)
 Call a functor on the second element of each element in a range.
template<typename T , typename U >
void foreachFirst (T begin, T end, U op)
 Call a functor on the first element of each element in a range.
template<typename T >
void deleteChecked (T begin, T end)
 Safely call delete on each element in a range.
template<typename T >
void deleteSecondElements (T begin, T end)
 Safely call delete on each second element in a range of pairs.
bool mkdirRecursive (const std::string &filename)
 Create a directory for a given filename.
int mkdirUserPermissions (const std::string &dirname)
 Create a directory, granting owner rwx permissions.
bool isFinite (double d)
double infinite_to_zero (double x)
template<typename T >
clamp (T i, T min, T max)
template<typename T >
lerp (T a, T b, T f)
int frnd (float f)
double twipsToPixels (int i)
template<size_t Factor>
boost::int32_t truncateWithFactor (double a)
boost::int32_t pixelsToTwips (double a)
void gnashSleep (size_t useconds)
 Sleep compatibly for the specified number of microseconds.
std::string hexify (const unsigned char *bytes, size_t length, bool ascii)
 Convert a sequence of bytes to hex or ascii format.
std::ostream & timestamp (std::ostream &o)
void processLog_trace (const boost::format &fmt)
void processLog_debug (const boost::format &fmt)
void processLog_abc (const boost::format &fmt)
void processLog_parse (const boost::format &fmt)
void processLog_network (const boost::format &fmt)
void processLog_error (const boost::format &fmt)
void processLog_unimpl (const boost::format &fmt)
void processLog_security (const boost::format &fmt)
void processLog_swferror (const boost::format &fmt)
void processLog_amferror (const boost::format &fmt)
void processLog_aserror (const boost::format &fmt)
void processLog_action (const boost::format &fmt)
bool attached (const SharedMem &mem)
 Check if the SharedMem has been attached.
void intrusive_ptr_add_ref (const ref_counted *o)
void intrusive_ptr_release (const ref_counted *o)
void intrusive_ptr_add_ref (const GcResource *)
void intrusive_ptr_release (const GcResource *)
bool equal (string_table &st, string_table::key a, string_table::key b, bool caseless)
 Check whether two keys are equivalent.
std::ostream & operator<< (std::ostream &o, const URL &u)
template<class T >
std::string typeName (const T &inst)
unsigned long int get_thread_id (void)
 Used in logging.
bool parsePath (const std::string &var_path_in, std::string &path, std::string &var)
string_tablegetStringTable (const as_environment &env)
movie_rootgetRoot (const as_environment &env)
Global_asgetGlobal (const as_environment &env)
int getSWFVersion (const as_environment &env)
VMgetVM (const as_environment &env)
as_objectconstructInstance (as_function &ctor, const as_environment &env, fn_call::Args &args)
void registerFunctionNative (as_object &global)
void function_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Function constructor.
as_objectconstructInstance (as_function &ctor, const as_environment &env, FunctionArgs< as_value > &args)
 Construct a new object from the given constructor.
void enumerateProperties (as_object &o, as_object::SortedPropertyList &to)
 Enumerate all non-hidden properties to the passed container.
void getURLEncodedVars (as_object &o, std::string &data)
 Get url-encoded variables.
as_objectgetObjectWithPrototype (Global_as &gl, string_table::key c)
VMgetVM (const as_object &o)
 Get the VM from an as_object.
movie_rootgetRoot (const as_object &o)
 Get the movie_root from an as_object.
string_tablegetStringTable (const as_object &o)
 Get the string_table from an as_object.
const RunResourcesgetRunResources (const as_object &o)
 Get the RunResources from an as_object.
int getSWFVersion (const as_object &o)
 Get the executing VM version from an as_object.
Global_asgetGlobal (const as_object &o)
 Get the Global object from an as_object.
template<typename T >
T * get (as_object *o)
 Extract the DisplayObject attached to an object.
template<typename T >
bool isNativeType (as_object *obj, T *&relay)
 Check whether the object is an instance of a known type.
bool caseless (const as_object &o)
 Return whether property matching is caseless.
boost::int32_t toInt (const as_value &val)
 AS2-compatible conversion to 32bit integer.
bool parseNonDecimalInt (const std::string &s, double &d, bool whole)
std::string doubleToString (double val, int radix=10)
 Convert numeric value to string value, following ECMA-262 specification.
as_valueconvertToNumber (as_value &v, VM &)
 Force type to number.
as_valueconvertToString (as_value &v, VM &vm)
 Force type to string.
as_valueconvertToBoolean (as_value &v, VM &)
 Force type to bool.
as_valueconvertToPrimitive (as_value &v, VM &vm)
 Convert to primitive type.
template<typename T >
bool isNaN (const T &num, typename boost::enable_if< boost::is_floating_point< T > >::type *dummy=0)
template<typename T >
bool isInf (const T &num)
std::ostream & operator<< (std::ostream &os, const as_value &v)
void setNaN (as_value &v)
 Set a value to NaN.
void accessibility_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Accessibility class.
void registerAccessibilityNative (as_object &global)
void checkArrayLength (as_object &array, const ObjectURI &uri, const as_value &val)
 Genuine arrays handle the length property in a special way.
size_t arrayLength (as_object &array)
 Get the length of an object as though it were an array.
void registerArrayNative (as_object &global)
void array_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global.Array object.
string_table::key arrayKey (string_table &st, size_t i)
 Convert an integral value into an array key.
template<typename T >
void foreachArray (as_object &array, T &pred)
void attachAsBroadcasterStaticInterface (as_object &o)
SWFMatrix toSWFMatrix (as_object &o)
 Convert an object to a SWFMatrix.
SWFCxForm toCxForm (const ColorTransform_as &tr)
 Convert a ColorTransform_as to a SWFCxForm record.
void boolean_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Boolean class.
void registerBooleanNative (as_object &global)
void camera_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Camera class.
void registerCameraNative (as_object &global)
void registerColorNative (as_object &o)
void color_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Color class.
void contextmenu_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ContextMenu class.
void contextmenuitem_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ContextMenuItem class.
void customactions_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global CustomActions class.
void date_class_init (as_object &global, const ObjectURI &uri)
void registerDateNative (as_object &global)
void Error_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Error class.
void bitmapdata_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapData class.
void registerBitmapDataNative (as_object &global)
void flash_display_package_init (as_object &where, const ObjectURI &uri)
void flash_external_package_init (as_object &where, const ObjectURI &uri)
void registerExternalInterfaceNative (as_object &global)
void externalinterface_class_init (gnash::as_object &where, const gnash::ObjectURI &uri)
 Initialize the global ExternalInterface class.
void bevelfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.BevelFilter is a new BitmapFilter.
void bitmapfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapFilter class.
void registerBitmapFilterNative (as_object &global)
void registerBitmapClass (as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, const ObjectURI &uri)
 Convenience function only for BitmapFilter subclasses.
void bitmapfilterquality_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapFilterQuality class.
void bitmapfiltertype_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BitmapFilterType class.
void blurfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global BlurFilter class.
void colormatrixfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.ColorMatrixFilter is a new BitmapFilter.
void convolutionfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.ConvolutionFilter is a new BitmapFilter.
void displacementmapfilter_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global DisplacementMapFilter class.
void displacementmapfiltermode_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global DisplacementMapFilterMode class.
void dropshadowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.DropShadowFilter is a new BitmapFilter.
void flash_filters_package_init (as_object &where, const ObjectURI &uri)
void glowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GlowFilter is a new BitmapFilter.
void gradientbevelfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GradientBevelFilter is a new BitmapFilter.
void gradientglowfilter_class_init (as_object &where, const ObjectURI &uri)
 The prototype of flash.filters.GradientGlowFilter is a new BitmapFilter.
void flash_package_init (as_object &where, const ObjectURI &uri)
void colortransform_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global ColorTransform class.
void registerColorTransformNative (as_object &global)
void flash_geom_package_init (as_object &where, const ObjectURI &uri)
void matrix_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Matrix class.
void point_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Point class.
void rectangle_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Rectangle class.
boost::intrusive_ptr< as_objectinit_Rectangle_instance ()
 Return a Rectangle instance (in case the core lib needs it).
void transform_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Transform class.
as_value filereference_ctor (const fn_call &fn)
void attachFileReferenceStaticInterface (as_object &)
void filereference_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global FileReference class.
as_value filereferencelist_ctor (const fn_call &fn)
void filereferencelist_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global FileReferenceList class.
void flash_net_package_init (as_object &where, const ObjectURI &uri)
void flash_text_package_init (as_object &where, const ObjectURI &uri)
void textrenderer_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global TextRenderer class.
as_objectregisterBuiltinObject (as_object &where, Global_as::Properties p, const ObjectURI &uri)
 Register a built-in object.
as_objectregisterBuiltinClass (as_object &where, Global_as::ASFunction ctor, Global_as::Properties p, Global_as::Properties c, const ObjectURI &uri)
 Register a built-in class.
DSOEXPORT as_value invoke (const as_value &method, const as_environment &env, as_object *this_ptr, fn_call::Args &args, as_object *super=0, const movie_definition *callerDef=0)
 Call an as_value on an as_object.
as_functiongetClassConstructor (const fn_call &fn, const std::string &s)
 Convenience function for finding a class constructor.
as_value key_is_accessible (const fn_call &)
as_value key_get_ascii (const fn_call &fn)
 Return the ascii number of the last key pressed.
as_value key_get_code (const fn_call &fn)
 Returns the keycode of the last key pressed.
as_value key_is_down (const fn_call &fn)
 Return true if the specified (first arg keycode) key is pressed.
as_value key_is_toggled (const fn_call &)
 Given the keycode of NUM_LOCK or CAPSLOCK, returns true if the associated state is on.
void registerKeyNative (as_object &global)
void attachKeyInterface (as_object &o)
void key_class_init (as_object &where, const ObjectURI &uri)
void attachLoadableInterface (as_object &where, int flags)
 Attach some common AS code for Loadable objects.
void registerLoadableNative (as_object &global)
 Register methods as native for use by XML_as and LoadVars_as.
void loadvars_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global LoadVars class.
void writeLong (boost::uint8_t *&ptr, boost::uint32_t i)
boost::uint32_t readLong (const boost::uint8_t *buf)
template<typename T , size_t N>
std::string fromByteString (T(&buf)[N])
void localconnection_class_init (as_object &where, const ObjectURI &uri)
void registerLocalConnectionNative (as_object &global)
void registerMathNative (as_object &proto)
void math_class_init (as_object &where, const ObjectURI &uri)
void microphone_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Microphone class.
void registerMicrophoneNative (as_object &global)
void mouse_class_init (as_object &where, const ObjectURI &uri)
void movieclip_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global MovieClip class.
void registerMovieClipNative (as_object &where)
 Register ASNative MovieClip methods (AS2 only).
void registerMovieClipLoaderNative (as_object &global)
void moviecliploader_class_init (as_object &where, const ObjectURI &uri)
 Extern.
void netconnection_class_init (as_object &where, const ObjectURI &uri)
void netstream_class_init (as_object &where, const ObjectURI &uri)
void registerNetStreamNative (as_object &global)
void adjust_volume (boost::int16_t *data, int size, int volume)
void number_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Number class.
void registerNumberNative (as_object &global)
void registerObjectNative (as_object &global)
void initObjectClass (as_object *proto, as_object &global, const ObjectURI &uri)
 Initialize the global Object class.
void selection_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Selection class.
void registerSelectionNative (as_object &global)
 Register native selection methods.
void sharedobject_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global SharedObject class.
void registerSharedObjectNative (as_object &o)
void sound_class_init (as_object &where, const ObjectURI &uri)
void registerSoundNative (as_object &global)
void stage_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global Stage class.
void registerStageNative (as_object &o)
 This is the Stage ActionScript object.
void registerStringNative (as_object &global)
void string_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global String class.
void system_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global System class.
void registerSystemNative (as_object &where)
as_objectcreateTextFieldObject (Global_as &gl)
 Native function to create a plain object with TextField properties.
void textfield_class_init (as_object &where, const ObjectURI &uri)
 This provides the prototype and static methods for TextField.
void registerTextFieldNative (as_object &global)
void registerTextFormatNative (as_object &o)
void textformat_class_init (as_object &global, const ObjectURI &uri)
void textsnapshot_class_init (as_object &where, const ObjectURI &uri)
void registerTextSnapshotNative (as_object &global)
void escapeXML (std::string &text)
 Escape using XML entities.
void unescapeXML (std::string &text)
void xml_class_init (as_object &where, const ObjectURI &uri)
 Register the XML class.
void registerXMLNative (as_object &where)
 Register XML native functions.
void registerXMLNodeNative (as_object &where)
 Register ASnative methods.
void xmlnode_class_init (as_object &where, const ObjectURI &uri)
void xmlsocket_class_init (as_object &where, const ObjectURI &uri)
 Initialize the global XMLSocket class.
void registerXMLSocketNative (as_object &global)
void button_class_init (as_object &global, const ObjectURI &uri)
 Initialize the global Button class.
void registerButtonNative (as_object &global)
std::ostream & operator<< (std::ostream &os, const ClassHierarchy::NativeClass &c)
std::ostream & operator<< (std::ostream &os, const ClassHierarchy::ExtensionClass &c)
std::ostream & operator<< (std::ostream &os, const DisplayList &dl)
as_value getHeight (DisplayObject &o)
void setHeight (DisplayObject &o, const as_value &val)
void setIndexedProperty (size_t index, DisplayObject &o, const as_value &val)
 Set a property by its numeric index.
void getIndexedProperty (size_t index, DisplayObject &o, as_value &val)
 Get a property by its numeric index.
bool getDisplayObjectProperty (DisplayObject &obj, string_table::key key, as_value &val)
 DisplayObject property lookup.
bool setDisplayObjectProperty (DisplayObject &obj, string_table::key key, const as_value &val)
 Set special properties.
std::ostream & operator<< (std::ostream &o, DisplayObject::BlendMode bm)
 Stream operator for DisplayObject blend mode.
bool isReferenceable (const DisplayObject &d)
 Returns true if the DisplayObject is referenceable in ActionScript.
void copyMatrix (const DisplayObject &from, DisplayObject &to)
 Copy SWFMatrix and caches from given DisplayObjecta.
SWFMatrix getWorldMatrix (const DisplayObject &d, bool includeRoot=true)
 Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix).
SWFCxForm getWorldCxForm (const DisplayObject &d)
 Get concatenated color transform of a DisplayObject.
const SWFMatrixgetMatrix (const DisplayObject &o)
 Get local transform SWFMatrix for this DisplayObject.
const SWFCxFormgetCxForm (const DisplayObject &o)
as_objectgetObject (const DisplayObject *d)
 Return the as_object associated with a DisplayObject if it exists.
bool isKeyEvent (const event_id &e)
 Check whether an event is a keyboard event.
bool isButtonEvent (const event_id &e)
 Check whether an event is a button-like event.
std::ostream & operator<< (std::ostream &o, const event_id &ev)
SWFMatrix gradientMatrix (GradientFill::Type t, const SWFMatrix &m)
OptionalFillPair readFills (SWFStream &in, SWF::TagType t, movie_definition &m, bool readMorph)
 Read FillStyles from a stream.
void setLerp (FillStyle &f, const FillStyle &a, const FillStyle &b, double t)
 Set the FillStyle to a lerp of a and b.
std::ostream & operator<< (std::ostream &os, const BitmapFill::SmoothingPolicy &p)
bool operator< (const kerning_pair &p1, const kerning_pair &p2)
as_objectgetArguments (Function &callee, as_object &args, const fn_call &fn, as_object *caller)
 Add properties to an 'arguments' object.
DSOEXPORT void gnashInit ()
 Initialize gnash core library.
DSOEXPORT void clear ()
 Maximum release of resources.
void setLerp (LineStyle &s, const LineStyle &ls1, const LineStyle &ls2, double ratio)
bool isLevelTarget (int version, const std::string &name, unsigned int &levelno)
 Return true if the given string can be interpreted as a _level name.
short stringToStageAlign (const std::string &str)
bool operator== (const ObjectURI &a, const ObjectURI &b)
 ObjectURIs are equal if name is equal.
bool operator< (const ObjectURI &a, const ObjectURI &b)
 Comparator for ObjectURI so it can serve as a key in stdlib containers.
string_table::key getName (const ObjectURI &o)
 Get the name element of an ObjectURI.
double convert_double_wacky (const void *p)
std::ostream & operator<< (std::ostream &o, const CharacterDictionary &cd)
bool readOnly (const Property &prop)
 is this a read-only member ?
bool visible (const Property &prop, int version)
 Is this member supposed to be visible by a VM of given version ?
std::ostream & operator<< (std::ostream &os, const PropFlags &fl)
rgba readRGBA (SWFStream &in)
 Initialize from input stream (reads RGBA).
rgba readRGB (SWFStream &in)
 Can throw ParserException on premature end of input stream.
rgba colorFromHexString (const std::string &color)
 Create an RGBA value from a hex string (e.g. FF0000).
std::ostream & operator<< (std::ostream &os, const rgba &r)
std::ostream & operator<< (std::ostream &os, const SWFCxForm &cx)
bool operator== (const SWFCxForm &a, const SWFCxForm &b)
bool operator!= (const SWFCxForm &a, const SWFCxForm &b)
bool invisible (const SWFCxForm &cx)
 Returns true when the SWFCxForm leads to alpha == 0.
SWFMatrix readSWFMatrix (SWFStream &in)
 Read from input stream.
std::ostream & operator<< (std::ostream &o, const SWFMatrix &m)
bool operator== (const SWFMatrix &a, const SWFMatrix &b)
std::ostream & operator<< (std::ostream &os, const SWFRect &r)
Transform operator* (const Transform &a, const Transform &b)
 Concatenate two transforms.
void video_class_init (as_object &global, const ObjectURI &uri)
void registerVideoNative (as_object &global)
as_objectcreateVideoObject (Global_as &gl)
 Native function to create a plain object with Video properties.
void declareLocal (CallFrame &c, string_table::key name)
 Declare a local variable in this CallFrame.
void setLocal (CallFrame &c, string_table::key name, const as_value &val)
 Set a local variable in this CallFrame.
std::ostream & operator<< (std::ostream &o, const CallFrame &fr)
template<typename T >
T::value_type * ensure (const fn_call &fn)
 Templated function to check the validity of a function call.
string_tablegetStringTable (const fn_call &fn)
movie_rootgetRoot (const fn_call &fn)
int getSWFVersion (const fn_call &fn)
VMgetVM (const fn_call &fn)
Global_asgetGlobal (const fn_call &fn)
void newAdd (as_value &op1, const as_value &op2, VM &vm)
 Carry out ActionNewAdd.
void subtract (as_value &op1, const as_value &op2, VM &vm)
 Carry out ActionSubtract.
as_value newLessThan (const as_value &op1, const as_value &op2, VM &vm)
 Carry out ActionSubtract.
bool DSOEXPORT vaapi_is_enabled ()
 Check whether video acceleration is enabled.
bool is_little_endian_host ()
DSOEXPORT Renderer_agg_basecreate_Renderer_agg (const char *pixelformat)
 Create a render handler.
DSOEXPORT const char * agg_detect_pixel_format (unsigned int rofs, unsigned int rsize, unsigned int gofs, unsigned int gsize, unsigned int bofs, unsigned int bsize, unsigned int bpp)
point middle (const point &a, const point &b)
void trace_curve (const point &startP, const point &controlP, const point &endP, std::vector< oglVertex > &coords)
std::vector< oglVertexinterpolate (const std::vector< Edge > &edges, const float &anchor_x, const float &anchor_y)
bool isEven (const size_t &n)
template<typename C , typename T , typename R , typename A >
void for_each (C &container, R(T::*pmf)(const A &), const A &arg)
Renderercreate_Renderer_ogl (bool init)
void vaapi_set_is_enabled (bool enabled)
 Enable video acceleration (with VA API).
void DSOEXPORT vaapi_dprintf (const char *format,...)
 Debug output.
bool vaapi_check_status (VAStatus status, const char *msg)
 Check VA status for success or print out an error.
const char * string_of_FOURCC (boost::uint32_t fourcc)
 Return a string representation of a FOURCC.
const char * string_of_VAProfile (VAProfile profile)
 Return a string representation of a VAProfile.
const char * string_of_VAEntrypoint (VAEntrypoint entrypoint)
 Return a string representation of a VAEntrypoint.
bool SetVariableCallback (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool GetVariableCallback (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool GotoFrame (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool IsPlaying (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool LoadMovie (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool Pan (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool PercentLoaded (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool Play (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool Rewind (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool SetZoomRect (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool StopPlay (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool Zoom (NPObject *npobj, NPIdentifier, const NPVariant *args, uint32_t argCount, NPVariant *result)
bool TotalFrames (NPObject *npobj, NPIdentifier, const NPVariant *, uint32_t argCount, NPVariant *result)
bool remoteCallback (NPObject *npobj, NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result)
void CopyVariantValue (const NPVariant &from, NPVariant &to)
std::string NPStringToString (const NPString &str)
 Construct a std::string from an NPString.
gboolean cleanup_childpid (gpointer data)
std::string getGnashExecutable ()
void create_standalone_launcher (const std::string &page_url, const std::string &swf_url, const std::map< std::string, std::string > &params)
template<std::size_t N>
void close_fds (const int(&except)[N])
void wait_for_gdb ()
bool testfunc (NPObject *, NPIdentifier, const NPVariant *, uint32_t, NPVariant *result)
void printNPVariant (const NPVariant *value)
std::ostream & operator<< (std::ostream &o, const FuzzyPixel &p)
double exp2 (double x)

Variables

const size_t MAX_PAGES = 2560
const int LIRC_PACKET_SIZE = 128
const int TIMEOUT = 10
const int BUTTONSIZE = 10
const short SSL_PORT = 443
const short SSH_PORT = 22
const short HTTP_PORT = 80
const short DTN1_PORT = 2445
const short DTN2_PORT = 4556
const short ADMIN_PORT = 1111
const short RTMP_PORT = 1935
const short RTMPE_PORT = 1935
const short RTMPT_PORT = HTTP_PORT
const short RTMPTE_PORT = HTTP_PORT
const short RTMPTS_PORT = SSL_PORT
const short CGIBIN_PORT = 1234
CQue incoming
const char * content_str []
const char * ping_str []
const char * status_str []
const char * response_str []
const int RTMP_HANDSHAKE_VERSION_SIZE = 1
const boost::uint8_t RTMP_VERSION = 0x3
const int RTMP_HANDSHAKE_SIZE = 1536
const int RTMP_RANDOM_SIZE = 1528
const int RTMP_HANDSHAKE_HEADER_SIZE = 8
const int MAX_AMF_INDEXES = 64
const int RTMP_HEADSIZE_MASK = 0xc0
const char RTMP_INDEX_MASK = 0x3f
const int RTMP_VIDEO_PACKET_SIZE = 128
const int RTMP_AUDIO_PACKET_SIZE = 64
const int RTMP_MAX_HEADER_SIZE = 12
const int PING_MSG_SIZE = 6
const int RTMP_SYSTEM_CHANNEL = 2
const char TERMINATOR = 0x09
const char * ROOTPATH
const char * HOST
const char * CA_LIST
const char * RANDOM
const char * KEYFILE
const size_t SSH_PASSWD_SIZE
const char * PASSWORD = "none"
const size_t SSL_PASSWD_SIZE = 1024
const char * SERVER_KEYFILE = "server.pem"
const char * SERVER_PASSWORD = "none"
const char * DHFILE = "dh1024.pem"
LogFiledbglogfile = LogFile::getDefaultInstance()
struct lirc_config * config
WindowRef myWindow = NULL
bool _terminate_request = false
int terminate_request = false
const int32 GNASH_PULSE = 'GPLS'
const int32 GNASH_SEND_PULSE = 'GSPL'
const int32 GNASH_QUITTING = 'GQUI'
const int GNASH_MOUSE_CLICKED = 'GMCL'
const int GNASH_MOUSE_MOVED = 'GMMV'
const int GNASH_KEY_EVENT = 'GKKE'
const int GNASH_RESIZE = 'GRSZ'
const int GNASH_HIDDEN = 'GHID'
const int GNASH_SHOWN = 'GSHN'
const int GNASH_SET_FULLSCREEN = 'GSFS'
const int GNASH_UNSET_FULLSCREEN = 'GUFS'
const int MAP_INHERIT = 0
const int MAP_HASSEMAPHORE = 0
const int MAX_SHM_NAME_SIZE = 48
const char * as_arg_strs []
const char * state_strs [] = { "rw", "w", "r" }
NPBool plugInitialized = FALSE

Detailed Description

Anonymous namespace for callbacks, local functions, event handlers etc.

Here follows handler registration code.

Freedom bites.

Anonymous namespace for generic algorithm functors.

String class interface.

SharedObject AS interface.

Anonymous namespace for NetConnection interface implementation.

Functors for use with foreachArray.

Helper for notifying listeners.

Function objects for foreachArray().

This file should also be included for the following system functions:

This is the main namespace for Gnash and it's libraries.

/ Dialogues /// /

Xv does hardware scaling for us. Thus, we should let the renderer render at a scale of 1 and we'll let Xv scale the rendered image to window size. Of course this destroys aspect ratio potentially set by the SWF.

stat() fstat() lstat() dup() readdir()

This file provides implementations of two different ActionScript global objects: one for AVM1, one for AVM2. The AVM1 global object has more (known) global functions. All AS2 classes are initialized as object prototypes and functions attached to the global object. From SWF8, the 'flash' package is attached as follows:

_global | flash | --------------------------------------------------- | | | | | | display net external filters geom text

where each item is an object.

The AVM2 global object has functions such as trace(), escape(), parseFloat(), parseInt() in common with AVM1. Some classes, such as Array, Boolean, Date, String, and Object, are also directly attached. Other classes, however, are different. The flash package in AVM2 is a namespace, not an object, and all members of the flash package are attached with a namespace to the global object. As we do this on demand, the AVM2 global object is much emptier than the AVM1 equivalent to start with.

Anonymous namespace for NetConnection AMF-reading helper functions (shouldn't be here).

This file handles DefineFont, DefineFontInfo, DefineFontInfo2, DefineFont2, and DefineFont3. They are all handled in one file because a DefineFont2 or 3 tag contains practically the same as a DefineFont plus DefineFontInfo or DefineFontInfo2.


Typedef Documentation

typedef as_value(* gnash::as_c_function_ptr)(const fn_call &fn)
typedef bool(* gnash::callback_t)(void *, int, void *data)
typedef std::vector<CallFrame> gnash::CallStack
typedef boost::shared_ptr<BitmapFilter> gnash::Filter
typedef std::vector<Filter> gnash::Filters

Standard snapping 2d ranges type for invalidated bounds calculation.

typedef std::pair<FillStyle, boost::optional<FillStyle> > gnash::OptionalFillPair

Either a single or a morph-pair FillStyle.

typedef std::map<const Path*, std::vector<oglVertex> > gnash::PathPointMap
typedef std::vector<const Path*> gnash::PathPtrVec
typedef std::vector<const Path*> gnash::PathRefs
typedef std::vector< Path > gnash::PathVec

Enumeration Type Documentation

anonymous enum

Texture flags.

Enumerator:
GNASH_TEXTURE_VAAPI 
Enumerator:
onStatus 
onResult 
onDebugEvents 
Enumerator:
CAP_ROUND 
CAP_NONE 
CAP_SQUARE 
Enumerator:
GNASH_FILETYPE_JPEG 
GNASH_FILETYPE_PNG 
GNASH_FILETYPE_GIF 
GNASH_FILETYPE_SWF 
GNASH_FILETYPE_FLV 
GNASH_FILETYPE_UNKNOWN 
Enumerator:
DROP_SHADOW 
BLUR 
GLOW 
BEVEL 
GRADIENT_GLOW 
CONVOLUTION 
COLOR_MATRIX 
GRADIENT_BEVEL 

Enumerates mouse cursor types.

Enumerator:
CURSOR_HAND 
CURSOR_NORMAL 
CURSOR_INPUT 
Enumerator:
JOIN_ROUND 
JOIN_BEVEL 
JOIN_MITER 

These are the primitive types, see the ECMAScript reference.

Enumerator:
PTYPE_STRING 
PTYPE_NUMBER 
PTYPE_BOOLEAN 

The display quality.

Required for rendering and core.

Enumerator:
QUALITY_LOW 
QUALITY_MEDIUM 
QUALITY_HIGH 
QUALITY_BEST 

VA codec.

Enumerator:
VAAPI_CODEC_UNKNOWN 
VAAPI_CODEC_MPEG2 
VAAPI_CODEC_MPEG4 
VAAPI_CODEC_H264 
VAAPI_CODEC_VC1 

Function Documentation

void gnash::accessibility_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Accessibility class.

void gnash::adjust_volume ( boost::int16_t *  data,
int  size,
int  volume 
)

References gnash::key::i.

DSOEXPORT const char * gnash::agg_detect_pixel_format ( unsigned int  rofs,
unsigned int  rsize,
unsigned int  gofs,
unsigned int  gsize,
unsigned int  bofs,
unsigned int  bsize,
unsigned int  bpp 
)

Detect pixel format based on bit mask. If the pixel format is unknown, NULL is returned. Note that a successfully detected pixel format does not necessarily mean that the pixel format is available (compiled in). The bit offsets are assumed to be in host byte order!

Referenced by gnash::GtkAggGlue::createRenderHandler().

void gnash::array_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global.Array object.

Referenced by gnash::AVM1Global::registerClasses().

string_table::key gnash::arrayKey ( string_table &  st,
size_t  i 
)

Convert an integral value into an array key.

NB this function adds a string value to the string_table for each separate integral value. It's the way the string_table works.

Parameters:
i The integral value to find
Returns:
The string table key to look up.

Referenced by fileio_scandir(), and foreachArray().

size_t gnash::arrayLength ( as_object &  array  ) 

Get the length of an object as though it were an array.

It may well be an array, but this also works on normal objects with a length property

Parameters:
array The object whose array length is needed.
Returns:
The array length of the object or 0 if no length is found.

Referenced by foreachArray().

template<typename T , size_t N>
size_t gnash::arraySize ( T(&)  [N]  ) 

Get the size of an array without passing a pointer by mistake.

Referenced by gnash::Socket::readNonBlocking(), and writeFLVHeader().

void gnash::attachAsBroadcasterStaticInterface ( as_object &  o  ) 
bool gnash::attached ( const SharedMem &  mem  )  [inline]

Check if the SharedMem has been attached.

This only checks whether the attach operation was successful, not whether the shared memory still exists and is still attached where it was initially. It is always possible for other processes to remove it while Gnash is using it, but there is nothing we can do about this.

References gnash::SharedMem::begin().

void gnash::attachFileReferenceStaticInterface ( as_object &   ) 
void gnash::attachKeyInterface ( as_object &  o  ) 
void gnash::attachLoadableInterface ( as_object &  where,
int  flags 
)

Attach some common AS code for Loadable objects.

This implements built-in functions.

void gnash::bevelfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.BevelFilter is a new BitmapFilter.

Initialize the global BitmapFilter class.

void gnash::bitmapdata_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global BitmapData class.

void gnash::bitmapfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global BitmapFilter class.

void gnash::bitmapfilterquality_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global BitmapFilterQuality class.

void gnash::bitmapfiltertype_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global BitmapFilterType class.

void gnash::blurfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global BlurFilter class.

void gnash::boolean_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Boolean class.

void gnash::button_class_init ( as_object &  global,
const ObjectURI &  uri 
)

Initialize the global Button class.

bool gnash::cairoFormatFromVisual ( const GdkVisual *  visual,
cairo_format_t *  format 
)
void gnash::camera_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Camera class.

bool gnash::caseless ( const as_object &  o  )  [inline]

Return whether property matching is caseless.

References getSWFVersion().

Referenced by gnash::DisplayObject::pathElement().

void gnash::checkArrayLength ( as_object &  array,
const ObjectURI &  uri,
const as_value &  val 
)

Genuine arrays handle the length property in a special way.

The only distinction between Arrays and Objects is that the length property is changed when an element is added, and that changing the length can result in deleted properties.

template<typename T >
T gnash::clamp ( i,
min,
max 
) [inline]
gboolean gnash::cleanup_childpid ( gpointer  data  ) 
void gnash::clear (  ) 

Maximum release of resources.

Calls clear_library() and fontlib::clear(), and also clears some extra internal stuff that may have been allocated (e.g. global ActionScript objects). This should get all gnash structures off the heap, with the exception of any objects that are still referenced by the host program and haven't had drop_ref() called on them.

References gnash::GC::cleanup(), gnash::fontlib::clear(), gnash::MovieLibrary::clear(), gnash::VM::clear(), gnash::GC::fuzzyCollect(), gnash::GC::get(), gnash::VM::get(), and gnash::MovieFactory::movieLibrary.

Referenced by gnash::Player::run().

template<std::size_t N>
void gnash::close_fds ( const int(&)  except[N]  ) 

References ogl::close().

void gnash::color_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Color class.

rgba gnash::colorFromHexString ( const std::string &  color  ) 

Create an RGBA value from a hex string (e.g. FF0000).

Parameters:
color A hex string in 'rrbbgg' format. This must contain only a valid hexadecimal number. It is the caller's responsibility to check it.
void gnash::colormatrixfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.ColorMatrixFilter is a new BitmapFilter.

Initialize the global ColorMatrixFilter class.

void gnash::colortransform_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global ColorTransform class.

as_object* gnash::constructInstance ( as_function &  ctor,
const as_environment &  env,
FunctionArgs< as_value > &  args 
)

Construct a new object from the given constructor.

This function takes care of creating the new object and assigning the __proto__ property. The construct() function is then called with the new object as its 'this' object.

Parameters:
ctor The constructor to run.
env The environment to use for the function call.
arg The arguments to pass to the constructor function.
Returns:
A newly-created object constructed by the specified function.
as_object* gnash::constructInstance ( as_function &  ctor,
const as_environment &  env,
fn_call::Args &  args 
)
void gnash::contextmenu_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global ContextMenu class.

void gnash::contextmenuitem_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global ContextMenuItem class.

double gnash::convert_double_wacky ( const void *  p  ) 
as_value & gnash::convertToBoolean ( as_value &  v,
VM &   
)

Force type to bool.

as_value & gnash::convertToNumber ( as_value &  v,
VM &   
)

Force type to number.

as_value & gnash::convertToPrimitive ( as_value &  v,
VM &  vm 
)

Convert to primitive type.

as_value & gnash::convertToString ( as_value &  v,
VM &  vm 
)

Force type to string.

void gnash::convolutionfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.ConvolutionFilter is a new BitmapFilter.

Initialize the global ConvolutionFilter class.

void gnash::copyMatrix ( const DisplayObject &  from,
DisplayObject &  to 
)

Copy SWFMatrix and caches from given DisplayObjecta.

Parameters:
from The DisplayObject to copy from
to The DisplayObject to copy to.
void gnash::CopyVariantValue ( const NPVariant &  from,
NPVariant &  to 
) [inline]

Makes a deep copy of a NPVariant.

Parameters:
from The source NPVariant to copy values from.
to The destination NPVariant.

Referenced by gnash::GnashNPVariant::copy(), gnash::GnashNPVariant::GnashNPVariant(), and gnash::GnashNPVariant::operator=().

DSOEXPORT Renderer_agg_base * gnash::create_Renderer_agg ( const char *  pixelformat  ) 
DSOEXPORT Renderer * gnash::create_Renderer_ogl ( bool  init  ) 
void gnash::create_standalone_launcher ( const std::string &  page_url,
const std::string &  swf_url,
const std::map< std::string, std::string > &  params 
)

References getGnashExecutable().

std::auto_ptr<Gui> gnash::createAOS4Gui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createAOS4Gui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createAQUAGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createAQUAGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createDumpGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createDumpGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createFBGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createFBGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createFLTKGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createFLTKGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createGTKGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)

Named constructors.

std::auto_ptr<Gui> gnash::createGTKGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createHaikuGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createHaikuGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createKDE4Gui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createKDE4Gui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createKDEGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createKDEGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createRISCOSGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createRISCOSGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
std::auto_ptr<Gui> gnash::createSDLGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources &  r 
)
std::auto_ptr<Gui> gnash::createSDLGui ( unsigned  long,
float  ,
bool  ,
RunResourcesfloat  ,
bool  ,
unsigned  int 
)
as_object * gnash::createTextFieldObject ( Global_as &  gl  ) 

Native function to create a plain object with TextField properties.

This function calls the TextField constructor.

Referenced by gnash::SWF::DefineEditTextTag::createDisplayObject().

as_object * gnash::createVideoObject ( Global_as &  gl  ) 

Native function to create a plain object with Video properties.

This adds properties to the prototype, but does not add a Video DisplayObject.

Referenced by gnash::SWF::DefineVideoStreamTag::createDisplayObject().

void gnash::customactions_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global CustomActions class.

void gnash::date_class_init ( as_object &  global,
const ObjectURI &  uri 
)
void gnash::dbus_class_init ( as_object &  obj  ) 
as_value gnash::dbus_ext_setsockname ( const fn_call &  fn  ) 
void gnash::declareLocal ( CallFrame &  c,
string_table::key  name 
)

Declare a local variable in this CallFrame.

The variable is declared and set to undefined if it doesn't exist already.

Parameters:
c The CallFrame to set the variable in.
name The name of the variable to declare.

Referenced by gnash::Function2::call().

void gnash::dejagnu_class_init ( as_object &  obj  ) 
as_value gnash::dejagnu_fail ( const fn_call &  fn  ) 
as_value gnash::dejagnu_pass ( const fn_call &  fn  ) 
as_value gnash::dejagnu_totals ( const fn_call &  fn  ) 
template<typename T >
void gnash::deleteChecked ( begin,
end 
)

Safely call delete on each element in a range.

This checks that the type is fully known, but cannot check whether the pointer was allocated with new. Pointers allocated with new[] or any other allocation function should never be passed to this function.

Parameters:
begin The start of the range to call delete on.
end The end of the range to call delete on.

References for_each().

Referenced by gnash::BufferedAudioStreamer::cleanAudioQueue(), gnash::MovieClip::getDisplayObjectAtDepth(), gnash::SWF::DefineButtonTag::~DefineButtonTag(), gnash::SWF::DefineVideoStreamTag::~DefineVideoStreamTag(), gnash::NetConnection_as::~NetConnection_as(), gnash::SWF::PlaceObject2Tag::~PlaceObject2Tag(), and gnash::StyleHandler::~StyleHandler().

template<typename T >
void gnash::deleteSecondElements ( begin,
end 
)

Safely call delete on each second element in a range of pairs.

This checks that the type is fully known, but cannot check whether the pointer was allocated with new. Pointers allocated with new[] or any other allocation function should never be passed to this function.

Parameters:
begin The start of the range to call delete on.
end The end of the range to call delete on.

References foreachSecond().

void gnash::displacementmapfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global DisplacementMapFilter class.

void gnash::displacementmapfiltermode_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global DisplacementMapFilterMode class.

void gnash::DoAdvanceMovie ( EventLoopTimerRef  inTimer,
void *  data 
)

Referenced by gnash::AquaGui::run().

std::string gnash::doubleToString ( double  val,
int  radix 
)

Convert numeric value to string value, following ECMA-262 specification.

Referenced by gnash::as_value::to_string().

pascal OSStatus gnash::DoWindowClose ( EventHandlerCallRef  nextHandler,
EventRef  theEvent,
void *  userData 
)
void gnash::dropshadowfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.DropShadowFilter is a new BitmapFilter.

Initialize the global DropShadowFilter class.

void gnash::dump_callbacks ( map< string, as_value > &  calls  ) 
template<typename T >
T::value_type* gnash::ensure ( const fn_call &  fn  ) 

Templated function to check the validity of a function call.

It throws an exception if the condition is not fulfilled, it throws an ActionTypeError, resulting in the function call being aborted and an undefined as_value returned. Note that not carrying out a function because the this pointer is undefined is not ActionScript behaviour in most cases. To avoid spreading its usage outside AS function implementations, this function now takes a fn_call as an argument.

Template Parameters:
T A struct defining a value_type and an operator() that checks the as_object's validity. A pointer to the value_type is returned on success, an exception thrown on failure.
Parameters:
fn The function whose 'this' pointer should be checked.
Returns:
If the cast succeeds, the pointer cast to the requested type.

References source, gnash::key::T, gnash::fn_call::this_ptr, and typeName().

void gnash::enumerateProperties ( as_object &  o,
as_object::SortedPropertyList &  to 
)

Enumerate all non-hidden properties to the passed container.

NB: it is likely that this call will change the object, as accessing propertyproperty values may call getter-setters. The enumeration recurses through the prototype chain. This implementation will keep track of visited object to avoid infinite loops in the prototype chain. NOTE: the MM player just chokes in this case.

DSOEXPORT bool gnash::equal ( string_table &  st,
string_table::key  a,
string_table::key  b,
bool  caseless 
)

Check whether two keys are equivalent.

This function provides a simple way to check for equivalence either in a case sensitive or case-insensitive way. It is mainly for convenience, to reduce conditionals in the code. If the comparison is case-sensitive, the keys are equivalent if they are equal.

Parameters:
st The string table to use
a One key to check
b The other key to check
caseless Whether to compare in a case-insensitive way.
Returns:
True if the keys are equivalent.

Referenced by main(), and gnash::DisplayObject::pathElement().

template<typename Container , typename Predicate >
void gnash::EraseIf ( Container &  c,
Predicate  p 
)

Erase elements from an associative container based on a predicate.

This removes elements from a container such as a map if they fulfil a particular condition. Because keys of associative container are const, we can't do this using iterators, because we can't write to them.

References gnash::key::e, gnash::key::i, and gnash::key::p.

void gnash::Error_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Error class.

void gnash::escapeXML ( std::string &  text  ) 

Escape using XML entities.

Note this is not the same as a URL escape.

double gnash::exp2 ( double  x  )  [inline]
void gnash::externalinterface_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global ExternalInterface class.

as_value gnash::fileio_asyncmode ( const fn_call &  fn  ) 
void gnash::fileio_class_init ( as_object &  where,
const ObjectURI &   
)
as_value gnash::fileio_fclose ( const fn_call &  fn  ) 
as_value gnash::fileio_feof ( const fn_call &  fn  ) 

References gnash::key::b.

as_value gnash::fileio_fflush ( const fn_call &  fn  ) 
as_value gnash::fileio_fgetc ( const fn_call &  fn  ) 

References gnash::key::i.

as_value gnash::fileio_fgets ( const fn_call &  fn  ) 
as_value gnash::fileio_fopen ( const fn_call &  fn  ) 
as_value gnash::fileio_fputc ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

as_value gnash::fileio_fputs ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

as_value gnash::fileio_fread ( const fn_call &  fn  ) 
as_value gnash::fileio_fseek ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

as_value gnash::fileio_ftell ( const fn_call &  fn  ) 

References gnash::key::i.

as_value gnash::fileio_fwrite ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

as_value gnash::fileio_getchar ( const fn_call &  fn  ) 

References gnash::key::i.

as_value gnash::fileio_gets ( const fn_call &  fn  ) 

References BUFSIZE.

as_value gnash::fileio_putchar ( const fn_call &  fn  ) 
as_value gnash::fileio_puts ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

as_value gnash::fileio_scandir ( const fn_call &  fn  ) 
as_value gnash::fileio_unlink ( const fn_call &  fn  ) 

References gnash::fn_call::arg().

void gnash::filereference_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global FileReference class.

as_value gnash::filereference_ctor ( const fn_call &  fn  ) 
void gnash::filereferencelist_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global FileReferenceList class.

as_value gnash::filereferencelist_ctor ( const fn_call &  fn  ) 
void gnash::flash_display_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_external_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_filters_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_geom_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_net_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_package_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::flash_text_package_init ( as_object &  where,
const ObjectURI &  uri 
)
template<typename C , typename T , typename R , typename A >
void gnash::for_each ( C &  container,
R(T::*)(const A &)  pmf,
const A &  arg 
)
template<typename T >
void gnash::foreachArray ( as_object &  array,
T &  pred 
)
template<typename T , typename U >
void gnash::foreachFirst ( begin,
end,
op 
)

Call a functor on the first element of each element in a range.

Template Parameters:
T An iterator type satisfying the requirements of a forward iterator
U The type of the functor op.
Parameters:
begin The start of the range to call op on.
end The end of the range to call op on.
op The function to call on each second element.

References gnash::key::_1, for_each(), and gnash::key::S.

Referenced by gnash::PropertyList::setReachable().

template<typename T , typename U >
void gnash::foreachSecond ( begin,
end,
op 
)

Call a functor on the second element of each element in a range.

Template Parameters:
T An iterator type satisfying the requirements of a forward iterator
U The type of the functor op.
Parameters:
begin The start of the range to call op on.
end The end of the range to call op on.
op The function to call on each second element.

References gnash::key::_1, for_each(), and gnash::key::S.

Referenced by deleteSecondElements(), gnash::SharedObjectLibrary::markReachableResources(), and gnash::movie_root::markReachableResources().

int gnash::frnd ( float  f  )  [inline]
template<typename T , size_t N>
std::string gnash::fromByteString ( T(&)  buf[N]  ) 

A null byte after the marker or at the beginning of the listeners signifies the end of the list.

void gnash::function_class_init ( as_object &  global,
const ObjectURI &  uri 
)

Initialize the global Function constructor.

Referenced by gnash::AVM1Global::registerClasses().

template<typename T >
T* gnash::get ( as_object *  o  ) 
void gnash::get_max_xv_image ( Display *  display,
XvPortID  xv_port,
unsigned int *  width,
unsigned int *  height 
)
unsigned long int gnash::get_thread_id ( void   )  [inline]

Used in logging.

Referenced by timestamp().

as_object * gnash::getArguments ( Function &  callee,
as_object &  args,
const fn_call &  fn,
as_object *  caller 
)

Add properties to an 'arguments' object.

The 'arguments' variable is an array with an additional 'callee' member, set to the function being called.

Referenced by gnash::Function2::call().

as_function* gnash::getClassConstructor ( const fn_call &  fn,
const std::string &  s 
) [inline]

Convenience function for finding a class constructor.

Only currently useful in AS2.

References gnash::as_function::to_function().

const SWFCxForm& gnash::getCxForm ( const DisplayObject &  o  )  [inline]
bool gnash::getDisplayObjectProperty ( DisplayObject &  obj,
string_table::key  key,
as_value &  val 
)

DisplayObject property lookup.

Get special properties.

This function is only called on the first object in the inheritance chain after the object's own properties have been checked. In AS2, any DisplayObject marks the end of the inheritance chain for lookups. Lookup order: 1. _level0.._level9 2. Objects on the DisplayList of a MovieClip 3. DisplayObject magic properties (_x, _y etc). 4. MovieClips' TextField variables (this is probably not the best way to do it, but as it is done like this, this must be called here. It will cause an infinite recursion otherwise.

This gets the magic properties of DisplayObjects and handles special MovieClip properties such as DisplayList members.

Parameters:
key The string table key of the property to get.
obj The DisplayObject whose property should be got
val An as_value to be set to the value of the property.
Global_as & gnash::getGlobal ( const as_environment &  env  ) 
Global_as & gnash::getGlobal ( const as_object &  o  ) 

Get the Global object from an as_object.

Global_as& gnash::getGlobal ( const fn_call &  fn  )  [inline]
std::string gnash::getGnashExecutable (  ) 
as_value gnash::getHeight ( DisplayObject &  o  ) 
void gnash::getIndexedProperty ( size_t  index,
DisplayObject &  o,
as_value &  val 
)

Get a property by its numeric index.

Used by ASHandlers to get the DisplayObject properties indexed by number

Parameters:
index The index of the property to get.
o The DisplayObject whose property should be got
val An as_value to be set to the value of the property.
const SWFMatrix& gnash::getMatrix ( const DisplayObject &  o  )  [inline]
string_table::key gnash::getName ( const ObjectURI &  o  )  [inline]
as_object* gnash::getObject ( const DisplayObject *  d  )  [inline]
as_object * gnash::getObjectWithPrototype ( Global_as &  gl,
string_table::key  c 
)
movie_root & gnash::getRoot ( const as_environment &  env  ) 
movie_root & gnash::getRoot ( const as_object &  o  ) 

Get the movie_root from an as_object.

movie_root& gnash::getRoot ( const fn_call &  fn  )  [inline]
const RunResources & gnash::getRunResources ( const as_object &  o  ) 
string_table & gnash::getStringTable ( const as_environment &  env  ) 
string_table & gnash::getStringTable ( const as_object &  o  ) 

Get the string_table from an as_object.

string_table& gnash::getStringTable ( const fn_call &  fn  )  [inline]
int gnash::getSWFVersion ( const as_object &  o  ) 

Get the executing VM version from an as_object.

int gnash::getSWFVersion ( const as_environment &  env  ) 
int gnash::getSWFVersion ( const fn_call &  fn  )  [inline]
void gnash::getURLEncodedVars ( as_object &  o,
std::string &  data 
)

Get url-encoded variables.

This method will be used for loadVariables and loadMovie calls, to encode variables for sending over a network. Variables starting with a dollar sign will be skipped, as non-enumerable ones.

Parameters:
o The object whose properties should be encoded.
data Output parameter, will be set to the url-encoded variables string without any leading delimiter.
bool gnash::GetVariableCallback ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
VM& gnash::getVM ( const fn_call &  fn  )  [inline]
VM& gnash::getVM ( const as_environment &  env  )  [inline]
VM & gnash::getVM ( const as_object &  o  ) 

Get the VM from an as_object.

SWFCxForm gnash::getWorldCxForm ( const DisplayObject &  d  )  [inline]

Get concatenated color transform of a DisplayObject.

Maps from our local space into normal color space.

References gnash::SWFCxForm::concatenate(), getCxForm(), and gnash::DisplayObject::parent().

Referenced by gnash::DisplayObject::MaskRenderer::MaskRenderer().

SWFMatrix gnash::getWorldMatrix ( const DisplayObject &  d,
bool  includeRoot = true 
) [inline]

Get concatenated SWFMatrix (all ancestor transforms and our SWFMatrix).

Maps from our local space into "world" space (i.e. root movie space).

Parameters:
includeRoot Whether the transform of the Stage (_root) should be concatenated. This is required to be false for pointInBounds.

References gnash::SWFMatrix::concatenate(), getMatrix(), gnash::key::m, and gnash::DisplayObject::parent().

Referenced by gnash::TextField::add_invalidated_bounds(), gnash::DisplayObject::add_invalidated_bounds(), gnash::DisplayObject::boundsInClippingArea(), gnash::MovieClip::constructAsScriptObject(), gnash::DisplayObject::MaskRenderer::MaskRenderer(), gnash::DisplayObject::pointInBounds(), gnash::TextField::pointInShape(), gnash::Shape::pointInShape(), gnash::Video::setStream(), and gnash::Button::topmostMouseEntity().

void gnash::glowfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.GlowFilter is a new BitmapFilter.

Initialize the global GlowFilter class.

void gnash::gnashInit (  ) 

Initialize gnash core library.

Referenced by main(), gnash::MovieTester::MovieTester(), and cygnal::vm_main().

void gnash::gnashSleep ( size_t  useconds  )  [inline]

Sleep compatibly for the specified number of microseconds.

Parameters:
useconds microseconds to sleep.

Referenced by gnash::MouseDevice::command(), gnash::SWFMovieDefinition::importResources(), main(), gnash::media::MediaParser::parserLoop(), gnash::NullGui::run(), gnash::FBGui::run(), and gnash::AOS4Gui::run().

bool gnash::GotoFrame ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::gradientbevelfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.GradientBevelFilter is a new BitmapFilter.

Initialize the global GradientBevelFilter class.

void gnash::gradientglowfilter_class_init ( as_object &  where,
const ObjectURI &  uri 
)

The prototype of flash.filters.GradientGlowFilter is a new BitmapFilter.

Initialize the global GradientGlowFilter class.

SWFMatrix gnash::gradientMatrix ( GradientFill::Type  t,
const SWFMatrix &  m 
)
as_value gnash::gtkext_button_new_with_label ( const fn_call &  fn  ) 
void gnash::gtkext_class_init ( as_object &  obj  ) 
as_value gnash::gtkext_container_add ( const fn_call &  fn  ) 
as_value gnash::gtkext_container_set_border_width ( const fn_call &  fn  ) 
as_value gnash::gtkext_main ( const fn_call &  fn  ) 
as_value gnash::gtkext_signal_connect ( const fn_call &  fn  ) 
as_value gnash::gtkext_signal_connect_swapped ( const fn_call &  fn  ) 
as_value gnash::gtkext_widget_show ( const fn_call &  fn  ) 
as_value gnash::gtkext_window_new ( const fn_call &  fn  ) 
DSOEXPORT std::string gnash::hexify ( const unsigned char *  bytes,
size_t  length,
bool  ascii 
)

Convert a sequence of bytes to hex or ascii format.

Calls the template generator for each log type in the sequence LOG_TYPES.

Parameters:
bytes the array of bytes to process
length the number of bytes to read. Callers are responsible for checking that length does not exceed the array size.
ascii whether to return in ascii or space-separated hex format.
Returns:
a string representation of the byte sequence.

Referenced by gnash::RTMPClient::clientFinish(), handleInvoke(), md5_filespec_check(), gnash::InputDevice::readData(), gnash::Network::readNet(), and gnash::Network::writeNet().

bool DSOEXPORT gnash::http_handler ( Network::thread_params_t *  args  ) 
double gnash::infinite_to_zero ( double  x  )  [inline]

References isFinite().

std::auto_ptr<as_object> gnash::init_dejagnu_instance (  ) 

Return an instance.

std::auto_ptr< as_object > gnash::init_gtkext_instance (  ) 

Return an instance.

std::auto_ptr< as_object > gnash::init_launcher_instance (  ) 

Return an instance.

boost::intrusive_ptr<as_object> gnash::init_Rectangle_instance (  ) 

Return a Rectangle instance (in case the core lib needs it).

void gnash::initObjectClass ( as_object *  proto,
as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Object class.

Referenced by gnash::AVM1Global::registerClasses().

std::vector<oglVertex> gnash::interpolate ( const std::vector< Edge > &  edges,
const float &  anchor_x,
const float &  anchor_y 
)
void gnash::intrusive_ptr_add_ref ( const ref_counted *  o  )  [inline]
void gnash::intrusive_ptr_add_ref ( const GcResource *   )  [inline]
void gnash::intrusive_ptr_release ( const ref_counted *  o  )  [inline]
void gnash::intrusive_ptr_release ( const GcResource *   )  [inline]
bool gnash::invisible ( const SWFCxForm &  cx  )  [inline]

Returns true when the SWFCxForm leads to alpha == 0.

Not the _alpha property, but the visible alpha related to dislpay. The two might be completely different. eg. mc._alpha ranges in [-32768, 32767], but the alpha on screen ranges in [0, 255]

References gnash::SWFCxForm::aa, and gnash::SWFCxForm::ab.

Referenced by gnash::MovieClip::constructAsScriptObject().

DSOEXPORT as_value gnash::invoke ( const as_value &  method,
const as_environment &  env,
as_object *  this_ptr,
fn_call::Args &  args,
as_object *  super = 0,
const movie_definition *  callerDef = 0 
) [inline]
bool gnash::is_little_endian_host (  ) 

References s, and gnash::key::u.

bool gnash::isButtonEvent ( const event_id &  e  ) 

Check whether an event is a button-like event.

Parameters:
e The event to check
Returns:
True if it is
bool gnash::isEven ( const size_t &  n  ) 
bool gnash::isFinite ( double  d  )  [inline]

Referenced by infinite_to_zero().

template<typename T >
bool gnash::isInf ( const T &  num  )  [inline]

References isNaN().

bool gnash::isKeyEvent ( const event_id &  e  ) 

Check whether an event is a keyboard event.

Parameters:
e The event to check
Returns:
True if it is
bool gnash::isLevelTarget ( int  version,
const std::string &  name,
unsigned int &  levelno 
)

Return true if the given string can be interpreted as a _level name.

Parameters:
name The target string. Will be considered case-insensitive if VM version is < 7.
levelno Output parameter, will be set to the level number, if true is returned
template<typename T >
bool gnash::isNaN ( const T &  num,
typename boost::enable_if< boost::is_floating_point< T > >::type *  dummy = 0 
) [inline]

References UNUSED.

Referenced by isInf(), and gnash::as_value::to_bool().

template<typename T >
bool gnash::isNativeType ( as_object *  obj,
T *&  relay 
)

Check whether the object is an instance of a known type.

This is used to check the type of certain objects when it can't be done through ActionScript and properties. Examples include conversion of Date and String objects.

Template Parameters:
T The expected native type
Parameters:
obj The object whose type should be tested
relay This points to the native type information if the object is of the expected type
Returns:
If the object is of the expected type, true; otherwise false.

References gnash::as_object::relay(), and gnash::key::T.

Referenced by gnash::as_value::defaultPrimitive(), and gnash::as_value::to_string().

bool gnash::IsPlaying ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
bool gnash::isReferenceable ( const DisplayObject &  d  )  [inline]

Returns true if the DisplayObject is referenceable in ActionScript.

A DisplayObject is referenceable if it has an associated object.

References gnash::DisplayObject::object().

Referenced by gnash::SWF::ButtonRecord::instantiate(), and gnash::DisplayList::mergeDisplayList().

void gnash::key_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Handles addListener, removeListener, and _listeners.

as_value gnash::key_get_ascii ( const fn_call &  fn  ) 

Return the ascii number of the last key pressed.

References gnash::key::ASCII, gnash::key::codeMap, getRoot(), and gnash::movie_root::lastKeyEvent().

as_value gnash::key_get_code ( const fn_call &  fn  ) 

Returns the keycode of the last key pressed.

References gnash::key::codeMap, getRoot(), gnash::key::KEY, and gnash::movie_root::lastKeyEvent().

as_value gnash::key_is_accessible ( const fn_call &   ) 

Referenced by attachKeyInterface().

as_value gnash::key_is_down ( const fn_call &  fn  ) 

Return true if the specified (first arg keycode) key is pressed.

References _, gnash::fn_call::arg(), getRoot(), IF_VERBOSE_ASCODING_ERRORS, gnash::key::KEYCOUNT, gnash::fn_call::nargs, toInt(), and gnash::movie_root::unreleasedKeys().

as_value gnash::key_is_toggled ( const fn_call &   ) 

Given the keycode of NUM_LOCK or CAPSLOCK, returns true if the associated state is on.

void gnash::launcher_class_init ( as_object &  obj  ) 
as_value gnash::launcher_create_md5sum ( const fn_call &  fn  ) 
as_value gnash::launcher_verify_md5sum ( const fn_call &  fn  ) 
template<typename T >
T gnash::lerp ( a,
b,
f 
) [inline]
void gnash::lirc_class_init ( as_object &  obj  ) 
as_value gnash::lirc_ext_getbutton ( const fn_call &  fn  ) 
as_value gnash::lirc_ext_getkey ( const fn_call &  fn  ) 

References gnash::fn_call::nargs.

as_value gnash::lirc_ext_init ( const fn_call &  fn  ) 
bool gnash::LoadMovie ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::loadvars_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global LoadVars class.

void gnash::localconnection_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::math_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::matrix_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Matrix class.

void gnash::microphone_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Microphone class.

point gnash::middle ( const point &  a,
const point &  b 
)

A point in the middle of points a and b, that is, the middle of a line drawn from a to b.

References gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.

Referenced by trace_curve().

DSOEXPORT bool gnash::mkdirRecursive ( const std::string &  filename  ) 

Create a directory for a given filename.

Everything after the last '/' is assumed to be the filename.

int gnash::mkdirUserPermissions ( const std::string &  dirname  )  [inline]

Create a directory, granting owner rwx permissions.

On non-POSIX systems, just create the directory.

References errno.

void gnash::mouse_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::movieclip_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global MovieClip class.

void gnash::moviecliploader_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Extern.

Initialize the global MovieClipLoader class.

void gnash::mysql_class_init ( as_object &  obj  ) 
as_value gnash::mysql_connect ( const fn_call &  fn  ) 
as_value gnash::mysql_disconnect ( const fn_call &  fn  ) 
as_value gnash::mysql_fetch ( const fn_call &  fn  ) 
as_value gnash::mysql_fields ( const fn_call &  fn  ) 
as_value gnash::mysql_free ( const fn_call &  fn  ) 
as_value gnash::mysql_qetData ( const fn_call &  fn  ) 
as_value gnash::mysql_query ( const fn_call &  fn  ) 
as_value gnash::mysql_row ( const fn_call &  fn  ) 
as_value gnash::mysql_store ( const fn_call &  fn  ) 
void gnash::netconnection_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::netstream_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::newAdd ( as_value &  op1,
const as_value &  op2,
VM &  vm 
)

Carry out ActionNewAdd.

VM ops on as_value.

These are currently used in: 1. VM (AVM1) 2. Gnash's C++ implementation of ActionScript.

Usage 2 replicates VM behaviour, but does not use the VM's stack or other resources. This can lead to different behaviour, for instance when there are limits on the stack size. Such cases are probably rare.

Parameters:
op1 The as_value to add to.
op2 The as_value to add.
vm The VM executing the operation. TODO: Consider whether it would be better to pass something other than the VM. But it is a VM operation, so it is logically sound.

It doesn't matter if either of these fail.

as_value gnash::newLessThan ( const as_value &  op1,
const as_value &  op2,
VM &  vm 
)

Carry out ActionSubtract.

Parameters:
op1 The first comparand.
op2 The second comparand.
vm The VM executing the operation.
std::string gnash::NPStringToString ( const NPString &  str  )  [inline]

Construct a std::string from an NPString.

NPStrings are not guaranteed to be NULL-terminated.

Referenced by gnash::ExternalInterface::convertNPVariant(), and main().

void gnash::number_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Number class.

bool gnash::operator!= ( const SWFCxForm &  a,
const SWFCxForm &  b 
) [inline]
Transform gnash::operator* ( const Transform &  a,
const Transform &  b 
) [inline]

Concatenate two transforms.

bool gnash::operator< ( const kerning_pair &  p1,
const kerning_pair &  p2 
) [inline]
bool gnash::operator< ( const ObjectURI &  a,
const ObjectURI &  b 
) [inline]

Comparator for ObjectURI so it can serve as a key in stdlib containers.

References gnash::ObjectURI::name.

std::ostream& gnash::operator<< ( std::ostream &  os,
const DiskStream &  ds 
) [inline]

Dump to the specified output stream.

References gnash::DiskStream::dump().

std::ostream & gnash::operator<< ( std::ostream &  os,
const SWFCxForm &  cx 
)
std::ostream & gnash::operator<< ( std::ostream &  o,
const CallFrame &  fr 
)
std::ostream & gnash::operator<< ( std::ostream &  os,
const ClassHierarchy::ExtensionClass &  c 
)
std::ostream & gnash::operator<< ( std::ostream &  o,
DisplayObject::BlendMode  bm 
)

Stream operator for DisplayObject blend mode.

std::ostream& gnash::operator<< ( std::ostream &  os,
const as_value &  v 
) [inline]
std::ostream & gnash::operator<< ( std::ostream &  os,
const ClassHierarchy::NativeClass &  c 
)
std::ostream & gnash::operator<< ( std::ostream &  o,
const event_id &  ev 
)
DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  os,
const BitmapFill::SmoothingPolicy &  p 
)
std::ostream& gnash::operator<< ( std::ostream &  o,
const CharacterDictionary &  cd 
)
std::ostream& gnash::operator<< ( std::ostream &  os,
const PropFlags &  fl 
) [inline]
std::ostream & gnash::operator<< ( std::ostream &  os,
const rgba &  r 
)
std::ostream& gnash::operator<< ( std::ostream &  o,
const FuzzyPixel &  p 
)
std::ostream & gnash::operator<< ( std::ostream &  o,
const SWFMatrix &  m 
)
std::ostream& gnash::operator<< ( std::ostream &  os,
const SWFRect &  r 
) [inline]
std::ostream & gnash::operator<< ( std::ostream &  os,
const DisplayList &  dl 
)
std::ostream& gnash::operator<< ( std::ostream &  os,
const Cache &  cache 
) [inline]

Dump to the specified output stream.

References gnash::Cache::dump().

DSOEXPORT std::ostream & gnash::operator<< ( std::ostream &  o,
const URL &  u 
)
bool gnash::operator== ( const ObjectURI &  a,
const ObjectURI &  b 
) [inline]

ObjectURIs are equal if name is equal.

References gnash::ObjectURI::name.

bool gnash::operator== ( const SWFCxForm &  a,
const SWFCxForm &  b 
) [inline]
bool gnash::operator== ( const SWFMatrix &  a,
const SWFMatrix &  b 
) [inline]
bool gnash::Pan ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
bool gnash::parseNonDecimalInt ( const std::string &  s,
double &  d,
bool  whole = true 
)

Try to parse a string into a 32-bit signed int using base 8 or 16. // This function will throw a boost::bad_lexical_cast (or a derived exception) if the passed string cannot be converted.

Parameters:
s The string to parse
d The 32-bit int represented as a double. This is only a valid number if the return value is true.
whole If true, expect the whole string to be valid, i.e. throw if there are any invalid DisplayObjects. If false, returns any valid number up to the first invalid DisplayObject.
Returns:
True if the string was non-decimal and successfully parsed.

Referenced by gnash::as_value::to_number().

bool gnash::parsePath ( const std::string &  var_path,
std::string &  path,
std::string &  var 
)

See if the given variable name is actually a sprite path followed by a variable name. These come in the format:

/path/to/some/sprite/:varname

(or same thing, without the last '/')

or path.to.some.var

If that's the format, puts the path part (no colon or trailing slash) in *path, and the varname part (no colon, no dot) in *var and returns true.

If no colon or dot, returns false and leaves *path & *var alone.

TODO: return an integer: 0 not a path, 1 a slash-based path, 2 a dot-based path

int gnash::password_cb ( char *  buf,
int  size,
int  ,
void *   
)
bool gnash::PercentLoaded ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
boost::int32_t gnash::pixelsToTwips ( double  a  )  [inline]
bool gnash::Play ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::point_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Point class.

void gnash::printNPVariant ( const NPVariant *  value  ) 
DSOEXPORT void gnash::processLog_abc ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_action ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_amferror ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_aserror ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_debug ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_error ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_network ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_parse ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_security ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_swferror ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_trace ( const boost::format &  fmt  ) 
DSOEXPORT void gnash::processLog_unimpl ( const boost::format &  fmt  ) 
OptionalFillPair gnash::readFills ( SWFStream &  in,
SWF::TagType  t,
movie_definition &  m,
bool  readMorph 
)

Read FillStyles from a stream.

Read either single or morph-pair fill styles from a stream.

Referenced by gnash::SWF::ShapeRecord::read(), gnash::LineStyle::read(), and gnash::LineStyle::read_morph().

boost::uint32_t gnash::readLong ( const boost::uint8_t *  buf  )  [inline]

References s.

bool gnash::readOnly ( const Property &  prop  )  [inline]

is this a read-only member ?

References gnash::PropFlags::get_read_only(), and gnash::Property::getFlags().

Referenced by gnash::PropertyList::setValue().

rgba gnash::readRGB ( SWFStream &  in  ) 

Can throw ParserException on premature end of input stream.

Initialize from intput stream (reads RGB).

Referenced by gnash::SWF::TextRecord::read(), and gnash::LineStyle::read().

rgba gnash::readRGBA ( SWFStream &  in  ) 

Initialize from input stream (reads RGBA).

Throw a ParserException if there's no enough bytes in the currently opened tag for reading. See SWFStream::ensureBytes()

Referenced by gnash::SWF::TextRecord::read(), gnash::LineStyle::read(), and gnash::LineStyle::read_morph().

SWFMatrix gnash::readSWFMatrix ( SWFStream &  in  ) 

Read from input stream.

Referenced by gnash::SWF::ButtonRecord::read().

void gnash::rectangle_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Rectangle class.

void gnash::registerAccessibilityNative ( as_object &  global  ) 
void gnash::registerArrayNative ( as_object &  global  ) 
void gnash::registerBitmapClass ( as_object &  where,
Global_as::ASFunction  ctor,
Global_as::Properties  p,
const ObjectURI &  uri 
)

Convenience function only for BitmapFilter subclasses.

This implements the AS code necessary for defining subclasses of BitmapFilter in AS2.

void gnash::registerBitmapDataNative ( as_object &  global  ) 
void gnash::registerBitmapFilterNative ( as_object &  global  ) 
void gnash::registerBooleanNative ( as_object &  global  ) 
as_object* gnash::registerBuiltinClass ( as_object &  where,
Global_as::ASFunction  ctor,
Global_as::Properties  p,
Global_as::Properties  c,
const ObjectURI &  uri 
) [inline]

Register a built-in class.

This is used for classes that are part of the player API. In the reference player these classes are always constructed in ActionScript, though their functions may be native, and the constructor may also call native functions.

Parameters:
c a pointer to a function that will attach properties to the class itself. These are known as static properties.
p a pointer to a function that will attach properties to the class prototype. These are instance properties.
ctor the constructor function for the new class.
where the object to which the created object will be attached
uri an ObjectURI describing the name and namespace of the created object.
Returns:
the built-in class with prototype and properties attached.

References s2x::c, gnash::Global_as::createClass(), gnash::Global_as::createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::as_object::init_member(), and gnash::key::p.

as_object* gnash::registerBuiltinObject ( as_object &  where,
Global_as::Properties  p,
const ObjectURI &  uri 
) [inline]

Register a built-in object.

This is used for simple objects that are part of the player API. In the reference player these objects are always constructed in ActionScript, though their functions may be native. They include (AS2) Mouse, Selection and Stage, and (AS3) all constant enumeration objects.

Parameters:
p a pointer to a function that will attach properties to the object
where the object to which the created object will be attached
uri an ObjectURI describing the name and namespace of the created object.
Returns:
the built-in object with properties attached.

References gnash::Global_as::createObject(), gnash::as_object::DefaultFlags, getGlobal(), gnash::as_object::init_member(), and gnash::key::p.

void gnash::registerButtonNative ( as_object &  global  ) 
void gnash::registerCameraNative ( as_object &  global  ) 
void gnash::registerColorNative ( as_object &  o  ) 
void gnash::registerColorTransformNative ( as_object &  global  ) 
void gnash::registerDateNative ( as_object &  global  ) 
void gnash::registerExternalInterfaceNative ( as_object &  global  ) 
void gnash::registerFunctionNative ( as_object &  global  ) 
void gnash::registerKeyNative ( as_object &  global  ) 
void gnash::registerLoadableNative ( as_object &  o  ) 

Register methods as native for use by XML_as and LoadVars_as.

This is only automatically used in LoadVars.

void gnash::registerLocalConnectionNative ( as_object &  global  ) 
void gnash::registerMathNative ( as_object &  proto  ) 
void gnash::registerMicrophoneNative ( as_object &  global  ) 
void gnash::registerMovieClipLoaderNative ( as_object &  global  ) 
void gnash::registerMovieClipNative ( as_object &  where  ) 

Register ASNative MovieClip methods (AS2 only).

void gnash::registerNetStreamNative ( as_object &  global  ) 
void gnash::registerNumberNative ( as_object &  global  ) 
void gnash::registerObjectNative ( as_object &  global  ) 
void gnash::registerSelectionNative ( as_object &  global  ) 

Register native selection methods.

void gnash::registerSharedObjectNative ( as_object &  o  ) 
void gnash::registerSoundNative ( as_object &  global  ) 
void gnash::registerStageNative ( as_object &  o  ) 

This is the Stage ActionScript object.

Some Stage methods are implemented in movie_root, because it provides the interface to the Gui and/or all the values required are necessarily in movie_root:

  • scaleMode
  • width
  • height
  • displayState
  • alignMode Most functions are ASnative, which means they cannot rely on the existence of a load-on-demand Stage object. Only resize events appear to need this (not ASnative). The ASnative functions are available from SWF5 Register native functions with the VM.
void gnash::registerStringNative ( as_object &  global  ) 
void gnash::registerSystemNative ( as_object &  where  ) 
void gnash::registerTextFieldNative ( as_object &  global  ) 
void gnash::registerTextFormatNative ( as_object &  o  ) 
void gnash::registerTextSnapshotNative ( as_object &  global  ) 
void gnash::registerVideoNative ( as_object &  global  ) 
void gnash::registerXMLNative ( as_object &  where  ) 

Register XML native functions.

void gnash::registerXMLNodeNative ( as_object &  where  ) 

Register ASnative methods.

void gnash::registerXMLSocketNative ( as_object &  global  ) 
bool gnash::remoteCallback ( NPObject *  npobj,
NPIdentifier  name,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
bool gnash::Rewind ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::selection_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Selection class.

Handles addListener, removeListener, and _listeners.

bool gnash::setDisplayObjectProperty ( DisplayObject &  obj,
string_table::key  key,
const as_value &  val 
)

Set special properties.

This sets the magic properties of DisplayObjects.

Parameters:
key The string table key of the property to set.
obj The DisplayObject whose property should be set
val An as_value representing the new value of the property. Some values may be rejected.
void gnash::setHeight ( DisplayObject &  o,
const as_value &  val 
)
void gnash::setIndexedProperty ( size_t  index,
DisplayObject &  o,
const as_value &  val 
)

Set a property by its numeric index.

Used by ASHandlers to set the DisplayObject properties indexed by number

Parameters:
index The index of the property to set.
o The DisplayObject whose property should be set
val An as_value representing the new value of the property. Some values may be rejected.
void gnash::setLerp ( LineStyle &  s,
const LineStyle &  ls1,
const LineStyle &  ls2,
double  ratio 
) [inline]
void gnash::setLerp ( FillStyle &  f,
const FillStyle &  a,
const FillStyle &  b,
double  t 
)

Set the FillStyle to a lerp of a and b.

Callers must ensure that all FillStyles have exactly the same type! Most errors are caught by type-checking and will throw an unhandled exception.

void gnash::setLocal ( CallFrame &  c,
string_table::key  name,
const as_value &  val 
)

Set a local variable in this CallFrame.

If the variable does not already exist, it is created.

Parameters:
c The CallFrame to set the variable in.
name The name of the variable to set.
val The value to set the variable to.

Referenced by gnash::Function2::call(), and gnash::ActionExec::setLocalVariable().

void gnash::setNaN ( as_value &  v  )  [inline]

Set a value to NaN.

References gnash::as_value::set_double().

bool gnash::SetVariableCallback ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
bool gnash::SetZoomRect ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::sharedobject_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global SharedObject class.

void gnash::sound_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::stage_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Stage class.

bool gnash::StopPlay ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::string_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global String class.

Referenced by gnash::AVM1Global::registerClasses().

const char * gnash::string_of_FOURCC ( boost::uint32_t  fourcc  ) 
const char * gnash::string_of_VAEntrypoint ( VAEntrypoint  entrypoint  ) 

Return a string representation of a VAEntrypoint.

const char * gnash::string_of_VAProfile ( VAProfile  profile  ) 

Return a string representation of a VAProfile.

DSOEXPORT short gnash::stringToStageAlign ( const std::string &  str  ) 

Referenced by gnash::Player::run().

void gnash::subtract ( as_value &  op1,
const as_value &  op2,
VM &  vm 
)

Carry out ActionSubtract.

Parameters:
op1 The as_value to subtract from.
op2 The as_value to subtract.
vm The VM executing the operation.
void gnash::system_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global System class.

void gnash::terminate_signal ( int   ) 

Called on CTRL-C and alike.

References terminate_request.

Referenced by gnash::FBGui::FBGui().

bool gnash::testfunc ( NPObject *  ,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  ,
NPVariant *  result 
)

References __PRETTY_FUNCTION__.

void gnash::textfield_class_init ( as_object &  where,
const ObjectURI &  uri 
)

This provides the prototype and static methods for TextField.

Initialize the global TextField class.

For SWF5 there is initially no prototype, for SWF6+ there is a limited prototype. This is changed later on instantiation of a TextField.

void gnash::textformat_class_init ( as_object &  global,
const ObjectURI &  uri 
)
void gnash::textrenderer_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global TextRenderer class.

void gnash::textsnapshot_class_init ( as_object &  where,
const ObjectURI &  uri 
)
std::ostream& gnash::timestamp ( std::ostream &  o  ) 

References get_thread_id().

Referenced by gnash::LogFile::log().

SWFCxForm gnash::toCxForm ( const ColorTransform_as &  tr  ) 

Convert a ColorTransform_as to a SWFCxForm record.

boost::int32_t gnash::toInt ( const as_value &  val  ) 

AS2-compatible conversion to 32bit integer.

This truncates large numbers to fit in the 32-bit space. It is not a proper function of as_value because it is simply a further operation on the stored number type. This function calls to_number(), so performs a conversion if necessary.

Referenced by key_is_down().

SWFMatrix gnash::toSWFMatrix ( as_object &  m  ) 

Convert an object to a SWFMatrix.

bool gnash::TotalFrames ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  ,
uint32_t  argCount,
NPVariant *  result 
)
void gnash::trace_curve ( const point &  startP,
const point &  controlP,
const point &  endP,
std::vector< oglVertex > &  coords 
)
void gnash::transform_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global Transform class.

template<size_t Factor>
boost::int32_t gnash::truncateWithFactor ( double  a  ) 
double gnash::twipsToPixels ( int  i  )  [inline]
template<class T >
std::string gnash::typeName ( const T &  inst  ) 
void gnash::unescapeXML ( std::string &  text  ) 
bool DSOEXPORT gnash::vaapi_check_status ( VAStatus  status,
const char *  msg 
)
void DSOEXPORT gnash::vaapi_dprintf ( const char *  format,
  ... 
)

Debug output.

bool DSOEXPORT gnash::vaapi_is_enabled (  ) 

Check whether video acceleration is enabled.

Referenced by gnash::media::ffmpeg::VaapiContextFfmpeg::create().

void DSOEXPORT gnash::vaapi_set_is_enabled ( bool  enabled  ) 

Enable video acceleration (with VA API).

Referenced by gnash::VaapiGlobalContext::get(), and gnash_canvas_setup().

int gnash::verify_callback ( int  ok,
X509_STORE_CTX *  store 
)
void gnash::video_class_init ( as_object &  global,
const ObjectURI &  uri 
)
bool gnash::visible ( const Property &  prop,
int  version 
) [inline]

Is this member supposed to be visible by a VM of given version ?

References gnash::PropFlags::get_visible(), and gnash::Property::getFlags().

Referenced by gnash::IsVisible::operator()(), and gnash::as_object::set_prototype().

void gnash::wait_for_gdb (  ) 
void gnash::writeLong ( boost::uint8_t *&  ptr,
boost::uint32_t  i 
)
void gnash::xml_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Register the XML class.

void gnash::xmlnode_class_init ( as_object &  where,
const ObjectURI &  uri 
)
void gnash::xmlsocket_class_init ( as_object &  where,
const ObjectURI &  uri 
)

Initialize the global XMLSocket class.

bool gnash::Zoom ( NPObject *  npobj,
NPIdentifier  ,
const NPVariant *  args,
uint32_t  argCount,
NPVariant *  result 
)

Variable Documentation

const short gnash::ADMIN_PORT = 1111

Referenced by main().

const char* gnash::as_arg_strs[]
Initial value:
 {
    "ARG_NONE",
    "ARG_STR",
    "ARG_HEX",
    "ARG_U8",
    "ARG_U16",
    "ARG_S16",
    "ARG_PUSH_DATA",
    "ARG_DECL_DICT",
    "ARG_FUNCTION2"
}
const int gnash::BUTTONSIZE = 10
const char * gnash::CA_LIST
const short gnash::CGIBIN_PORT = 1234
struct lirc_config* gnash::config
const char* gnash::content_str[]
Initial value:
 {
    "None",
    "Chunk Size",
    "Abort",
    "Bytes Read",
    "User",
    "Window Size",
    "Set Bandwidth",
    "Route",
    "Audio Data",
    "Video Data",
    "Shared Object",
    "Blank 0xb",
    "Blank 0xc",
    "Blank 0xd",
    "Blank 0xe",
    "AMF3 Notify",
    "AMF3 Shared Object",
    "AMF3_INVOKE",
    "Notify",
    "Blank 0x13",
    "Invoke",
    "Blank 0x15",
    "FLV Data"
}

Referenced by gnash::RTMP::decodeHeader().

LogFile & gnash::dbglogfile = LogFile::getDefaultInstance()
const char * gnash::DHFILE = "dh1024.pem"
const short gnash::DTN1_PORT = 2445
const short gnash::DTN2_PORT = 4556
const int gnash::GNASH_HIDDEN = 'GHID'
const int gnash::GNASH_KEY_EVENT = 'GKKE'
const int gnash::GNASH_MOUSE_CLICKED = 'GMCL'
const int gnash::GNASH_MOUSE_MOVED = 'GMMV'
const int32 gnash::GNASH_PULSE = 'GPLS'
const int32 gnash::GNASH_QUITTING = 'GQUI'
const int gnash::GNASH_RESIZE = 'GRSZ'
const int32 gnash::GNASH_SEND_PULSE = 'GSPL'
const int gnash::GNASH_SET_FULLSCREEN = 'GSFS'
const int gnash::GNASH_SHOWN = 'GSHN'
const int gnash::GNASH_UNSET_FULLSCREEN = 'GUFS'
const char * gnash::HOST
const short gnash::HTTP_PORT = 80

Referenced by main().

const char * gnash::KEYFILE
const int gnash::LIRC_PACKET_SIZE = 128
const int gnash::MAP_HASSEMAPHORE = 0
const int gnash::MAP_INHERIT = 0
const int gnash::MAX_AMF_INDEXES = 64

Referenced by gnash::RTMP::RTMP().

This is the maximum number of pages that we load into memory from a file.

Referenced by gnash::DiskStream::DiskStream().

const int gnash::MAX_SHM_NAME_SIZE = 48
WindowRef gnash::myWindow = NULL
const char * gnash::PASSWORD = "none"
const int gnash::PING_MSG_SIZE = 6
const char * gnash::ping_str
Initial value:
 {
    "PING_CLEAR",
    "PING_PLAY",
    "Unknown Ping 2",
    "PING_TIME",
    "PING_RESET",
    "Unknown Ping 2",
    "PING_CLIENT",
    "PONG_CLIENT"
}

Referenced by gnash::RTMPClient::recvResponse().

NPBool gnash::plugInitialized = FALSE
const char * gnash::RANDOM
const char* gnash::response_str[]
Initial value:
 {
    "/onStatus",
    "/onResult",
    "/onDebugEvents"
}
const char * gnash::ROOTPATH
const int gnash::RTMP_HANDSHAKE_SIZE = 1536

The RTMP version field of the handshake is 1 byte large

const int gnash::RTMP_HEADSIZE_MASK = 0xc0
const char gnash::RTMP_INDEX_MASK = 0x3f
const short gnash::RTMP_PORT = 1935
const int gnash::RTMP_RANDOM_SIZE = 1528

The RTMP version number for now is always a 3.

Referenced by gnash::RTMPClient::handShakeRequest().

const short gnash::RTMPE_PORT = 1935
const char * gnash::SERVER_KEYFILE = "server.pem"
const char* gnash::SERVER_PASSWORD = "none"
const size_t gnash::SSH_PASSWD_SIZE
const short gnash::SSH_PORT = 22
const size_t gnash::SSL_PASSWD_SIZE = 1024
const short gnash::SSL_PORT = 443
const char* gnash::state_strs[] = { "rw", "w", "r" }
const char* gnash::status_str[]
const char gnash::TERMINATOR = 0x09
const int gnash::TIMEOUT = 10