search for: previousfram

Displaying 14 results from an estimated 14 matches for "previousfram".

Did you mean: previousframe
2007 Nov 14
5
[Bug 13241] New: This particular flash file cycles between "loaded" and "loading"
http://bugs.freedesktop.org/show_bug.cgi?id=13241 Summary: This particular flash file cycles between "loaded" and "loading" Product: swfdec Version: 0.5.3 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component:
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
...e (guint action, const guint8 *data, guint len) /*** BIG FUNCTION TABLE ***/ const SwfdecActionSpec swfdec_as_actions[256] = { - /* version 3 */ - [SWFDEC_AS_ACTION_NEXT_FRAME] = { "NextFrame", NULL, 0, 0, swfdec_action_next_frame, 3 }, - [SWFDEC_AS_ACTION_PREVIOUS_FRAME] = { "PreviousFrame", NULL, 0, 0, swfdec_action_previous_frame, 3 }, - [SWFDEC_AS_ACTION_PLAY] = { "Play", NULL, 0, 0, swfdec_action_play, 3 }, - [SWFDEC_AS_ACTION_STOP] = { "Stop", NULL, 0, 0, swfdec_action_stop, 3 }, - [SWFDEC_AS_ACTION_TOGGLE_QUALITY] = { "ToggleQuality", NULL...
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
...d +undefined +[object Object] +undefined +undefined +[object Object] +undefined +undefined diff-tree 29607ca556843663468425ffad907e69839a0d8f (from 62447e55d8fb4b74154694683d47070cd49e9868) Author: Benjamin Otte <otte@gnome.org> Date: Wed Jan 31 14:50:27 2007 +0100 implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2 Those are the actions needed by South Park studio diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index b172ec6..9921af8 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -35,6 +35,8 @@ #include &qu...
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...; + } + return JS_TRUE; +} + +/*** PRINT FUNCTIONS ***/ + static char * swfdec_action_print_goto_frame (guint action, const guint8 *data, guint len) { @@ -93,7 +177,7 @@ static const SwfdecActionSpec actions[25 /* version 3 */ [0x04] = { "NextFrame", NULL }, [0x05] = { "PreviousFrame", NULL }, - [0x06] = { "Play", NULL }, + [0x06] = { "Play", NULL, 0, 0, { swfdec_action_play, swfdec_action_play, swfdec_action_play, swfdec_action_play, swfdec_action_play } }, [0x07] = { "Stop", NULL, 0, 0, { swfdec_action_stop, swfdec_action_stop, swfdec_...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...plement DefineFunction return "[type Function]" 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...
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
...ious_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + SwfdecMovie *movie = swfdec_action_get_target (cx); + if (movie) { + if (movie->frame > 0) { + 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"); + } +} + +static void +swfdec_action_goto_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + SwfdecMovie *movie = swfdec_action_get_target (cx); + guint fr...
2007 Mar 28
0
Branch 'as' - 3 commits - 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_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_types.c
...SwfdecActionSpec actions[256] = { +const SwfdecActionSpec actions[256] = { /* version 3 */ [0x04] = { "NextFrame", NULL, 0, 0, { swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame } }, [0x05] = { "PreviousFrame", NULL, 0, 0, { swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame } }, @@ -2731,6 +2741,8 @@ swfdec_script_new (SwfdecBits *bits, con script->refcount = 1; script->name = g_strdup (n...
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
...movie = swfdec_action_get_target (cx); if (movie) { - if (movie->frame > 0) { - swfdec_movie_goto (movie, movie->frame - 1); + 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 = swfd...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...plement DefineFunction return "[type Function]" 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...
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
...SWFDEC_IS_DEBUGGER (player)) - swfdec_debugger_remove_script (SWFDEC_DEBUGGER (player), script); - JS_DestroyScript (player->jscx, script); -} - -/* must be sorted! */ -SwfdecActionSpec actions[] = { - /* version 3 */ - { 0x04, "NextFrame", compile_simple_call }, - { 0x05, "PreviousFrame", compile_simple_call }, - { 0x06, "Play", compile_simple_call }, - { 0x07, "Stop", compile_simple_call }, - { 0x08, "ToggleQuality", NULL }, - { 0x09, "StopSounds", compile_simple_bind_call }, - /* version 4 */ - { 0x0a, "Add", compile_...
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
...ons diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c index 5ba5fb2..7abef77 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -2134,8 +2134,8 @@ const SwfdecActionSpec swfdec_as_actions [SWFDEC_AS_ACTION_PREVIOUS_FRAME] = { "PreviousFrame", NULL, 0, 0, { swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame } }, [SWFDEC_AS_ACTION_PLAY] = { "Play", NULL, 0, 0, { swfdec_action_play, swfdec_action_play, swfdec_action_play,...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...plement DefineFunction return "[type Function]" 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...
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
...++ if (SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) { ++ SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (cx->frame->target); + if (movie->frame > 1) { + swfdec_sprite_movie_goto (movie, movie->frame - 1); } else { SWFDEC_INFO ("can't execute previousFrame, already at first frame"); } @@@ -110,10 -132,9 +110,10 @@@ return; } frame = GUINT16_FROM_LE (*((guint16 *) data)); - if (movie) { + if (SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) { - SwfdecMovie *movie = SWFDEC_MOVIE (cx->frame->target); - swfdec...
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
...ct { } SwfdecActionSpec; const SwfdecActionSpec actions[256] = { +#if 0 /* version 3 */ [0x04] = { "NextFrame", NULL, 0, 0, { swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame, swfdec_action_next_frame } }, [0x05] = { "PreviousFrame", NULL, 0, 0, { swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame, swfdec_action_previous_frame } }, @@ -2618,6 +2582,7 @@ const SwfdecActionSpec actions[256] = { [0x9d] = { "If", swfdec_action_print_if, 1, 0, {...