GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
swf_dev.h File Reference
#include <gpac/scene_manager.h>
#include <gpac/color.h>
#include <gpac/media_tools.h>
+ Include dependency graph for swf_dev.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  DispShape
 
struct  SWFReader
 
struct  SWFRec
 
struct  SWFPath
 
struct  SWFShapeRec
 
struct  SWFShape
 
struct  SWFFont
 
struct  SWFGlyphRec
 
struct  SWFText
 
struct  SWFEditText
 
struct  SWFSound
 
struct  SWF_ButtonRecord
 
struct  SWF_Button
 
struct  SWFAction
 

Macros

#define SWF_TWIP_SCALE   (1/20.0f)
 

Enumerations

enum  { SWF_PLACE, SWF_REPLACE, SWF_MOVE }
 
enum  { SWF_SND_UNCOMP = 0, SWF_SND_ADPCM, SWF_SND_MP3 }
 
enum  {
  GF_SWF_AS3_GOTO_FRAME, GF_SWF_AS3_GET_URL, GF_SWF_AS3_NEXT_FRAME, GF_SWF_AS3_PREV_FRAME,
  GF_SWF_AS3_PLAY, GF_SWF_AS3_STOP, GF_SWF_AS3_TOGGLE_QUALITY, GF_SWF_AS3_STOP_SOUNDS,
  GF_SWF_AS3_WAIT_FOR_FRAME, GF_SWF_AS3_SET_TARGET, GF_SWF_AS3_GOTO_LABEL
}
 
enum  {
  GF_SWF_COND_IDLE_TO_OVERDOWN = 1, GF_SWF_COND_OUTDOWN_TO_IDLE = 1<<1, GF_SWF_COND_OUTDOWN_TO_OVERDOWN = 1<<2, GF_SWF_COND_OVERDOWN_TO_OUTDOWN = 1<<3,
  GF_SWF_COND_OVERDOWN_TO_OUTUP = 1<<4, GF_SWF_COND_OVERUP_TO_OVERDOWN = 1<<5, GF_SWF_COND_OVERUP_TO_IDLE = 1<<6, GF_SWF_COND_IDLE_TO_OVERUP = 1<<7,
  GF_SWF_COND_OVERDOWN_TO_IDLE = 1<<8
}
 

Functions

void swf_report (SWFReader *read, GF_Err e, char *format,...)
 
SWFFontswf_find_font (SWFReader *read, u32 fontID)
 
GF_Err swf_parse_sprite (SWFReader *read)
 
GF_Err swf_parse_tag (SWFReader *read)
 
GF_Err swf_to_bifs_init (SWFReader *read)
 
GF_Err swf_to_svg_init (SWFReader *read, u32 flags, Float angle)
 
SWFReadergf_swf_reader_new (const char *path, const char *filename)
 
GF_Err gf_swf_read_header (SWFReader *read)
 
void gf_swf_reader_del (SWFReader *read)
 
GF_Err gf_swf_reader_set_user_mode (SWFReader *read, void *user, GF_Err(*add_sample)(void *user, const char *data, u32 length, u64 timestamp, Bool isRap), GF_Err(*add_header)(void *user, const char *data, u32 length))
 

Data Structure Documentation

