search for: waitforframe2

Displaying 13 results from an estimated 13 matches for "waitforframe2".

Did you mean: waitforframe
2007 Feb 01
0
Branch 'interpreter' - libswfdec/swfdec_script.c
...++++++++++++++++++++++-------------- 1 files changed, 97 insertions(+), 39 deletions(-) New commits: diff-tree 94e07c556a4e4f471f6700af54f35e55edf79a85 (from 18aff9069e571bda0bf49290c7ad415597d1d16e) Author: Benjamin Otte <otte@gnome.org> Date: Thu Feb 1 16:11:16 2007 +0100 implement WaitForFrame2 videostar.swf works now diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 39b3b8b..c416f64 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -267,6 +267,27 @@ swfdec_action_goto_label (JSContext *cx, return JS_TRUE; } +static int +swfde...
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
...+ return swfdec_action_do_define_function (cx, action, data, len, TRUE); +} + +static JSBool swfdec_action_bitwise (JSContext *cx, guint action, const guint8 *data, guint len) { guint32 a, b; @@ -2109,7 +2127,7 @@ static const SwfdecActionSpec actions[25 /* version 4 */ [0x8d] = { "WaitForFrame2", swfdec_action_print_wait_for_frame2, 1, 0, { NULL, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2 } }, /* version 7 */ - [0x8e] = { "DefineFunction2", swfdec_action_print_define_function, 0, -1, { NULL,...
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
...+ } else { + pc++; + } + } while (jump-- > 0); + cx->frame->pc = pc; +} + +#if 0 +static void +swfdec_action_wait_for_frame2 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) +{ + jsval val; + SwfdecMovie *movie; + + if (len != 1) { + SWFDEC_ERROR ("WaitForFrame2 needs a 1-byte data"); + return JS_FALSE; + } + val = cx->fp->sp[-1]; + cx->fp->sp--; + movie = swfdec_action_get_target (cx); + if (movie) { + int frame = swfdec_value_to_frame (cx, movie, val); + guint jump = data[2]; + guint loaded; + if (frame < 0) +...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...null in Flash 7 fix object to number conversions in Flash 6 add test for mathematical operations + - * / on objects toString is supposed to output [type Object] for numbers various fixes for tests add another test that resulted from trying various stuff implement WaitForFrame2 Set clip depth correctly when checking available bits fails, consume all bits Clean up parsing of actions in PlaceObject2 Finish compiling at end of bitstream, too, not just with 0 action Merge branch 'master' into interpreter missing \n s/SWF_COLOR...
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
...NULL }, - { 0x88, "ConstantPool", compile_constant_pool }, - /* version 3 */ - { 0x8a, "WaitForFrame", compile_wait_for_frame }, - { 0x8b, "SetTarget", compile_set_target }, - { 0x8c, "GotoLabel", compile_goto_label }, - /* version 4 */ - { 0x8d, "WaitForFrame2", NULL }, - /* version 7 */ - { 0x8e, "DefineFunction2", NULL }, - { 0x8f, "Try", NULL }, - /* version 5 */ - { 0x94, "With", NULL }, - /* version 4 */ - { 0x96, "Push", compile_push }, - { 0x99, "Jump", compile_jump }, - { 0x9a, &quot...
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
..._action_set_target, swfdec_action_set_target } }, [0x8c] = { "GotoLabel", swfdec_action_print_goto_label, 0, 0, { swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label, swfdec_action_goto_label } }, /* version 4 */ [0x8d] = { "WaitForFrame2", NULL }, diff-tree 97a972c232892d919de3045f69e6fc3fac4b8ad3 (from 4b0e92902dcfd08e55f34d6d56aecb10efac9314) Author: Benjamin Otte <otte@gnome.org> Date: Wed Jan 31 16:26:51 2007 +0100 make eval (obj, "") return obj and not undefined diff --git a/libswfdec/swfdec_js.c b...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
..."SetTarget", NULL }, + [0x8b] = { "SetTarget", NULL, 0, 0, { swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target, swfdec_action_set_target } }, [0x8c] = { "GotoLabel", NULL }, /* version 4 */ [0x8d] = { "WaitForFrame2", NULL }, diff-tree 7f5416c27464e7f7f59444e8b2fff80eb65a43c2 (from 2f1ed9bb15785a9dfde7fdef1adc92346c11ab82) Author: Benjamin Otte <otte@gnome.org> Date: Sun Jan 28 22:16:50 2007 +0100 didn't catch NULL here, oops diff --git a/libswfdec/swfdec_scriptable.c b/libswfdec/swfdec_...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...null in Flash 7 fix object to number conversions in Flash 6 add test for mathematical operations + - * / on objects toString is supposed to output [type Object] for numbers various fixes for tests add another test that resulted from trying various stuff implement WaitForFrame2 Set clip depth correctly when checking available bits fails, consume all bits Clean up parsing of actions in PlaceObject2 Finish compiling at end of bitstream, too, not just with 0 action Merge branch 'master' into interpreter missing \n s/SWF_COLOR...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...- return swfdec_action_do_define_function (cx, action, data, len, TRUE); -} - -static JSBool swfdec_action_bitwise (JSContext *cx, guint action, const guint8 *data, guint len) { guint32 a, b; @@ -2352,7 +2373,7 @@ static const SwfdecActionSpec actions[25 /* version 4 */ [0x8d] = { "WaitForFrame2", swfdec_action_print_wait_for_frame2, 1, 0, { NULL, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2 } }, /* version 7 */ - [0x8e] = { "DefineFunction2", swfdec_action_print_define_function, 0, -1, { NULL,...
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
...quot;Greater", NULL, 2, 1, { NULL, NULL, NULL, swfdec_action_new_comparison_6, swfdec_action_new_comparison_7 } }, [SWFDEC_AS_ACTION_STRING_GREATER] = { "StringGreater", NULL }, /* version 7 */ @@ -2259,10 +2259,10 @@ const SwfdecActionSpec swfdec_as_actions [0x8d] = { "WaitForFrame2", swfdec_action_print_wait_for_frame2, 1, 0, { NULL, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2 } }, /* version 7 */ [0x8e] = { "DefineFunction2", swfdec_action_print_define_function, 0, -1, { NULL,...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...null in Flash 7 fix object to number conversions in Flash 6 add test for mathematical operations + - * / on objects toString is supposed to output [type Object] for numbers various fixes for tests add another test that resulted from trying various stuff implement WaitForFrame2 Set clip depth correctly when checking available bits fails, consume all bits Clean up parsing of actions in PlaceObject2 Finish compiling at end of bitstream, too, not just with 0 action Merge branch 'master' into interpreter missing \n s/SWF_COLOR...
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
...SWFDEC_AS_ACTION_SET_TARGET] = { "SetTarget", swfdec_action_print_set_target, 0, 0, swfdec_action_set_target, 3 }, + [SWFDEC_AS_ACTION_GOTO_LABEL] = { "GotoLabel", swfdec_action_print_goto_label, 0, 0, swfdec_action_goto_label, 3 }, #if 0 /* version 4 */ [0x8d] = { "WaitForFrame2", swfdec_action_print_wait_for_frame2, 1, 0, { NULL, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2, swfdec_action_wait_for_frame2 } }, #endif /* version 7 */ - [SWFDEC_AS_ACTION_DEFINE_FUNCTION2] = { "DefineFunction2", swfdec_action_...
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
...ec_value_to_frame (cx, movie, val); if (frame >= 0) { frame += bias; @@ -252,7 +229,6 @@ static void swfdec_action_wait_for_frame2 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) { jsval val; - SwfdecMovie *movie; if (len != 1) { SWFDEC_ERROR ("WaitForFrame2 needs a 1-byte data"); @@ -260,8 +236,8 @@ swfdec_action_wait_for_frame2 (SwfdecAsC } val = cx->fp->sp[-1]; cx->fp->sp--; - movie = swfdec_action_get_target (cx); - if (movie) { + if (SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) + SwfdecMovie *movie = SWFDEC_MOV...