Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

flash.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PLUGIN_NAME   "Shockwave Flash"
#define FLASH_VERSION_STRING   "Version 0.4.10"
#define FLASH_WAKEUP   0x01
#define FLASH_EVENT   0x02
#define FLASH_CMD   0x04
#define FLASH_CMD_MASK   0xf0
#define FLASH_STOP   0x10
#define FLASH_CONT   0x20
#define FLASH_REWIND   0x30
#define FLASH_STEP   0x40
#define FLASH_STATUS_WAKEUP   0x01
#define PLAYER_LOOP   (1<<0)
#define PLAYER_QUALITY   (1<<1)
#define PLAYER_MENU   (1<<2)
#define FLASH_PARSE_ERROR   0
#define FLASH_PARSE_START   1
#define FLASH_PARSE_NEED_DATA   2
#define FLASH_PARSE_EOM   4
#define FLASH_PARSE_WAKEUP   8
#define FLASH_PARSE_OOM   16

Typedefs

typedef void * FlashHandle
typedef FlashEvent FlashEvent
typedef FlashDisplay FlashDisplay

Enumerations

enum  FlashEventType {
  FeNone, FeMouseMove, FeButtonPress, FeButtonRelease,
  FeRefresh, FeKeyPress, FeKeyRelease
}
enum  FlashKey {
  FeKeyUp = 1, FeKeyDown, FeKeyLeft, FeKeyRight,
  FeKeyEnter, FeKeyNext
}

Functions

FlashHandle FlashNew ()
void FlashGetInfo (FlashHandle fh, struct FlashInfo *fi)
long FlashGraphicInit (FlashHandle fh, FlashDisplay *fd)
void FlashSoundInit (FlashHandle fh, char *device)
int FlashParse (FlashHandle fh, int level, char *data, long size)
long FlashExec (FlashHandle fh, long flag, FlashEvent *fe, struct timeval *wakeDate)
void FlashClose (FlashHandle fh)
void FlashSetGetUrlMethod (FlashHandle flashHandle, void(*getUrl)(char *, char *, void *), void *)
void FlashSetGetSwfMethod (FlashHandle flashHandle, void(*getSwf)(char *url, int level, void *clientData), void *clientData)
void FlashSetCursorOnOffMethod (FlashHandle flashHandle, void(*cursorOnOff)(int, void *), void *clientData)
void FlashZoom (FlashHandle fh, int zoom)
void FlashOffset (FlashHandle fh, int x, int y)
void FlashSettings (FlashHandle fh, long settings)


Define Documentation

#define FLASH_CMD   0x04
 

Definition at line 29 of file flash.h.

#define FLASH_CMD_MASK   0xf0
 

Definition at line 32 of file flash.h.

Referenced by FlashExec().

#define FLASH_CONT   0x20
 

Definition at line 35 of file flash.h.

Referenced by FlashExec().

#define FLASH_EVENT   0x02
 

Definition at line 28 of file flash.h.

Referenced by FlashExec(), and LibFlashPlugin::videoReadScaledFrame().

#define FLASH_PARSE_EOM   4
 

Definition at line 59 of file flash.h.

Referenced by CInputScript::ParseTags().

#define FLASH_PARSE_ERROR   0
 

Definition at line 56 of file flash.h.

Referenced by FlashParse(), and CInputScript::ParseData().

#define FLASH_PARSE_NEED_DATA   2
 

Definition at line 58 of file flash.h.

Referenced by LibFlashPlugin::open(), CInputScript::ParseData(), and CInputScript::ParseTags().

#define FLASH_PARSE_OOM   16
 

Definition at line 61 of file flash.h.

Referenced by CInputScript::ParseTags().

#define FLASH_PARSE_START   1
 

Definition at line 57 of file flash.h.

Referenced by FlashParse(), and CInputScript::ParseData().

#define FLASH_PARSE_WAKEUP   8
 

Definition at line 60 of file flash.h.

Referenced by CInputScript::ParseTags().

#define FLASH_REWIND   0x30
 

Definition at line 36 of file flash.h.

Referenced by FlashExec().

#define FLASH_STATUS_WAKEUP   0x01
 

Definition at line 40 of file flash.h.

Referenced by FlashExec().

#define FLASH_STEP   0x40
 

Definition at line 37 of file flash.h.

Referenced by FlashExec().

#define FLASH_STOP   0x10
 

Definition at line 34 of file flash.h.

Referenced by FlashExec().

#define FLASH_VERSION_STRING   "Version 0.4.10"
 

Definition at line 24 of file flash.h.

Referenced by LibFlashPlugin::pluginComment(), and LibFlashPlugin::pluginName().

#define FLASH_WAKEUP   0x01
 

Definition at line 27 of file flash.h.

Referenced by FlashExec(), and LibFlashPlugin::videoReadScaledFrame().

#define PLAYER_LOOP   (1<<0)
 

Definition at line 51 of file flash.h.

Referenced by Program::processMovie().

#define PLAYER_MENU   (1<<2)
 

Definition at line 53 of file flash.h.

#define PLAYER_QUALITY   (1<<1)
 

Definition at line 52 of file flash.h.

