Displaying 17 results from an estimated 17 matches for "swfdec_sprite_movie_perform_one_act".
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 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
...character->id);
return g_hash_table_lookup (instance->export_names, character);
}
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index e8d4062..10fc011 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -363,7 +363,6 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
SWFDEC_ERROR ("cannot export id %u, no name was given", id);
} else {
SWFDEC_LOG ("exporting %s %u as %s", G_OBJECT_TYPE_NAME (object), id, name);
- g_print ("exporting %s %u as %s\n", G_OBJECT_TYPE_NAME...
2008 Sep 30
1
gstreamer error
...r:
<snip>
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_sprite_movie.c(458):
swfdec_sprite_movie_perform_one_action: cannot export id 65533 as GStreamer, id wasn't found
</snip>
This happens using the 0.8.0 tarball as well with the latest git
checkout or the 0.6 Debian packages. Swfdec is linked against the
Debian SID GStreamer packages 0.10.20
Any ideas?
:wq buz
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
...c to swfdec_sprite_movie.c.
This patch achieves the following:
- DisplayList tags are no longer parsed and 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-&...
2008 Jan 27
2
[Bug 14264] New: flash ad that kills your machine
...x
10001 2.2104 libswfdec-0.5.so.5.0.0 swfdec_player_iterate
7779 1.7193 libswfdec-0.5.so.5.0.0 __i686.get_pc_thunk.bx
7624 1.6850 libswfdec-0.5.so.5.0.0 swfdec_movie_find
6825 1.5084 libglib-2.0.so.0.1400.5 g_hash_table_lookup
6611 1.4611 libswfdec-0.5.so.5.0.0
swfdec_sprite_movie_perform_one_action
6277 1.3873 libgobject-2.0.so.0.1400.5 g_type_check_instance_is_a
5581 1.2335 libswfdec-0.5.so.5.0.0 swfdec_bits_getbits
5581 1.2335 libswfdec-0.5.so.5.0.0 swfdec_sprite_movie_iterate_end
5264 1.1634 libswfdec-0.5.so.5.0.0 swfdec_movie_set_static_properties
4923...
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
...int swfdec_sprite_get_frame (SwfdecSprite * sprite,
const char * label);
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 5e96105..d42aac3 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -288,7 +288,7 @@ swfdec_sprite_movie_perform_one_action (
swfdec_bits_init (&bits, buffer);
SWFDEC_LOG ("%p: executing %uth tag %s in frame %u", movie, movie->next_action - 1,
- swfdec_swf_decoder_get_tag_name (tag), mov->frame);
+ swfdec_swf_decoder_get_tag_name (tag), movie->frame);
switch (tag) {
c...
2007 Jun 14
0
Branch 'as' - 4 commits - libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c player/swfdec_debug_movies.c
...content->has_color_transform = TRUE;
}
swfdec_bits_syncbits (bits);
if (has_ratio) {
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 3996095..14a307c 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -86,8 +86,9 @@ swfdec_sprite_movie_perform_one_action (
child = swfdec_movie_find (mov, content->depth);
if (child != NULL) {
/* FIXME: add ability to change characters - This needs lots of refactoring */
- swfdec_movie_set_static_properties (child, &content->transform,
- &content->color_transform, content->r...
2007 Jun 14
0
Branch 'as' - 7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c player/Makefile.am
...Thu Jun 14 13:38:03 2007 +0200
set the properties on the child not on ourselves (d'oh)
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index da8dad4..3fc00f3 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -86,7 +86,7 @@ swfdec_sprite_movie_perform_one_action (
child = swfdec_movie_find (mov, content->depth);
if (child != NULL) {
/* FIXME: add ability to change characters - This needs lots of refactoring */
- swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL,
+ swfdec_movie_set...
2007 Oct 25
0
4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
...nst char * name);
const char * swfdec_resource_get_export_name (SwfdecResource * root,
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 10fc011..e38a3e1 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -358,14 +358,13 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
name = swfdec_bits_get_string_with_version (&bits, SWFDEC_AS_CONTEXT (player)->version);
if (object == NULL) {
SWFDEC_ERROR ("cannot export id %u as %s, id wasn't found", id, name);
- g_free (name);
} else if (n...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...movie->depth < depth)
- continue;
- if (movie->depth == depth)
- return movie;
- break;
- }
- return NULL;
-}
-
static gboolean
swfdec_sprite_movie_remove_child (SwfdecMovie *movie, int depth)
{
@@ -73,7 +57,7 @@ swfdec_sprite_movie_run_script (gpointer
static void
swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, SwfdecSpriteAction *action,
- gboolean skip_scripts, GList **movie_list)
+ gboolean skip_scripts)
{
SwfdecMovie *mov = SWFDEC_MOVIE (movie);
SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context);
@@ -90,28 +74,26 @@ swfdec_sprite_movie_...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...if (has_name) {
- char *s = swfdec_bits_get_string_with_version (bits, version);
+ char *s = swfdec_bits_get_string (bits, version);
name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), s);
SWFDEC_LOG (" name = %s", name);
} else {
@@ -425,7 +425,7 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
char *name;
id = swfdec_bits_get_u16 (&bits);
object = swfdec_swf_decoder_get_character (SWFDEC_SWF_DECODER (resource->decoder), id);
- name = swfdec_bits_get_string_with_version (&bits, SWFDEC_AS_CONTEXT (player)->version);
+...
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
...e.c
@@ -62,7 +62,7 @@ swfdec_sprite_movie_remove_child (Swfdec
}
static void
-swfdec_sprite_movie_run_script (SwfdecMovie *movie, gpointer data)
+swfdec_sprite_movie_run_script (gpointer movie, gpointer data)
{
swfdec_script_execute (data, SWFDEC_SCRIPTABLE (movie));
}
@@ -121,9 +121,10 @@ swfdec_sprite_movie_perform_one_action (
}
static void
-swfdec_sprite_movie_do_goto_frame (SwfdecMovie *mov, gpointer data)
+swfdec_sprite_movie_do_goto_frame (gpointer moviep, gpointer data)
{
- SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (mov);
+ SwfdecSpriteMovie *movie = SWFDEC_SPRITE_MOVIE (moviep);
+ SwfdecMovie *mov...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...lk = walk->next) {
SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (walk->data);
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 74d2160..f23c4c1 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -123,20 +123,59 @@ swfdec_sprite_movie_perform_one_action (
}
static void
-swfdec_sprite_movie_do_goto_frame (gpointer moviep, gpointer data)
+swfdec_movie_tell_about_removal (SwfdecMovie *movie)
+{
+ GList *walk;
+ if (movie->will_be_removed)
+ return;
+ movie->will_be_removed = TRUE;
+ for (walk = movie->list; walk; walk = walk-&g...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...the stuff used by us */
guint unnamed_count; /* variable used for naming unnamed movies */
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 3e25eb9..c0d0647 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -74,7 +74,7 @@ swfdec_sprite_movie_perform_one_action (
gboolean skip_scripts, GList **movie_list)
{
SwfdecMovie *mov = SWFDEC_MOVIE (movie);
- SwfdecPlayer *player = SWFDEC_ROOT_MOVIE (mov->root)->player;
+ SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context);
SwfdecMovie *child;
SwfdecContent *content;...
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
...e->swf->decoder), bits, id);
+ chunk = swfdec_sound_parse_chunk (SWFDEC_SWF_DECODER (movie->resource->decoder), bits, id);
if (chunk) {
SwfdecAudio *audio = swfdec_audio_event_new_from_chunk (SWFDEC_PLAYER (
SWFDEC_AS_OBJECT (movie)->context), chunk);
@@ -301,7 +303,7 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (mov)->context);
SwfdecBits bits;
- g_assert (mov->swf);
+ g_assert (mov->resource);
swfdec_bits_init (&bits, buffer);
SWFDEC_LOG ("%p: executing %uth tag %s in fr...
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
...77,7 +145,7 @@ swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g
gboolean has_transform;
gboolean has_character;
gboolean move;
- gboolean depth;
+ int depth;
gboolean cache;
gboolean has_blend_mode = 0;
gboolean has_filter = 0;
@@ -311,6 +379,8 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
swfdec_player_add_action_script (player, mov, script, 2);
}
return TRUE;
+ case SWFDEC_TAG_PLACEOBJECT:
+ return swfdec_sprite_movie_perform_old_place (movie, &bits, tag);
case SWFDEC_TAG_PLACEOBJECT2:
case SWFDEC_TA...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...on Jan 21 09:28:33 2008 +0100
parse exports names with the version of their Flash file
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 2eaafe6..e014ece 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -418,12 +418,14 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
count = swfdec_bits_get_u16 (&bits);
SWFDEC_LOG ("exporting %u assets", count);
for (i = 0; i < count && swfdec_bits_left (&bits); i++) {
+ SwfdecSwfDecoder *s = SWFDEC_SWF_DECODER (resource->decoder);
guint id...