search for: swfdec_sprite_movie_goto

Displaying 20 results from an estimated 21 matches for "swfdec_sprite_movie_goto".

2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...string (context, name); + constructor = swfdec_player_get_export_class (SWFDEC_PLAYER (context), + name); + } } + if (constructor == NULL) + constructor = SWFDEC_PLAYER (context)->MovieClip; + swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (movie), constructor, FALSE); swfdec_sprite_movie_goto (movie, 1); if (!swfdec_sprite_movie_iterate_end (mov)) { diff-tree b5472cbe1dd631b9c0d0c2e36dc93f83b1db4108 (from 0e96b023aba5b5548d22679a5fdffcc0ebce13e5) Author: Benjamin Otte <otte at gnome.org> Date: Sun Jun 24 17:40:00 2007 +0200 rework movie->frame and movie->n_frames...
2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
...fdecMovie return TRUE; } +static GList * +my_g_list_split (GList *list, GList *split) +{ + GList *prev; + + if (split == NULL) + return list; + + prev = split->prev; + if (prev == NULL) + return NULL; + prev->next = NULL; + split->prev = NULL; + return list; +} + void swfdec_sprite_movie_goto (SwfdecSpriteMovie *movie, guint goto_frame) { @@ -377,9 +393,22 @@ swfdec_sprite_movie_goto (SwfdecSpriteMo SWFDEC_DEBUG ("performing goto %u -> %u for character %u", movie->frame, goto_frame, SWFDEC_CHARACTER (movie->sprite)->id); if (goto_frame < movie-&gt...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...+ for (walk = SWFDEC_MOVIE (movie)->list; walk; walk = walk->next) { + SwfdecMovie *cur = walk->data; + if (frame < cur->content->sequence->start || + frame >= cur->content->sequence->end) + swfdec_movie_tell_about_removal (cur); + } +} + +static void +swfdec_sprite_movie_goto (SwfdecMovie *mov, guint goto_frame) { - SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (moviep); - SwfdecMovie *mov = moviep; - unsigned int goto_frame = GPOINTER_TO_UINT (data); + SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov); + SwfdecPlayer *player; GList *old, *walk; guint i,...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...Sun May 27 20:15:22 2007 +0200 don't crash if a DefineSprite has no ShowFrame tag diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 319c878..3e25eb9 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -166,8 +166,8 @@ swfdec_sprite_movie_goto (SwfdecMovie *m g_assert (goto_frame < mov->n_frames); if (goto_frame >= movie->sprite->parse_frame) { - SWFDEC_WARNING ("jumping to not-yet-loaded frame %u (loaded: %u)", - goto_frame, movie->sprite->parse_frame); + SWFDEC_WARNING ("jumping to not-...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...vie->frame + 1); - SwfdecSpriteMovie *movie = swfdec_action_get_target (cx); - if (movie) { ++ if (SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) { ++ SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (cx->frame->target); + if (movie->frame < movie->n_frames) { + swfdec_sprite_movie_goto (movie, movie->frame + 1); } else { SWFDEC_INFO ("can't execute nextFrame, already at last frame"); } @@@ -88,10 -109,10 +88,10 @@@ static void swfdec_action_previous_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { - if (SWFDEC...
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
...me >= cur->content->sequence->end) - swfdec_movie_tell_about_removal (cur); + if (G_OBJECT_TYPE (movie) != G_OBJECT_TYPE (with)) { + SWFDEC_FIXME ("this should work, shouldn't it?"); + return FALSE; } + + return TRUE; } static void @@ -163,12 +127,10 @@ swfdec_sprite_movie_goto (SwfdecMovie *m { SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov); SwfdecPlayer *player; - GList *old, *walk; + GList *old; guint i, j, start; g_assert (goto_frame < mov->n_frames); - if (movie->sprite == NULL) - return; if (goto_frame >= movie->sprite-&g...
2007 Aug 26
0
9 commits - libswfdec-gtk/swfdec_source.c libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c test/dump.c test/Makefile.am
...tructor == NULL) + constructor = SWFDEC_PLAYER (context)->MovieClip; + + swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (movie), constructor); +} + +static void +swfdec_sprite_movie_init_movie (SwfdecMovie *movie) +{ + swfdec_sprite_movie_do_init_movie (SWFDEC_SPRITE_MOVIE (movie)); + swfdec_sprite_movie_goto (SWFDEC_SPRITE_MOVIE (movie), 1); +} + +static void swfdec_sprite_movie_iterate (SwfdecMovie *mov) { SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov); @@ -501,6 +536,9 @@ swfdec_sprite_movie_iterate (SwfdecMovie if (mov->will_be_removed) return; + if (movie->sprite != NULL...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...ovie_dispose (GObject *object) } static void -swfdec_sprite_movie_do_enter_frame (gpointer movie, gpointer unused) +swfdec_sprite_movie_init_movie (SwfdecMovie *movie) { - if (SWFDEC_MOVIE (movie)->will_be_removed) - return; - swfdec_movie_execute_script (movie, SWFDEC_EVENT_ENTER); + swfdec_sprite_movie_goto (SWFDEC_SPRITE_MOVIE (movie), 1); } static void -swfdec_sprite_movie_do_init_movie (SwfdecSpriteMovie *movie) +swfdec_sprite_movie_add (SwfdecAsObject *object) { - SwfdecMovie *mov = SWFDEC_MOVIE (movie); - SwfdecAsContext *context = SWFDEC_AS_OBJECT (movie)->context; - SwfdecAsObject *c...
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
...3,7 @@ swfdec_sprite_movie_init_movie (SwfdecMo if (constructor == NULL) constructor = SWFDEC_PLAYER (context)->MovieClip; - swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (movie), constructor, FALSE); + swfdec_as_object_set_constructor (SWFDEC_AS_OBJECT (movie), constructor); swfdec_sprite_movie_goto (movie, 1); if (!swfdec_sprite_movie_iterate_end (mov)) { g_assert_not_reached (); diff --git a/libswfdec/swfdec_video_movie.c b/libswfdec/swfdec_video_movie.c index 60676e0..eeb137c 100644 --- a/libswfdec/swfdec_video_movie.c +++ b/libswfdec/swfdec_video_movie.c @@ -100,7 +100,7 @@ swfdec_...
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...ngth invalid (is %u, should be 2", len); return; } - frame = GUINT16_FROM_LE (*((guint16 *) data)); + frame = (data[0] | data[1] << 8); if (SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) { SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (cx->frame->target); swfdec_sprite_movie_goto (movie, frame + 1); @@ -225,7 +225,7 @@ swfdec_script_skip_actions (SwfdecAsContext *cx, guint jump) if (*pc & 0x80) { if (pc + 2 >= endpc) break; - pc += 3 + GUINT16_FROM_LE (*((guint16 *) (pc + 1))); + pc += 3 + (pc[1] | (pc[2] << 8)); } else { pc+...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...awing state */ SwfdecMovie * mask_of; /* movie this movie is a mask of or NULL if none */ diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 1a7b6d5..a9f99a7 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -518,7 +518,7 @@ swfdec_sprite_movie_goto (SwfdecSpriteMovie *movie, guint goto_frame) mov = SWFDEC_MOVIE (movie); /* lots of things where we've got nothing to do */ if (goto_frame == 0 || goto_frame > movie->n_frames || - movie->sprite == NULL || mov->will_be_removed || goto_frame == movie->frame) +...
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
...ite_movie_remove_child (mov, GPOINTER_TO_INT (action->data))) - SWFDEC_INFO ("could not remove, no child at depth %d", GPOINTER_TO_INT (action->data)); - break; + return FALSE; default: g_assert_not_reached (); + return FALSE; } } @@ -129,7 +344,7 @@ swfdec_sprite_movie_goto (SwfdecMovie *m SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov); SwfdecPlayer *player; GList *old; - guint i, j, start; + guint n; g_assert (goto_frame < mov->n_frames); if (goto_frame >= movie->sprite->parse_frame) { @@ -140,40 +355,48 @@ swfdec_sprite_movie_...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...te_movie.h +++ b/libswfdec/swfdec_sprite_movie.h @@ -65,6 +65,7 @@ struct _SwfdecSpriteMovieClass GType swfdec_sprite_movie_get_type (void); int swfdec_sprite_movie_get_frames_loaded (SwfdecSpriteMovie * movie); +int swfdec_sprite_movie_get_frames_total (SwfdecSpriteMovie * movie); void swfdec_sprite_movie_goto (SwfdecSpriteMovie * movie, guint goto_frame); commit 96dabf98373731d3579fcdefea9a3b80a1d38c5b Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 13:27:32 2007 +0100 remove commented out and non-working code for native FLV playback The code had too many hack...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...esource; - swfdec_resource_set_movie (resource, movie); - g_object_unref (loader); -} - diff --git a/libswfdec/swfdec_sprite_movie.h b/libswfdec/swfdec_sprite_movie.h index fa15e7b..3062bd1 100644 --- a/libswfdec/swfdec_sprite_movie.h +++ b/libswfdec/swfdec_sprite_movie.h @@ -68,10 +68,6 @@ void swfdec_sprite_movie_goto (SwfdecSpriteMovie * movie, guint goto_frame); void swfdec_sprite_movie_unload (SwfdecSpriteMovie * movie); -void swfdec_sprite_movie_load (SwfdecSpriteMovie * movie, - const char * url, - SwfdecLoaderRequest request, - SwfdecBuffer * data); G_END_...
2007 Jun 20
0
Branch 'as' - 5 commits - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/image
...wfdec_audio_event.h" #include "swfdec_audio_stream.h" #include "swfdec_debug.h" +#include "swfdec_graphic_movie.h" #include "swfdec_player_internal.h" #include "swfdec_ringbuffer.h" #include "swfdec_script.h" @@ -423,6 +424,12 @@ swfdec_sprite_movie_goto (SwfdecMovie *m if (cur->depth == prev->depth && swfdec_movie_is_compatible (prev, cur)) { walk->data = prev; + /* FIXME: This merging stuff probably needs to be improved a _lot_ */ + if (SWFDEC_IS_GRAPHIC_MOVIE (cur)) { + SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_C...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...ip_scripts, GList **movie_list) { SwfdecMovie *mov = SWFDEC_MOVIE (movie); - SwfdecPlayer *player = SWFDEC_ROOT_MOVIE (mov->root)->player; + SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context); SwfdecMovie *child; SwfdecContent *content; @@ -176,7 +176,7 @@ swfdec_sprite_movie_goto (SwfdecMovie *m if (goto_frame == movie->current_frame) return; - player = SWFDEC_ROOT_MOVIE (mov->root)->player; + player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context); SWFDEC_LOG ("doing goto %u for %p %d", goto_frame, mov, SWFDEC_CHARACTER (SWFDEC...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...&ctrans : NULL, ratio, clip_depth, events); + has_ctrans ? &ctrans : NULL, ratio, clip_depth, blend_mode, events); if (SWFDEC_IS_SPRITE_MOVIE (cur)) { g_queue_push_tail (player->init_queue, cur); g_queue_push_tail (player->construct_queue, cur); @@ -454,7 +449,8 @@ swfdec_sprite_movie_goto (SwfdecSpriteMo if (klass->replace) klass->replace (prev, cur->graphic); swfdec_movie_set_static_properties (prev, &cur->original_transform, - &cur->original_ctrans, cur->original_ratio, cur->clip_depth, cur->events); + &cur->original_ctrans, c...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...e SwfdecSpriteMovie; +//typedef struct _SwfdecSpriteMovie SwfdecSpriteMovie; typedef struct _SwfdecSpriteMovieClass SwfdecSpriteMovieClass; #define SWFDEC_TYPE_SPRITE_MOVIE (swfdec_sprite_movie_get_type()) @@ -66,6 +66,12 @@ GType swfdec_sprite_movie_get_type (void); void swfdec_sprite_movie_goto (SwfdecSpriteMovie * movie, guint goto_frame); +void swfdec_sprite_movie_unload (SwfdecSpriteMovie * movie); +void swfdec_sprite_movie_load (SwfdecSpriteMovie * movie, + const char * url, + SwfdecLoaderRequest request, + SwfdecBuffer * data); + G_END_...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...decoder_get_script ( - SWFDEC_SWF_DECODER (mov->swf->decoder), buffer->data); + SWFDEC_SWF_DECODER (mov->resource->decoder), buffer->data); g_assert (script); swfdec_player_add_action (player, mov, swfdec_sprite_movie_run_script, script); } @@ -435,10 +437,10 @@ swfdec_sprite_movie_goto (SwfdecSpriteMovie *movie, guint goto_frame) while (n) { guint tag; SwfdecBuffer *buffer; + SwfdecResource *resource = swfdec_movie_get_own_resource (mov); /* FIXME: These actions should probably just be added to the action queue */ - if (movie == mov->swf->movie &...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...ite_movie.h index 70c9f74..0b7158c 100644 --- a/libswfdec/swfdec_sprite_movie.h +++ b/libswfdec/swfdec_sprite_movie.h @@ -64,9 +64,10 @@ struct _SwfdecSpriteMovieClass GType swfdec_sprite_movie_get_type (void); +int swfdec_sprite_movie_get_frames_loaded (SwfdecSpriteMovie * movie); + void swfdec_sprite_movie_goto (SwfdecSpriteMovie * movie, guint goto_frame); - void swfdec_sprite_movie_unload (SwfdecSpriteMovie * movie); commit fac32d9ea49f4f64827343e4e5156cf8952f4a13 Author: Benjamin Otte <otte at gnome.org> Date: Fri Nov 2 10:03:00 2007 +0100 improve swfdec_sprite_movie_unl...