#define PLUGIN_NAME   "Shockwave Flash"
 

Definition at line 23 of file flash.h.

Referenced by LibFlashPlugin::pluginComment(), and LibFlashPlugin::pluginName().


Typedef Documentation

typedef struct FlashDisplay FlashDisplay
 

typedef struct FlashEvent FlashEvent
 

typedef void* FlashHandle
 

Definition at line 63 of file flash.h.


Enumeration Type Documentation

enum FlashEventType
 

Enumeration values:
FeNone 
FeMouseMove 
FeButtonPress 
FeButtonRelease 
FeRefresh 
FeKeyPress 
FeKeyRelease 

Definition at line 69 of file flash.h.

enum FlashKey
 

Enumeration values:
FeKeyUp 
FeKeyDown 
FeKeyLeft 
FeKeyRight 
FeKeyEnter 
FeKeyNext 

Definition at line 80 of file flash.h.


Function Documentation

void FlashClose FlashHandle  fh  ) 
 

Definition at line 247 of file flash.cc.

Referenced by LibFlashPlugin::close().

long FlashExec FlashHandle  fh,
long  flag,
FlashEvent fe,
struct timeval *  wakeDate
 

Definition at line 142 of file flash.cc.

References checkFlashTimer(), Program::continueMovie(), FeMouseMove, FLASH_CMD_MASK, FLASH_CONT, FLASH_EVENT, FLASH_REWIND, FLASH_STATUS_WAKEUP, FLASH_STEP, FLASH_STOP, FLASH_WAKEUP, FlashMovie::gd, FlashMovie::handleEvent(), FlashMovie::main, FlashMovie::msPerFrame, Program::nbFrames, Program::nextStepMovie(), NULL, Program::pauseMovie(), FlashMovie::processMovie(), CInputScript::program, Program::rewindMovie(), FlashMovie::scheduledEvent, FlashMovie::scheduledTime, setFlashTimer(), FlashMovie::sm, and FlashEvent::type.

Referenced by LibFlashPlugin::videoReadScaledFrame().

void FlashGetInfo FlashHandle  fh,
struct FlashInfo fi
 

Definition at line 72 of file flash.cc.

References CInputScript::frameCount, FlashInfo::frameCount, FlashInfo::frameHeight, CInputScript::frameRate, FlashInfo::frameRate, CInputScript::frameRect, FlashInfo::frameWidth, CInputScript::m_fileVersion, FlashMovie::main, FlashInfo::version, Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

Referenced by LibFlashPlugin::open().

long FlashGraphicInit FlashHandle  fh,
FlashDisplay fd
 

Definition at line 85 of file flash.cc.

References FlashDisplay::bpp, CInputScript::frameRect, FlashMovie::gd, FlashMovie::main, GraphicDevice::setMovieDimension(), Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

Referenced by LibFlashPlugin::open().

FlashHandle FlashNew  ) 
 

Definition at line 36 of file flash.cc.

References FlashMovie::main.

Referenced by LibFlashPlugin::open().

void FlashOffset FlashHandle  fh,
int  x,
int  y
 

Definition at line 132 of file flash.cc.

References FlashMovie::gd, and GraphicDevice::setMovieOffset().

int FlashParse FlashHandle  fh,
int  level,
char *  data,
long  size
 

Definition at line 48 of file flash.cc.

References FLASH_PARSE_ERROR, FLASH_PARSE_START, CInputScript::level, FlashMovie::main, CInputScript::next, NULL, CInputScript::ParseData(), CInputScript::program, and Program::rewindMovie().

Referenced by getSwf(), and LibFlashPlugin::open().

void FlashSetCursorOnOffMethod FlashHandle  flashHandle,
void(*)(int, void *)  cursorOnOff,
void *  clientData
 

Definition at line 225 of file flash.cc.

References FlashMovie::cursorOnOff, and FlashMovie::cursorOnOffClientData.

void FlashSetGetSwfMethod FlashHandle  flashHandle,
void(*)(char *url, int level, void *clientData)  getSwf,
void *  clientData
 

Definition at line 213 of file flash.cc.

References FlashMovie::getSwf, and FlashMovie::getSwfClientData.

Referenced by LibFlashPlugin::open().

void FlashSetGetUrlMethod FlashHandle  flashHandle,
void(*)(char *, char *, void *)  getUrl,
void * 
 

Definition at line 236 of file flash.cc.

References FlashMovie::getUrl, and FlashMovie::getUrlClientData.

Referenced by LibFlashPlugin::open().

void FlashSettings FlashHandle  fh,
long  settings
 

Definition at line 257 of file flash.cc.

References FlashMovie::main, Program::modifySettings(), and CInputScript::program.

void FlashSoundInit FlashHandle  fh,
char *  device
 

Definition at line 112 of file flash.cc.

References FlashMovie::sm.

Referenced by LibFlashPlugin::open().

void FlashZoom FlashHandle  fh,
int  zoom
 

Definition at line 122 of file flash.cc.

References FlashMovie::gd, and GraphicDevice::setMovieZoom().


Generated on Sat Nov 5 16:23:43 2005 for OPIE by  doxygen 1.4.2