search for: swfdecspriteaction

Displaying 12 results from an estimated 12 matches for "swfdecspriteaction".

2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...9,32 +59,18 @@ swfdec_sprite_dispose (GObject *object) if (sprite->frames[i].sound_block) { swfdec_buffer_unref (sprite->frames[i].sound_block); } - if (sprite->frames[i].actions) { - guint j; - for (j = 0; j < sprite->frames[i].actions->len; j++) { - SwfdecSpriteAction *action = - &g_array_index (sprite->frames[i].actions, SwfdecSpriteAction, j); - switch (action->type) { - case SWFDEC_SPRITE_ACTION_SCRIPT: - swfdec_script_unref (action->data); - break; - case SWFDEC_SPRITE_ACTION_ADD: - case SWFDEC_SPRITE_ACTION_UPDATE...
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...= SWFDEC_SPRITE (object); - SwfdecRootSprite *root = SWFDEC_ROOT_SPRITE (object); - guint i,j; - - if (root->root_actions) { - for (i = 0; i < sprite->n_frames; i++) { - GArray *array = root->root_actions[i]; - if (array) { - for (j = 0; j < array->len; j++) { - SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j); - - switch (action->type) { - case SWFDEC_ROOT_ACTION_EXPORT: - { - SwfdecRootExportData *data = action->data; - g_free (data->name); - g_object_unref (data->character); - g_free (data); - } - break...
2007 Mar 09
0
libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h
...= SWFDEC_SPRITE (object); + SwfdecRootSprite *root = SWFDEC_ROOT_SPRITE (object); + guint i,j; + + if (root->root_actions) { + for (i = 0; i < sprite->n_frames; i++) { + GArray *array = root->root_actions[i]; + if (array) { + for (j = 0; j < array->len; j++) { + SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, j); + + switch (action->type) { + case SWFDEC_ROOT_ACTION_EXPORT: + { + SwfdecRootExportData *data = action->data; + g_free (data->name); + g_object_unref (data->character); + g_free (data); + } + break...
2007 Jun 19
0
Branch 'as' - test/dump.c
...LL) { sound = frame->sound_head; @@ -105,40 +105,55 @@ dump_sprite (SwfdecSprite *s) SWFDEC_AUDIO_OUT_IS_STEREO (sound->original_format) ? "mono" : "stereo", sound->width ? 16 : 8); } - for (j = 0; j < frame->actions->len; j++) { - SwfdecSpriteAction *action = - &g_array_index (frame->actions, SwfdecSpriteAction, j); - switch (action->type) { - case SWFDEC_SPRITE_ACTION_SCRIPT: - g_print (" %4u script\n", i); - break; - case SWFDEC_SPRITE_ACTION_REMOVE: - g_print (" %4u %4d remove\n", i, GPOI...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...r (i = sprite->parse_frame; i <= sprite->parse_frame /* wait for underflow */; i--) { - SwfdecSpriteFrame *frame = &sprite->frames[i]; - if (frame->actions == NULL) - continue; - for (j = frame->actions->len - 1; j < frame->actions->len; j--) { - SwfdecSpriteAction *action = - &g_array_index (frame->actions, SwfdecSpriteAction, j); - switch (action->type) { - case SWFDEC_SPRITE_ACTION_SCRIPT: - break; - case SWFDEC_SPRITE_ACTION_ADD: - case SWFDEC_SPRITE_ACTION_UPDATE: - content = action->data; - if (content->depth == depth) -...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...LOG ("performing root actions for frame %u", root->root_actions_performed); root->root_actions_performed++; + if (!sprite->root_actions) + return; + array = sprite->root_actions[frame]; + if (array == NULL) + return; + for (i = 0; i < array->len; i++) { + SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, i); + switch (action->type) { + case SWFDEC_ROOT_ACTION_INIT_SCRIPT: + swfdec_script_execute (action->data, SWFDEC_SCRIPTABLE (root)); + break; + case SWFDEC_ROOT_ACTION_EXPORT: + break; + default: + g_assert_not_reach...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...dec_sprite.h index 1968d1a..5ac0bf8 100644 --- a/libswfdec/swfdec_sprite.h +++ b/libswfdec/swfdec_sprite.h @@ -63,7 +63,6 @@ struct _SwfdecSpriteFrame GSList *sound; /* list of SwfdecSoundChunk events to start playing here */ /* visuals */ - SwfdecColor bg_color; GArray *actions; /* SwfdecSpriteAction in execution order */ }; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 36cbd8f..1cc2f0b 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -142,11 +142,6 @@ swfdec_sprite_movie_do_goto_frame (Swfde start = movie->c...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...- * that might modify the frame you're looking for */ -static SwfdecContent * -swfdec_content_find (SwfdecSprite *sprite, int depth) -{ - return g_hash_table_lookup (sprite->live_content, GINT_TO_POINTER (depth)); -} - -static void -swfdec_content_update_lifetime (SwfdecSprite *sprite, - SwfdecSpriteActionType type, gpointer data) -{ - SwfdecContent *content; - int depth; - switch (type) { - case SWFDEC_SPRITE_ACTION_SCRIPT: - case SWFDEC_SPRITE_ACTION_UPDATE: - return; - case SWFDEC_SPRITE_ACTION_ADD: - depth = ((SwfdecContent *) data)->depth; - break; - case SWFDEC_...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...h table change in SwfdecSwfDecoder that change was not supposed to exist in the repos yet actually test something here fix swfdec_value_to_frame to handle weird cases add GotoFrame2 test seems I'm too stupid to really add files add debugging output make SwfdecSpriteAction type be a uint so we can use different enums add SwfdecRootSprite - a sprite that manages "root actions" exports are no longer handled in the SwfDecoder remove any mention of character data and SwfdecSpriteInfo use the right variable here omit object name for...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...h table change in SwfdecSwfDecoder that change was not supposed to exist in the repos yet actually test something here fix swfdec_value_to_frame to handle weird cases add GotoFrame2 test seems I'm too stupid to really add files add debugging output make SwfdecSpriteAction type be a uint so we can use different enums add SwfdecRootSprite - a sprite that manages "root actions" exports are no longer handled in the SwfDecoder remove any mention of character data and SwfdecSpriteInfo use the right variable here omit object name for...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...*/ - /* FIXME: check case sensitivity wrt embedding movies of different version */ - JS_SetContextCaseSensitive (movie->player->jscx, - SWFDEC_SWF_DECODER (movie->decoder)->version > 6); - } return TRUE; } @@ -243,7 +235,7 @@ swfdec_root_movie_perform_root_actions ( SwfdecSpriteAction *action = &g_array_index (array, SwfdecSpriteAction, i); switch (action->type) { case SWFDEC_ROOT_ACTION_INIT_SCRIPT: - swfdec_script_execute (action->data, SWFDEC_SCRIPTABLE (root)); + swfdec_as_object_run (SWFDEC_AS_OBJECT (root), action->data); break; case SWFDE...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...player_internal.h" +#include "swfdec_script.h" #include "swfdec_sound.h" #include "swfdec_sprite_movie.h" #include "swfdec_swf_decoder.h" @@ -65,7 +65,7 @@ swfdec_sprite_dispose (GObject *object) &g_array_index (sprite->frames[i].actions, SwfdecSpriteAction, j); switch (action->type) { case SWFDEC_SPRITE_ACTION_SCRIPT: - swfdec_compiler_destroy_script (sprite->player, action->data); + swfdec_script_unref (action->data); break; case SWFDEC_SPRITE_ACTION_ADD: case SWFDEC_SPRITE_ACTION_UPDATE: diff --...