Displaying 16 results from an estimated 16 matches for "gotoframe".
Did you mean:
goto_frame
2007 Mar 07
1
2 commits - libswfdec/swfdec_script.c test/trace
libswfdec/swfdec_script.c | 14 ++++++++++++--
test/trace/Makefile.am | 2 ++
test/trace/gotoframe.swf |binary
test/trace/gotoframe.swf.trace | 13 +++++++++++++
4 files changed, 27 insertions(+), 2 deletions(-)
New commits:
diff-tree 12348410a3509928a6e8e4c8ca00292a58ff542c (from 46e62d4410c20c19774a45758d8ebf11cd0bdf96)
Author: Benjamin Otte <otte@gnome.org>
Date: Wed Mar 7 1...
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...lse
+ SWFDEC_ERROR ("no movie to play");
+ 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);
+ guint frame;
+
+ if (len != 2) {
+ SWFDEC_ERROR ("GotoFrame action length invalid (is %u, should be 2", len);
+ return JS_FALSE;
+ }
+ frame = GUINT16_FROM_LE (*((guint16 *) data));
+ if (movie) {
+ swfdec_movie_goto (movie, frame);
+ movie->stopped = TRUE;
+ } else {
+ SWFDEC_ERROR ("no movie to goto on");
+ }
+ return J...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...pec swfdec_as_actions[256] = {
[SWFDEC_AS_ACTION_STRING_GREATER] = { "StringGreater", NULL, -1, -1, NULL, 6 },
/* version 7 */
[SWFDEC_AS_ACTION_EXTENDS] = { "Extends", NULL, 2, 0, swfdec_action_extends, 7 },
- /* version 3 */
- [SWFDEC_AS_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, swfdec_action_goto_frame, 3 },
- [SWFDEC_AS_ACTION_GET_URL] = { "GetURL", swfdec_action_print_get_url, 0, 0, swfdec_action_get_url, 3 },
+ /* version 1 */
+ [SWFDEC_AS_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_fr...
2009 Mar 06
1
questions
Hello,
I have some questions about the library.
First, I would like to be able to get how many frames in a movie, skip to a
given frame, and render one selected frame. Looking at the API, I see that
there are functions for this in swfdec_sprite_movie.h. But I don't see how I
can get to those functions starting from a swfdec_player.
Second, there are some movies that are collections of
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...unction]" from function.toString()
create a call object for calls to SWF code
implement CallFunction, BitRShift, BitLShift and BitURShift
add 2 tests for DefineFunction
add swfdec_movie_get_path
implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2
add test for Color constructor
make eval (obj, "") return obj and not undefined
add print function for SetTarget
handle colors not referring to movies
implement Equals
initialize the constant pool as empty
implement BitAnd, BitOr, BitXor, DefineL...
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
...a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index c37b2bf..0b48d67 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -116,7 +116,7 @@ swfdec_action_goto_frame (SwfdecAsContext *cx, guint action, const guint8 *data,
SWFDEC_ERROR ("GotoFrame action length 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->targ...
2007 Apr 04
0
Branch 'as' - 4 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...{
+ SWFDEC_ERROR ("no movie to previousFrame on");
+ }
+}
+
+static void
+swfdec_action_goto_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
+{
+ SwfdecMovie *movie = swfdec_action_get_target (cx);
+ guint frame;
+
+ if (len != 2) {
+ SWFDEC_ERROR ("GotoFrame action length invalid (is %u, should be 2", len);
+ return;
+ }
+ frame = GUINT16_FROM_LE (*((guint16 *) data));
+ if (movie) {
+ swfdec_movie_goto (movie, frame);
+ movie->stopped = TRUE;
+ } else {
+ SWFDEC_ERROR ("no movie to goto on");
+ }
+}
+
+static void
+s...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...unction]" from function.toString()
create a call object for calls to SWF code
implement CallFunction, BitRShift, BitLShift and BitURShift
add 2 tests for DefineFunction
add swfdec_movie_get_path
implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2
add test for Color constructor
make eval (obj, "") return obj and not undefined
add print function for SetTarget
handle colors not referring to movies
implement Equals
initialize the constant pool as empty
implement BitAnd, BitOr, BitXor, DefineL...
2007 Jan 24
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_script.c test/swfdec_out.c test/swfdec_out.h test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h
...perty", NULL, 3, 0, { NULL, swfdec_action_set_property, swfdec_action_set_property, swfdec_action_set_property, swfdec_action_set_property } },
[0x24] = { "CloneSprite", NULL },
@@ -1010,7 +1063,7 @@ static const SwfdecActionSpec actions[25
/* version 3 */
[0x81] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } },
- [0x83] = { "GetURL", NULL },
+ [0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfde...
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
...43ffdf4dfbeae9350 (from 4ce0d0abb3f64d0b93d9718051344275be5bdedb)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Feb 20 15:01:58 2007 +0100
call _perform_actions after scheduling timeouts
This ensures that timeouts added via setInterval that schedule actions
(most likely gotoFrame) get executed properly and we don't hit assertions
that want the action count to be empty.
The patch also adds some debugging.
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 2f7deef..76c93e7 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player....
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...ppend_printf (string, "Pool %u", swfdec_bits_get_u16 (&bits));
break;
- case 4: /* register */
default:
SWFDEC_ERROR ("Push: type %u not implemented", type);
return JS_FALSE;
@@ -2017,7 +2062,7 @@ static const SwfdecActionSpec actions[25
[0x81] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } },
[0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get_url, s...
2007 Apr 12
0
Branch 'as' - 15 commits - 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 libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c
...comparison_7 } },
+ [SWFDEC_AS_ACTION_STRING_GREATER] = { "StringGreater", NULL },
/* version 7 */
+#if 0
[0x69] = { "Extends", NULL, 2, 0, { NULL, NULL, NULL, NULL, swfdec_action_extends } },
+#endif
/* version 3 */
-#endif
[SWFDEC_AS_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } },
#if 0
[0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get...
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
...;gotoAndStop");
- PUSH_OBJ (state);
- push_string (state, s);
- call (state, 1);
- POP (state);
-}
-
-static void
-compile_goto_frame (CompileState *state, guint action, guint len)
-{
- unsigned int i;
-
- i = swfdec_bits_get_u16 (state->bits);
- compile_state_debug_add (state, "GotoFrame %u", i);
- push_target (state);
- push_prop (state, "gotoAndStop");
- PUSH_OBJ (state);
- push_uint16 (state, i + 1);
- call (state, 1);
- POP (state);
-}
-
-static void
-compile_goto_frame2 (CompileState *state, guint action, guint len)
-{
- int bias, play;
- if (swfdec_bits...
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c 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 libswfdec/swfdec_as_function.h
...ter (guin
}
return g_strdup_printf ("StoreRegister %u", (guint) *data);
}
-#endif
static char *
swfdec_action_print_set_target (guint action, const guint8 *data, guint len)
@@ -2244,9 +2243,9 @@ const SwfdecActionSpec swfdec_as_actions
[SWFDEC_AS_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } },
#if 0
[0x83] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfdec_action_get...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
..."With %u", data[0] | (data[1] << 8));
}
static char *
@@ -2401,7 +2401,7 @@ swfdec_action_print_goto_frame (guint ac
if (len != 2)
return NULL;
- frame = GUINT16_FROM_LE (*((guint16 *) data));
+ frame = data[0] | (data[1] << 8);
return g_strdup_printf ("GotoFrame %u", frame);
}
@@ -2424,7 +2424,7 @@ swfdec_action_print_wait_for_frame (guin
if (len != 3)
return NULL;
- frame = GUINT16_FROM_LE (*((guint16 *) data));
+ frame = data[0] | (data[1] << 8);
jump = data[2];
return g_strdup_printf ("WaitForFrame %u %u", frame...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h 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
...N_EXTENDS] = { "Extends", NULL, 2, 0, { NULL, NULL, NULL, NULL, swfdec_action_extends } },
+ [SWFDEC_AS_ACTION_EXTENDS] = { "Extends", NULL, 2, 0, { NULL, NULL, NULL, swfdec_action_extends, swfdec_action_extends } },
/* version 3 */
[SWFDEC_AS_ACTION_GOTO_FRAME] = { "GotoFrame", swfdec_action_print_goto_frame, 0, 0, { swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame, swfdec_action_goto_frame } },
[SWFDEC_AS_ACTION_GET_URL] = { "GetURL", swfdec_action_print_get_url, 0, 0, { swfdec_action_get_url, swfd...