struct DispShape
+ Collaboration diagram for DispShape:
Data Fields
GF_Matrix2D mat
GF_ColorMatrix cmat
u32 depth
u32 char_id
struct SWFRec
+ Collaboration diagram for SWFRec:
Data Fields
Fixed x
Fixed y
Fixed w
Fixed h
struct SWFPath
+ Collaboration diagram for SWFPath:
Data Fields
u32 nbType
u32 * types
SFVec2f * pts
u32 nbPts
u32 * idx
struct SWFShapeRec
+ Collaboration diagram for SWFShapeRec:
Data Fields
u32 type
u32 solid_col
u32 nbGrad
u32 * grad_col
u8 * grad_ratio
GF_Matrix2D mat
u32 img_id
Fixed width
SWFPath * path
struct SWFShape
+ Collaboration diagram for SWFShape:
Data Fields
GF_List * fill_left
GF_List * fill_right
GF_List * lines
u32 ID
SWFRec rc
struct SWFFont
+ Collaboration diagram for SWFFont:
Data Fields
u32 fontID
u32 nbGlyphs
GF_List * glyphs
u16 * glyph_codes
s16 * glyph_adv
Bool has_layout
Bool has_shiftJIS
Bool is_unicode
Bool is_ansi
Bool is_bold
Bool is_italic
s16 ascent
s16 descent
s16 leading
char * fontName
struct SWFGlyphRec
+ Collaboration diagram for SWFGlyphRec:
Data Fields
u32 fontID
u32 col
u32 fontSize
Fixed orig_x
Fixed orig_y
u32 nbGlyphs
u32 * indexes
Fixed * dx
struct SWFText
+ Collaboration diagram for SWFText:
Data Fields
u32 ID
GF_Matrix2D mat
GF_List * text
struct SWFEditText
+ Collaboration diagram for SWFEditText:
Data Fields
u32 ID
char * init_value
SWFRec bounds
Bool word_wrap
Bool multiline
Bool password
Bool read_only
Bool auto_size
Bool no_select
Bool html
Bool outlines
Bool has_layout
Bool border
u32 color
Fixed max_length
Fixed font_height
u32 fontID
u32 align
Fixed left
Fixed right
Fixed indent
Fixed leading
struct SWFSound
+ Collaboration diagram for SWFSound:
Data Fields
u32 ID
u8 format
u8 sound_rate
u8 bits_per_sample
Bool stereo
u16 sample_count
u32 frame_delay_ms
FILE * output
char * szFileName
Bool is_setup
struct SWF_ButtonRecord
+ Collaboration diagram for SWF_ButtonRecord:
Data Fields
Bool hitTest
Bool down
Bool over
Bool up
u32 character_id
u16 depth
GF_Matrix2D mx
GF_ColorMatrix cmx
Bool skip
struct SWF_Button
+ Collaboration diagram for SWF_Button:
Data Fields
u32 count
SWF_ButtonRecord buttons[40]
u32 ID
struct SWFAction
+ Collaboration diagram for SWFAction:
Data Fields
u32 type
u32 frame_number
u32 button_mask
u32 button_key
char * target
char * url

Macro Definition Documentation

#define SWF_TWIP_SCALE   (1/20.0f)

Enumeration Type Documentation

anonymous enum
Enumerator
SWF_PLACE 
SWF_REPLACE 
SWF_MOVE 
anonymous enum
Enumerator
SWF_SND_UNCOMP 
SWF_SND_ADPCM 
SWF_SND_MP3 
anonymous enum
Enumerator
GF_SWF_AS3_GOTO_FRAME 
GF_SWF_AS3_GET_URL 
GF_SWF_AS3_NEXT_FRAME 
GF_SWF_AS3_PREV_FRAME 
GF_SWF_AS3_PLAY 
GF_SWF_AS3_STOP 
GF_SWF_AS3_TOGGLE_QUALITY 
GF_SWF_AS3_STOP_SOUNDS 
GF_SWF_AS3_WAIT_FOR_FRAME 
GF_SWF_AS3_SET_TARGET 
GF_SWF_AS3_GOTO_LABEL 
anonymous enum
Enumerator
GF_SWF_COND_IDLE_TO_OVERDOWN 
GF_SWF_COND_OUTDOWN_TO_IDLE 
GF_SWF_COND_OUTDOWN_TO_OVERDOWN 
GF_SWF_COND_OVERDOWN_TO_OUTDOWN 
GF_SWF_COND_OVERDOWN_TO_OUTUP 
GF_SWF_COND_OVERUP_TO_OVERDOWN 
GF_SWF_COND_OVERUP_TO_IDLE 
GF_SWF_COND_IDLE_TO_OVERUP 
GF_SWF_COND_OVERDOWN_TO_IDLE 

Function Documentation

void swf_report ( SWFReader read,
GF_Err  e,
char *  format,
  ... 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SWFFont* swf_find_font ( SWFReader read,
u32  fontID 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err swf_parse_sprite ( SWFReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err swf_parse_tag ( SWFReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err swf_to_bifs_init ( SWFReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err swf_to_svg_init ( SWFReader read,
u32  flags,
Float  angle 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SWFReader* gf_swf_reader_new ( const char *  path,
const char *  filename 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_swf_read_header ( SWFReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_swf_reader_del ( SWFReader read)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_swf_reader_set_user_mode ( SWFReader read,
void *  user,
GF_Err(*)(void *user, const char *data, u32 length, u64 timestamp, Bool isRap)  add_sample,
GF_Err(*)(void *user, const char *data, u32 length)  add_header 
)

+ Here is the caller graph for this function: