libgpac
Documentation of the core library of GPAC
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)
 
GF_Err swf_svg_write_text_sample (void *user, const u8 *data, u32 length, u64 timestamp, Bool isRap)
 
GF_Err swf_svg_write_text_header (void *user, const u8 *data, u32 length, Bool isHeader)
 
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_get_duration (SWFReader *read, u32 *frame_rate, u32 *frame_count)
 
GF_Err gf_swf_reader_set_user_mode (SWFReader *read, void *user, GF_Err(*add_sample)(void *user, const u8 *data, u32 length, u64 timestamp, Bool isRap), GF_Err(*add_header)(void *user, const u8 *data, u32 length, Bool isheader))
 

Data Structure Documentation

◆ DispShape

struct DispShape
+ Collaboration diagram for DispShape:
Data Fields
GF_Matrix2D mat
GF_ColorMatrix cmat
u32 depth
u32 char_id

◆ SWFRec

struct SWFRec
Data Fields
Fixed x
Fixed y
Fixed w
Fixed h

◆ SWFPath

struct SWFPath
Data Fields
u32 nbType
u32 * types
SFVec2f * pts
u32 nbPts
u32 * idx

◆ SWFShapeRec

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

◆ SWFShape

struct SWFShape
+ Collaboration diagram for SWFShape:
Data Fields
GF_List * fill_left
GF_List * fill_right
GF_List * lines
u32 ID
SWFRec rc

◆ SWFFont

struct 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

◆ SWFGlyphRec

struct SWFGlyphRec
Data Fields
u32 fontID
u32 col
u32 fontSize
Fixed orig_x
Fixed orig_y
u32 nbGlyphs
u32 * indexes
Fixed * dx

◆ SWFText

struct SWFText
+ Collaboration diagram for SWFText:
Data Fields
u32 ID
GF_Matrix2D mat
GF_List * text

◆ SWFEditText

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

◆ SWFSound

struct 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

◆ SWF_ButtonRecord

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

◆ SWF_Button

struct SWF_Button
+ Collaboration diagram for SWF_Button:
Data Fields
u32 count
SWF_ButtonRecord buttons[40]
u32 ID

◆ SWFAction

struct SWFAction
Data Fields
u32 type
u32 frame_number
u32 button_mask
u32 button_key
char * target
char * url

Macro Definition Documentation

◆ SWF_TWIP_SCALE

#define SWF_TWIP_SCALE   (1/20.0f)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SWF_PLACE 
SWF_REPLACE 
SWF_MOVE 

◆ anonymous enum

anonymous enum
Enumerator
SWF_SND_UNCOMP 
SWF_SND_ADPCM 
SWF_SND_MP3 

◆ anonymous enum

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

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

◆ swf_report()

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:

◆ swf_find_font()

SWFFont* swf_find_font ( SWFReader read,
u32  fontID 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ swf_parse_sprite()

GF_Err swf_parse_sprite ( SWFReader read)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ swf_parse_tag()

GF_Err swf_parse_tag ( SWFReader read)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ swf_to_bifs_init()

GF_Err swf_to_bifs_init ( SWFReader read)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ swf_to_svg_init()

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:

◆ swf_svg_write_text_sample()

GF_Err swf_svg_write_text_sample ( void *  user,
const u8 data,
u32  length,
u64  timestamp,
Bool  isRap 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ swf_svg_write_text_header()

GF_Err swf_svg_write_text_header ( void *  user,
const u8 data,
u32  length,
Bool  isHeader 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_swf_reader_new()

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_swf_read_header()

GF_Err gf_swf_read_header ( SWFReader read)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_swf_reader_del()

void gf_swf_reader_del ( SWFReader read)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_swf_get_duration()

GF_Err gf_swf_get_duration ( SWFReader read,
u32 frame_rate,
u32 frame_count 
)
+ Here is the caller graph for this function:

◆ gf_swf_reader_set_user_mode()

GF_Err gf_swf_reader_set_user_mode ( SWFReader read,
void *  user,
GF_Err(*)(void *user, const u8 *data, u32 length, u64 timestamp, Bool isRap)  add_sample,
GF_Err(*)(void *user, const u8 *data, u32 length, Bool isheader)  add_header 
)
+ Here is the caller graph for this function: