Displaying 20 results from an estimated 21 matches for "waitforframe".
2007 Jan 18
0
Branch 'interpreter' - 2 commits - libswfdec/js libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c
...New commits:
diff-tree c3f0eaf5706a0d972132a0ea4fcaff5aa79ec122 (from 3e6fcd37cb3157514beaf45cb90e2c68d2138b86)
Author: Benjamin Otte <otte@gnome.org>
Date: Wed Jan 17 22:51:45 2007 +0100
add the SwfdecSCript to the stack frame
also, some more functions are implemented (like WaitForFrame, it needs this)
diff --git a/libswfdec/js/jsinterp.c b/libswfdec/js/jsinterp.c
index 1a45a77..1d15966 100644
--- a/libswfdec/js/jsinterp.c
+++ b/libswfdec/js/jsinterp.c
@@ -832,6 +832,7 @@ have_fun:
frame.varobj = NULL;
frame.callobj = frame.argsobj = NULL;
frame.script = script;
+...
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
...| 2
test/swfedit_tag.c | 4 -
test/swfedit_token.c | 6 +-
test/trace/Makefile.am | 3 +
test/trace/swfdec_interaction.c | 12 ++--
test/trace/trace.c | 4 -
test/trace/waitforframe-huge-4.swf |binary
test/trace/waitforframe-huge-4.swf.trace | 1
test/trace/waitforframe-huge.as | 8 ++
test/various/gc.c | 6 +-
test/various/urlencode.c | 8 +-
68 files changed, 288 insertions(+), 183 deletions(-)
New commits:...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...remove the symbols that are gone
add SwfdecAlignment
fixes for warnings
add new warning flags and fix the associated warnings
disable -Wstrict-prototypes because gtk is broken
fix warning I missed earlier
fix alignment issues on broken processors
make WaitForFrame always succeed when the file is fully loaded
add a test for WaitForFrame
Merge branch 'master' of ssh://company at git.freedesktop.org/git/swfdec
add n alignment property
VideFrame tags can happen inside DefineSprite
use -std=gnu99
s/index/idx/
add...
2007 Jun 08
0
Changes to 'refs/tags/0.4.5'
...FAJwMXs9Fxyd7hpIqqFrufgIbeMs2AQCg6Ahb
2Zd8JmTvpbL4fQ83T7a3iOc=
=5Xmi
-----END PGP SIGNATURE-----
Changes since 0.4.4:
Benjamin Otte:
back to development version
Fix regression in font parsing code that made DefineFont not work
handle gotos to not-yet loaded frames correctly
WaitForFrame(2) is 1-indexed
don't compute a size < (unsigned) 0
Merge branch 'master' of ssh://company at git.freedesktop.org/git/swfdec
We want an error when Gtk isn't available, but enabled.
Fix compilation with gnome-vfs disabled
use the right variable in Del...
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
...5 },
[SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, swfdec_action_constant_pool, 5 },
+ [SWFDEC_AS_ACTION_STRICT_MODE] = { "StrictMode", NULL, -1, -1, NULL, 5 },
+ /* version 1 */
+ [SWFDEC_AS_ACTION_WAIT_FOR_FRAME] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, swfdec_action_wait_for_frame, 1 },
+ [SWFDEC_AS_ACTION_SET_TARGET] = { "SetTarget", swfdec_action_print_set_target, 0, 0, swfdec_action_set_target, 1 },
/* version 3 */
- [SWFDEC_AS_ACTION_STRICT_MODE] = { "StrictMode", NULL,...
2007 Apr 04
0
Branch 'as' - 9 commits - 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_stack.c libswfdec/swfdec_as_stack.h
...r, swfdec_action_store_register, swfdec_action_store_register } },
- [0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
- /* version 3 */
#endif
- [0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
+ [SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant...
2007 Aug 23
0
10 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -1214,6 +1214,11 @@ EXTRA_DIST = \
unescape2-7.swf.trace \
values.as \
video.flv \
+ video-properties.as \
+ video-properties-6.swf \
+ video-properties-6.swf.trace \
+ video-properties-7.swf \
+ video-properties-7.swf.trace \
waitforframe-huge.as \
waitforframe-huge-4.swf \
waitforframe-huge-4.swf.trace \
diff --git a/test/trace/video-properties-6.swf b/test/trace/video-properties-6.swf
new file mode 100644
index 0000000..7e8a69f
Binary files /dev/null and b/test/trace/video-properties-6.swf differ
diff --git a/test/trace/video-...
2007 Oct 23
0
6 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_flash_security.c
...stantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
+ [SWFDEC_AS_ACTION_STRICT_MODE] = { "StrictMode", NULL, },
[SWFDEC_AS_ACTION_WAIT_FOR_FRAME] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
[SWFDEC_AS_ACTION_SET_TARGET] = { "SetTarget", swfdec_action_print_set_target, 0,...
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 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
...n_store_register } },
[SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
[SWFDEC_AS_ACTION_WAIT_FOR_FRAME] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
diff --git a/libswfdec/swfdec_as_types.h b/libswfdec/swfdec_as_types.h
index e96f86c..fbea00c...
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
...);
-}
-
-static void
-compile_wait_for_frame (CompileState *state, guint action, guint len)
-{
- guint frame, jump;
- guint8 command[3] = { JSOP_IFEQ, 0, 0 };
-
- frame = swfdec_bits_get_u16 (state->bits);
- jump = swfdec_bits_get_u8 (state->bits);
- compile_state_debug_add (state, "WaitForFrame %u %u", frame, jump);
- push_target (state);
- push_prop (state, "_framesloaded");
- push_uint16 (state, frame);
- GE (state);
- compile_state_add_action_jump (state, jump, FALSE);
- compile_state_add_code (state, command, 3);
-}
-
-static void
-compile_jump (CompileState *stat...
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 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...oreRegister", NULL },
- [0x88] = { "ConstantPool", NULL },
+ [0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
[0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
[0x8b] = { "SetTarget", NULL },
@@ -283,7 +537,7 @@ static const SwfdecActionSpec...
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_MO...
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
...cBits bits;
@@ -1733,7 +1742,7 @@ static const SwfdecActionSpec actions[25
[0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
[0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
- [0x8b] = { "SetTarget", NULL, 0, 0, { swfdec_action_set_target, swfdec_action_set...
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
...operty } },
@@ -1207,7 +1260,7 @@ static const SwfdecActionSpec actions[25
[0x88] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
[0x8a] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
- [0x8b] = { "SetTarget", NULL },
+ [0x8b] = { "SetTarget", NULL, 0, 0,...
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
...pec swfdec_as_actions
[SWFDEC_AS_ACTION_CONSTANT_POOL] = { "ConstantPool", swfdec_action_print_constant_pool, 0, 0, { NULL, NULL, swfdec_action_constant_pool, swfdec_action_constant_pool, swfdec_action_constant_pool } },
/* version 3 */
[SWFDEC_AS_ACTION_WAIT_FOR_FRAME] = { "WaitForFrame", swfdec_action_print_wait_for_frame, 0, 0, { swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame, swfdec_action_wait_for_frame } },
-#if 0
- [0x8b] = { "SetTarget", swfdec_action_print_set_target, 0, 0, { swfdec_act...
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
...void
swfdec_action_wait_for_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
- SwfdecMovie *movie;
- SwfdecResource *resource;
- guint frame, jump, loaded;
+ SwfdecSpriteMovie *movie;
+ guint jump;
+ int frame, loaded;
if (len != 3) {
SWFDEC_ERROR ("WaitForFrame action length invalid (is %u, should be 3", len);
return;
}
- if (!SWFDEC_IS_MOVIE (cx->frame->target)) {
+ if (!SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) {
SWFDEC_ERROR ("no movie for WaitForFrame");
return;
}
- movie = SWFDEC_MOVIE (cx->fr...
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
...guint action, const guint8 *
static void
swfdec_action_wait_for_frame (SwfdecAsContext *cx, guint action, const guint8 *data, guint len)
{
- SwfdecSpriteMovie *movie;
+ SwfdecMovie *movie;
+ SwfdecResource *resource;
guint frame, jump, loaded;
if (len != 3) {
SWFDEC_ERROR ("WaitForFrame action length invalid (is %u, should be 3", len);
return;
}
- if (!SWFDEC_IS_SPRITE_MOVIE (cx->frame->target)) {
+ if (!SWFDEC_IS_MOVIE (cx->frame->target)) {
SWFDEC_ERROR ("no movie for WaitForFrame");
return;
}
- movie = SWFDEC_SPRITE_MOVIE (cx...
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
...ine swfdec_action_has_register(cx, i) \
((i) < ((SwfdecScript *) (cx)->fp->swf)->n_registers)
+#if 0
static SwfdecMovie *
swfdec_action_get_target (JSContext *cx)
{
@@ -2481,6 +2443,7 @@ swfdec_action_print_wait_for_frame (guin
jump = data[2];
return g_strdup_printf ("WaitForFrame %u %u", frame, jump);
}
+#endif
/*** BIG FUNCTION TABLE ***/
@@ -2489,7 +2452,7 @@ swfdec_action_print_wait_for_frame (guin
#define MAXSCRIPTVERSION 7
#define EXTRACT_VERSION(v) MIN ((v) - MINSCRIPTVERSION, MAXSCRIPTVERSION - MINSCRIPTVERSION)
-typedef JSBool (* SwfdecActionExec) (JS...