Displaying 20 results from an estimated 21 matches for "goto_fram".
Did you mean:
goto_frame
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
...);
+ if (movie->frame > 1) {
+ swfdec_sprite_movie_goto (movie, movie->frame - 1);
} else {
SWFDEC_INFO ("can't execute previousFrame, already at first frame");
}
@@ -124,7 +124,7 @@ swfdec_action_previous_frame (SwfdecAsCo
static void
swfdec_action_goto_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
- SwfdecMovie *movie = swfdec_action_get_target (cx);
+ SwfdecSpriteMovie *movie = swfdec_action_get_target (cx);
guint frame;
if (len != 2) {
@@ -133,8 +133,8 @@ swfdec_action_goto_frame (SwfdecAsContex
}
frame...
2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
..._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->frame) {
+ GList *walk;
movie->...
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
...gt;data);
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 74d2160..f23c4c1 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -123,20 +123,59 @@ swfdec_sprite_movie_perform_one_action (
}
static void
-swfdec_sprite_movie_do_goto_frame (gpointer moviep, gpointer data)
+swfdec_movie_tell_about_removal (SwfdecMovie *movie)
+{
+ GList *walk;
+ if (movie->will_be_removed)
+ return;
+ movie->will_be_removed = TRUE;
+ for (walk = movie->list; walk; walk = walk->next) {
+ swfdec_movie_tell_about_removal (walk->...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...ovie 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)
+ movie->sprite == NULL || mov->state &...
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
...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_goto (SwfdecMovie *m
if (mov->will_be_removed)
return;
- if (goto_frame == movie->current_frame)
+ if (goto_frame == mov->frame)
return;
play...
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
...f 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-yet-loaded frame %u (loaded: %u/%u)"...
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
...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->current_frame + 1;
old = NULL;
}
- if (movie->current_frame == (guint) -1 ||
- movie->sprite->frames[goto_frame].bg_color !=
- movie->sprite->frames[movie->current_frame].bg_color) {
- swfdec_movie_invalidate (mov);
- }
mo...
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
...#39;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->parse_frame) {
SWFDEC_WARNING ("jumping to not-yet-loaded frame %u (loaded: %u/%u)",
goto_frame, movie->sprite->parse_frame, movie->sprite->n_frames);
@@...
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
...e *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_SPRITE_MOVIE (mov)->sprite)-&...
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
...ate: Wed Mar 7 18:15:44 2007 +0100
use the right variable here
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 91e27f6..74d2160 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -150,10 +150,8 @@ swfdec_sprite_movie_do_goto_frame (gpoin
start, goto_frame, SWFDEC_CHARACTER (movie->sprite)->id);
for (i = start; i <= movie->current_frame; i++) {
SwfdecSpriteFrame *frame = &movie->sprite->frames[i];
- if (SWFDEC_IS_ROOT_MOVIE (movie)) {
- swfdec_root_movie_perform_root_actions (SWFD...
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
...ie_do_init_movie (movie);
-
- swfdec_player_add_action (player, movie, swfdec_sprite_movie_do_enter_frame, NULL);
+ swfdec_player_add_action (player, mov, SWFDEC_EVENT_ENTER, 2);
if (movie->playing && movie->sprite != NULL) {
if (movie->frame == movie->n_frames)
goto_frame = 1;
@@ -740,6 +701,7 @@ swfdec_sprite_movie_class_init (SwfdecSpriteMovieClass * g_class)
object_class->dispose = swfdec_sprite_movie_dispose;
+ asobject_class->add = swfdec_sprite_movie_add;
asobject_class->mark = swfdec_sprite_movie_mark;
movie_class->init_movie = sw...
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
...ct _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 hacks and special cases, and that's one thing I don'...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...e.c b/libswfdec/swfdec_sprite_movie.c
index f23c4c1..a114315 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -224,7 +224,7 @@ static void
swfdec_sprite_movie_iterate (SwfdecMovie *mov)
{
SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov);
- unsigned int goto_frame;
+ guint goto_frame;
if (mov->will_be_removed)
return;
diff --git a/libswfdec/swfdec_sprite_movie.h b/libswfdec/swfdec_sprite_movie.h
index 3be1725..e244a54 100644
--- a/libswfdec/swfdec_sprite_movie.h
+++ b/libswfdec/swfdec_sprite_movie.h
@@ -43,13 +43,13 @@ struct _SwfdecSpriteMovi...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...wfdec_sprite_movie_run_script (SwfdecMovie *movie, gpointer data)
+swfdec_sprite_movie_run_script (gpointer movie, gpointer data)
{
swfdec_script_execute (data, SWFDEC_SCRIPTABLE (movie));
}
@@ -121,9 +121,10 @@ swfdec_sprite_movie_perform_one_action (
}
static void
-swfdec_sprite_movie_do_goto_frame (SwfdecMovie *mov, gpointer data)
+swfdec_sprite_movie_do_goto_frame (gpointer moviep, gpointer data)
{
- SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov);
+ SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (moviep);
+ SwfdecMovie *mov = moviep;
unsigned int goto_frame = GPOINTER_TO_UINT...
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
...ref (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_DECLS
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...2618,6 +2582,7 @@ const SwfdecActionSpec actions[256] = {
[0x9d] = { "If", swfdec_action_print_if, 1, 0, { NULL, swfdec_action_if, swfdec_action_if, swfdec_action_if, swfdec_action_if } },
[0x9e] = { "Call", NULL },
[0x9f] = { "GotoFrame2", swfdec_action_print_goto_frame2, 1, 0, { NULL, swfdec_action_goto_frame2, swfdec_action_goto_frame2, swfdec_action_goto_frame2, swfdec_action_goto_frame2 } }
+#endif
};
char *
@@ -2735,7 +2700,6 @@ swfdec_script_new (SwfdecBits *bits, con
return NULL;
}
- swfdec_bits_syncbits (bits);
start = bits->ptr;
s...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...+ swfdec_movie_goto (movie, movie->frame - 1);
+ } else {
+ SWFDEC_INFO ("can't execute previousFrame, already at first frame");
+ }
+ } else {
+ SWFDEC_ERROR ("no movie to previousFrame on");
+ }
+ return JS_TRUE;
+}
+
+static JSBool
swfdec_action_goto_frame (JSContext *cx, guint action, const guint8 *data, guint len)
{
SwfdecMovie *movie = swfdec_action_get_target (cx);
@@ -160,6 +213,76 @@ swfdec_action_goto_frame (JSContext *cx,
}
static JSBool
+swfdec_action_goto_label (JSContext *cx, guint action, const guint8 *data, guint len)
+{
+ Swfd...
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
...ovie;
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_DECLS
#endif
diff --git a/libswfdec/swfdec_types.h b/li...
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), 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 &&
- mov->swf->parse_frame <= m...
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
..._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_unload() a bit
It clears variables and removes chi...