search for: showfram

Displaying 20 results from an estimated 22 matches for "showfram".

Did you mean: showframe
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
...<tags> + <PlaceObject2 replace="0" depth="1" objectID="1"> + <transform> + <Transform transX="0" transY="0"/> + </transform> + </PlaceObject2> + <ShowFrame/> + <End/> + </tags> + </DefineSprite> + <DefineShape objectID="3"> + <bounds> + <Rectangle left="0" right="1000" top="0" bottom="1000"/> + </bounds> +...
2010 Jan 17
1
screenshot of swf file
Hi, Im trying to thumbnail a swf file based on this found at http://www.mail-archive.com/swfdec at lists.freedesktop.org/msg00821.html. #include <stdlib.h> #include <stdio.h> #include <swfdec/swfdec.h> #include <cairo.h> void swfdec_player_save (SwfdecPlayer *player, guint width, guint height, const char *filename) { cairo_surface_t *surface; cairo_t *cr;
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
...type; /* type of this field */ - guint n_items; /* field to look at for item count */ + guint n_items; /* field to look at for item count (or 0 to use 1 item) */ guint hint; /* hint to pass to field when creating */ } SwfeditTagDefinition; static const SwfeditTagDefinition ShowFrame[] = { { NULL, 0, 0, 0 } }; +static const SwfeditTagDefinition SetBackgroundColor[] = { { "color", SWFEDIT_TOKEN_RGB, 0, 0 }, { NULL, 0, 0, 0 } }; static const SwfeditTagDefinition *tags[] = { [SWFDEC_TAG_SHOWFRAME] = ShowFrame, + [SWFDEC_TAG_SETBACKGROUNDCOLOR] = SetBackgroundColo...
2007 Jul 30
0
10 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_super.c libswfdec/swfdec_video_movie_as.c test/trace
...ot;0"/> + <StackString value="foo"/> + </items> + </PushData> + <CallFunction/> + <Pop/> + <GetURL url="fscommand:quit" target=""/> + </actions> + </DoAction> + <ShowFrame/> + <End/> + </tags> + </Header> +</swf> diff --git a/test/trace/definefunction2-overwrite.swf b/test/trace/definefunction2-overwrite.swf new file mode 100644 index 0000000..71f2367 Binary files /dev/null and b/test/trace/definefunction2-overwrite.swf differ dif...
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
...put into a SwfdecContent structure, and then added to a sprites SwfdecFrame structure, but instead queued in sprite->actions, which is a list of tag/buffer tuples. - swfdec_sprite_movie_perform_one_action() is now given one tag/buffer tuple, parses it and executes it. - ShowFrame tags are now handled differently. They are queued into sprite->actions. swfdec_sprite_movie_perform_actions() stops when it encounters this tag. Stuff known to still be missing: - sprite->actions should be a GList. This needs a nicer way to store tag/buffer tuples fi...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...bits, hint); - if (type == SWFEDIT_TOKEN_OBJECT) - SWFEDIT_TOKEN (data)->parent = token; + data = operations[type].read (token, bits, hint); swfedit_token_add (token, name, type, data); } @@ -287,11 +315,10 @@ swfedit_tag_read_token (SwfeditToken *to static const SwfeditTagDefinition ShowFrame[] = { { NULL, 0, 0, NULL } }; static const SwfeditTagDefinition SetBackgroundColor[] = { { "color", SWFEDIT_TOKEN_RGB, 0, NULL }, { NULL, 0, 0, NULL } }; static const SwfeditTagDefinition PlaceObject2Action[] = { - { "flags", SWFEDIT_TOKEN_UINT32, 0, NULL }, - { "reser...
2007 Oct 12
0
4 commits - libswfdec/swfdec_shape_parser.c NEWS README test/trace
.../> + <LineTo x="100" y="100"/> + <ShapeSetup/> + </edges> + </Shape> + </shapes> + </DefineShape3> + <PlaceObject2 objectID="1" depth="0" /> + <ShowFrame/> + <End/> + </tags> + </Header> +</swf> diff-tree a2394ae7aed916fb280d6c23a411ee977c268012 (from 83da60d90ecce9a414cd7b5757d4ab7f6033fa99) Author: Benjamin Otte <otte at gnome.org> Date: Fri Oct 12 12:30:36 2007 +0200 update README require...
2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
...lt;LineTo x="-5120" y="0"/> + <ShapeSetup/> + </edges> + </Shape> + </shapes> + </DefineShape2> + <PlaceObject2 replace="0" depth="0" objectID="1" /> + <ShowFrame/> + <End/> + </tags> + </Header> +</swf> commit 1c94cb756031ebcd939f82120469b56911866a38 Author: Benjamin Otte <otte at gnome.org> Date: Mon Dec 3 12:35:49 2007 +0100 update reference image to work with Swfdec for now diff --git a/test/image/Makefi...
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
..._name (tag), mov->frame); + swfdec_swf_decoder_get_tag_name (tag), movie->frame); switch (tag) { case SWFDEC_TAG_DOACTION: SWFDEC_LOG ("SCRIPT action"); @@ -318,8 +318,8 @@ swfdec_sprite_movie_perform_one_action ( } return TRUE; case SWFDEC_TAG_SHOWFRAME: - if (mov->frame < mov->n_frames) { - mov->frame++; + if (movie->frame < movie->n_frames) { + movie->frame++; } else { SWFDEC_ERROR ("too many ShowFrame tags"); } @@ -344,53 +344,51 @@ swfdec_movie_is_compatible (SwfdecMovie return T...
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
...10 files changed, 208 insertions(+), 43 deletions(-) New commits: diff-tree dc6c1becbfb201aa15c126c05ba38e4c772fac80 (from 87277c93fa313582d4ee63ead97538e047257bc7) Author: Benjamin Otte <otte at gnome.org> Date: Sun May 27 20:15:22 2007 +0200 don't crash if 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...
2007 Aug 02
0
10 commits - libswfdec/compiler.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_player.c NEWS test/trace
...SE; - i = i & 0x3F; - if (i == 0x3F) { - i = data[0] + (data[1] << 8) + (data[2] << 16) + (data[3] << 24); - data += 4; - len -= 31; - } else { - len -= 27; - } - /* 3) check size of tag is correct */ - if (i >= len + 2) - return FALSE; - /* 4) check a ShowFrame comes next */ - if (data[i] != 0x40 || data[i + 1] != 0x00) - return FALSE; - /* trust the data */ - len = i; for (i = 0; i < len; i++) { switch (i % 16) { case 0: @@ -69,14 +38,6 @@ write_data (guint8 *data, gsize len) return TRUE; } -static void -output_array (guint...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...</edges> + </Shape> + </shapes> + </DefineShape> + <DefineSprite objectID="2" frames="1"> + <tags> + <PlaceObject2 replace="0" depth="1" objectID="1" /> + <ShowFrame/> + </tags> + </DefineSprite> + <DefineSprite objectID="3" frames="1"> + <tags> + <PlaceObject2 replace="0" depth="1" objectID="2" allflags1="5" allflags2="0"> + <events...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...ot;0"/> + <StackString value="foo"/> + </items> + </PushData> + <CallFunction/> + <Pop/> + <GetURL url="fscommand:quit" target=""/> + </actions> + </DoAction> + <ShowFrame/> + <End/> + </tags> + </Header> +</swf> diff-tree f781524c4f4ad87e3e277417b6e29df6d9d1a7a5 (from 8c9b43ea93defc0eb2fd8b36f5b59fe0d2e1693a) Author: Benjamin Otte <otte at gnome.org> Date: Fri Aug 17 17:33:47 2007 +0200 fix warnings diff --git a/tes...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...aryLookup index="2"/> + <StackDictionaryLookup index="3"/> + </items> + </PushData> + <GetURL2 method="64"/> + <EndAction/> + </actions> + </DoAction> + <ShowFrame/> + <End/> + </tags> + </Header> +</swf> commit d95178f58e7095e8d95756baaf5f2b3fe1d1d937 Author: Benjamin Otte <otte at gnome.org> Date: Tue Dec 4 12:26:39 2007 +0100 Don't segfault during frame cleanup when exceptions are present (fixes #13379)...
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
...OK; } -/* may appear inside DefineSprite */ -#define SPRITE 1 struct tag_func_struct { const char *name; @@ -647,12 +645,12 @@ struct tag_func_struct int flag; }; static struct tag_func_struct tag_funcs[] = { - [SWFDEC_TAG_END] = {"End", tag_func_end, SPRITE}, - [SWFDEC_TAG_SHOWFRAME] = {"ShowFrame", tag_func_show_frame, SPRITE}, + [SWFDEC_TAG_END] = {"End", tag_func_end, SWFDEC_TAG_DEFINE_SPRITE }, + [SWFDEC_TAG_SHOWFRAME] = {"ShowFrame", tag_func_show_frame, SWFDEC_TAG_DEFINE_SPRITE }, [SWFDEC_TAG_DEFINESHAPE] = {"DefineShape", ta...
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
...oolean skip_scripts, gboolean first_time) { SwfdecMovie *mov = SWFDEC_MOVIE (movie); SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context); @@ -347,6 +347,70 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf SWFDEC_ERROR ("too many ShowFrame tags"); } return FALSE; + case SWFDEC_TAG_EXPORTASSETS: + { + SwfdecResource *resource = swfdec_movie_get_own_resource (mov); + guint i, count; + + g_assert (resource); /* must hold, ExportAssets can only be in root movies */ + if (!first_time) + return TRUE; + count =...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...FDEC_TAG_REMOVEOBJECT2: - { - SwfdecBits bits; - swfdec_bits_init (&bits, buffer); - if (tag == SWFDEC_TAG_REMOVEOBJECT) - swfdec_bits_get_u16 (&bits); - g_print (" %4u %5u remove\n", j, swfdec_bits_get_u16 (&bits)); - } - break; - case SWFDEC_TAG_SHOWFRAME: - j++; - break; - case SWFDEC_TAG_STARTSOUND: - /* FIXME add info about what sound etc */ - g_print (" %4u start sound\n", j); - break; - case SWFDEC_TAG_EXPORTASSETS: - g_print (" %4u export\n", j); - break; - case SWFDEC_TAG_DOINITACTION: - g_print (&quot...
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
...return swfdec_sprite_movie_perform_place (movie, &bits, tag); diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c index dd552e4..1b18fd2 100644 --- a/libswfdec/swfdec_tag.c +++ b/libswfdec/swfdec_tag.c @@ -586,7 +586,7 @@ static struct tag_func_struct tag_funcs[] = { [SWFDEC_TAG_SHOWFRAME] = {"ShowFrame", tag_func_show_frame, SWFDEC_TAG_DEFINE_SPRITE }, [SWFDEC_TAG_DEFINESHAPE] = {"DefineShape", tag_define_shape, 0}, [SWFDEC_TAG_FREECHARACTER] = {"FreeCharacter", NULL, 0}, - [SWFDEC_TAG_PLACEOBJECT] = {"PlaceObject", NULL, SWFDEC_TAG_D...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...SE; + i = i & 0x3F; + if (i == 0x3F) { + i = data[0] + (data[1] << 8) + (data[2] << 16) + (data[3] << 24); + data += 4; + len -= 31; + } else { + len -= 27; + } + /* 3) check size of tag is correct */ + if (i >= len + 2) + return FALSE; + /* 4) check a ShowFrame comes next */ + if (data[i] != 0x40 || data[i + 1] != 0x00) + return FALSE; + /* trust the data */ + len = i; + for (i = 0; i < len; i++) { + switch (i % 16) { + case 0: + if (i == 0) + g_print (" 0x%02X", data[i]); + else + g_print (",\n 0x%02X", data[i...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...</edges> + </Shape> + </shapes> + </DefineShape> + <DefineSprite objectID="2" frames="1"> + <tags> + <PlaceObject2 replace="0" depth="1" objectID="1" /> + <ShowFrame/> + </tags> + </DefineSprite> + <DefineSprite objectID="3" frames="1"> + <tags> + <PlaceObject2 replace="0" depth="1" objectID="2" allflags1="5" allflags2="0"> + <events...