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_bifs.c File Reference
+ Include dependency graph for swf_bifs.c:

Data Structures

struct  S2BBtnRec
 
struct  SWFFlatText
 

Macros

#define SWF_TEXT_SCALE   (1/1024.0f)
 

Functions

static GF_Err s2b_insert_symbol (SWFReader *read, GF_Node *n)
 
static GF_Nodes2b_get_node (SWFReader *read, u32 ID)
 
static GF_Nodes2b_new_node (SWFReader *read, u32 tag)
 
static GF_Nodes2b_get_matrix (SWFReader *read, GF_Matrix2D *mat)
 
static GF_Nodes2b_get_color_matrix (SWFReader *read, GF_ColorMatrix *cmat)
 
static SFColor s2b_get_color (u32 ARGB)
 
static Fixed s2b_get_alpha (u32 ARGB)
 
static void s2b_insert_appearance (SWFReader *read, GF_Node *app)
 
static Bool s2b_same_color (SFColor c1, SFColor c2)
 
static GF_Nodes2b_get_appearance (SWFReader *read, GF_Node *parent, u32 fill_col, Fixed line_width, u32 l_col)
 
static GF_Rect s2b_get_center_bounds (SWFShape *shape, SWFShapeRec *srec)
 
static GF_Nodes2b_get_gradient (SWFReader *read, GF_Node *parent, SWFShape *shape, SWFShapeRec *srec)
 
static GF_Nodes2b_get_bitmap (SWFReader *read, GF_Node *parent, SWFShape *shape, SWFShapeRec *srec)
 
static void s2b_set_appearance (SWFReader *read, SWFShape *shape, M_Shape *n, SWFShapeRec *srec, Bool is_fill)
 
static GF_Nodes2b_shape_to_curve2d (SWFReader *read, SWFShape *shape, SWFShapeRec *srec, Bool is_fill, M_Coordinate2D *c)
 
static void s2b_merge_curve2d (M_Curve2D *s, M_Curve2D *tomerge)
 
static void s2b_insert_shape (M_OrderedGroup *og, M_Shape *n, Bool is_proto)
 
static void s2b_insert_rec_in_coord (M_Coordinate2D *c, SWFShapeRec *srec)
 
static GF_Err swf_bifs_define_shape (SWFReader *read, SWFShape *shape, SWFFont *parent_font, Bool last_sub_shape)
 
static GF_Nodes2b_get_glyph (SWFReader *read, u32 fontID, u32 gl_index, GF_Node *par)
 
static GF_Err swf_bifs_define_text (SWFReader *read, SWFText *text)
 
static void swf_nstart (void *sax_cbck, const char *node_name, const char *name_space, const GF_XMLAttribute *attributes, u32 nb_attributes)
 
static void swf_nend (void *sax_cbck, const char *node_name, const char *name_space)
 
static void swf_ntext (void *sax_cbck, const char *content, Bool is_cdata)
 
static GF_Err swf_bifs_define_edit_text (SWFReader *read, SWFEditText *text)
 
static void swf_bifs_end_of_clip (SWFReader *read)
 
static Bool swf_bifs_allocate_depth (SWFReader *read, u32 depth)
 
static GF_Err swf_init_od (SWFReader *read, Bool root_only)
 
static GF_Err swf_insert_od (SWFReader *read, u32 at_time, GF_ObjectDescriptor *od)
 
static u16 swf_get_od_id (SWFReader *read)
 
static u16 swf_get_es_id (SWFReader *read)
 
static GF_Err swf_bifs_define_sprite (SWFReader *read, u32 nb_frames)
 
static GF_Err swf_bifs_setup_sound (SWFReader *read, SWFSound *snd, Bool soundstream_first_block)
 
static GF_Err swf_bifs_setup_image (SWFReader *read, u32 ID, char *fileName)
 
static GF_Nodes2b_wrap_node (SWFReader *read, GF_Node *node, GF_Matrix2D *mat, GF_ColorMatrix *cmat)
 
static void s2b_set_field (SWFReader *read, GF_List *dst, GF_Node *n, char *fieldName, s32 pos, u32 type, void *val, Bool insert)
 
static GF_Err swf_bifs_set_backcol (SWFReader *read, u32 xrgb)
 
static GF_Err swf_bifs_start_sound (SWFReader *read, SWFSound *snd, Bool stop)
 
static void s2b_control_sprite (SWFReader *read, GF_List *dst, u32 ID, Bool stop, Bool set_time, SFTime mediaStartTime, Bool rev_order)
 
static GF_Err swf_bifs_place_obj (SWFReader *read, u32 depth, u32 ID, u32 prev_id, u32 type, GF_Matrix2D *mat, GF_ColorMatrix *cmat, GF_Matrix2D *prev_mat, GF_ColorMatrix *prev_cmat)
 
static GF_Err swf_bifs_remove_obj (SWFReader *read, u32 depth, u32 ID)
 
static GF_Err swf_bifs_show_frame (SWFReader *read)
 
static GF_Nodes2b_button_add_child (SWFReader *read, GF_Node *button, u32 tag, char *def_name, s32 pos)
 
static void s2b_button_add_route (SWFReader *read, GF_Node *fromNode, u32 fromField, GF_Node *toNode, u32 toField)
 
static GF_Err swf_bifs_define_button (SWFReader *read, SWF_Button *btn)
 
static void swf_bifs_finalize (SWFReader *read)
 
Bool swf_bifs_action (SWFReader *read, SWFAction *act)
 
GF_Err swf_to_bifs_init (SWFReader *read)
 

Data Structure Documentation

struct S2BBtnRec
+ Collaboration diagram for S2BBtnRec:
Data Fields
u32 btn_id
u32 sprite_up_id
struct SWFFlatText
+ Collaboration diagram for SWFFlatText:
Data Fields
char * final
u32 len

Macro Definition Documentation

#define SWF_TEXT_SCALE   (1/1024.0f)

Function Documentation

static GF_Err s2b_insert_symbol ( SWFReader read,
GF_Node n 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_get_node ( SWFReader read,
u32  ID 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_new_node ( SWFReader read,
u32  tag 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_get_matrix ( SWFReader read,
GF_Matrix2D mat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_get_color_matrix ( SWFReader read,
GF_ColorMatrix cmat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static SFColor s2b_get_color ( u32  ARGB)
static

+ Here is the caller graph for this function:

static Fixed s2b_get_alpha ( u32  ARGB)
static

+ Here is the caller graph for this function:

static void s2b_insert_appearance ( SWFReader read,
GF_Node app 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool s2b_same_color ( SFColor  c1,
SFColor  c2 
)
static

+ Here is the caller graph for this function:

static GF_Node* s2b_get_appearance ( SWFReader read,
GF_Node parent,
u32  fill_col,
Fixed  line_width,
u32  l_col 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Rect s2b_get_center_bounds ( SWFShape shape,
SWFShapeRec srec 
)
static

+ Here is the caller graph for this function:

static GF_Node* s2b_get_gradient ( SWFReader read,
GF_Node parent,
SWFShape shape,
SWFShapeRec srec 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_get_bitmap ( SWFReader read,
GF_Node parent,
SWFShape shape,
SWFShapeRec srec 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_set_appearance ( SWFReader read,
SWFShape shape,
M_Shape n,
SWFShapeRec srec,
Bool  is_fill 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_shape_to_curve2d ( SWFReader read,
SWFShape shape,
SWFShapeRec srec,
Bool  is_fill,
M_Coordinate2D c 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_merge_curve2d ( M_Curve2D s,
M_Curve2D tomerge 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_insert_shape ( M_OrderedGroup og,
M_Shape n,
Bool  is_proto 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_insert_rec_in_coord ( M_Coordinate2D c,
SWFShapeRec srec 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_define_shape ( SWFReader read,
SWFShape shape,
SWFFont parent_font,
Bool  last_sub_shape 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_get_glyph ( SWFReader read,
u32  fontID,
u32  gl_index,
GF_Node par 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_define_text ( SWFReader read,
SWFText text 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void swf_nstart ( void *  sax_cbck,
const char *  node_name,
const char *  name_space,
const GF_XMLAttribute attributes,
u32  nb_attributes 
)
static

+ Here is the caller graph for this function:

static void swf_nend ( void *  sax_cbck,
const char *  node_name,
const char *  name_space 
)
static

+ Here is the caller graph for this function:

static void swf_ntext ( void *  sax_cbck,
const char *  content,
Bool  is_cdata 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_define_edit_text ( SWFReader read,
SWFEditText text 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void swf_bifs_end_of_clip ( SWFReader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool swf_bifs_allocate_depth ( SWFReader read,
u32  depth 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_init_od ( SWFReader read,
Bool  root_only 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_insert_od ( SWFReader read,
u32  at_time,
GF_ObjectDescriptor od 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u16 swf_get_od_id ( SWFReader read)
static

+ Here is the caller graph for this function:

static u16 swf_get_es_id ( SWFReader read)
static

+ Here is the caller graph for this function:

static GF_Err swf_bifs_define_sprite ( SWFReader read,
u32  nb_frames 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_setup_sound ( SWFReader read,
SWFSound snd,
Bool  soundstream_first_block 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_setup_image ( SWFReader read,
u32  ID,
char *  fileName 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_wrap_node ( SWFReader read,
GF_Node node,
GF_Matrix2D mat,
GF_ColorMatrix cmat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_set_field ( SWFReader read,
GF_List *  dst,
GF_Node n,
char *  fieldName,
s32  pos,
u32  type,
void *  val,
Bool  insert 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_set_backcol ( SWFReader read,
u32  xrgb 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_start_sound ( SWFReader read,
SWFSound snd,
Bool  stop 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_control_sprite ( SWFReader read,
GF_List *  dst,
u32  ID,
Bool  stop,
Bool  set_time,
SFTime  mediaStartTime,
Bool  rev_order 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_place_obj ( SWFReader read,
u32  depth,
u32  ID,
u32  prev_id,
u32  type,
GF_Matrix2D mat,
GF_ColorMatrix cmat,
GF_Matrix2D prev_mat,
GF_ColorMatrix prev_cmat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_remove_obj ( SWFReader read,
u32  depth,
u32  ID 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_show_frame ( SWFReader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* s2b_button_add_child ( SWFReader read,
GF_Node button,
u32  tag,
char *  def_name,
s32  pos 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void s2b_button_add_route ( SWFReader read,
GF_Node fromNode,
u32  fromField,
GF_Node toNode,
u32  toField 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err swf_bifs_define_button ( SWFReader read,
SWF_Button btn 
)
static

isActive handler

isOver handler

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void swf_bifs_finalize ( SWFReader read)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool swf_bifs_action ( SWFReader read,
SWFAction act 
)

+ 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: