search for: swfdec_player_render

Displaying 20 results from an estimated 31 matches for "swfdec_player_render".

2007 Aug 09
1
swfdec ported on arm
...a player for framebuffer. But its too slow!! Can you tell me the reason behind this? Can i increase speed by somehow? I doubt my code for player. I have written following loop in my player: while(1) { diff = swfdec_player_get_next_event(player); swfdec_player_advance(player, diff); swfdec_player_render(player, cr, 0, 0, w, h); } Shall I add something? Thanks in advance. Shabbir -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20070809/53489498/attachment.htm
2009 Apr 01
1
[Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
...swfdec_movie_render (movie=0xa2a88a8, cr=0xc3e2c60, color_transform=0xf361ed60) at swfdec_movie.c:804 trans = {mask = 0, ra = 256, rb = 0, ga = 256, gb = 0, ba = 256, bb = 0, aa = 256, ab = 0} group = 0 __PRETTY_FUNCTION__ = "swfdec_movie_render" #13 0xf35c7606 in swfdec_player_render_with_renderer (player=0xa29e018, cr=0xc3e2c60, renderer=0xa23bd40) at swfdec_player.c:3148 movie = (SwfdecMovie *) 0x201 priv = <value optimized out> walk = (GList *) 0xa37e120 trans = {mask = 0, ra = 256, rb = 0, ga = 256, gb = 0, ba = 256, bb = 0, aa = 256, a...
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit a31d0686b78df2da96b9d8d1e3220e63978bba30 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 20:02:04 2007 +0100 s/swfdec_player_get_image_size/swfdec_player_get_default_size/ diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c index
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...s.txt index 43457d5..4a45ff4 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -45,6 +45,8 @@ swfdec_player_is_initialized swfdec_player_get_rate swfdec_player_get_image_size swfdec_player_get_next_event +swfdec_player_get_background_color +swfdec_player_set_background_color swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 2255771..a1b9660 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -1,5 +1,5 @@ /* Swfdec - * Copyright (C) 2006 Benjamin Otte <otte@gnome.org>...
2010 Jan 17
1
screenshot of swf file
...h> #include <cairo.h> void swfdec_player_save (SwfdecPlayer *player, guint width, guint height, const char *filename) { cairo_surface_t *surface; cairo_t *cr; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); cr = cairo_create (surface); swfdec_player_render (player, cr); cairo_destroy (cr); cairo_surface_write_to_png (surface, filename); cairo_surface_destroy (surface); } int main(int argc, char *argv[]) { char *input = argv[1]; char *output = argv[2]; SwfdecPlayer *player = swfdec_player_new(NULL); SwfdecURL *url =...
2008 Jun 17
2
[Bug 16395] New: glib abort for "double free or corruption" in jpeg code
...e_render+0x283)[0xb1a9ce43] /usr/local/lib/libswfdec-0.7.so.0[0xb1a9f89d] /usr/local/lib/libswfdec-0.7.so.0(swfdec_movie_render+0x283)[0xb1a9ce43] /usr/local/lib/libswfdec-0.7.so.0[0xb1a9f89d] /usr/local/lib/libswfdec-0.7.so.0(swfdec_movie_render+0x283)[0xb1a9ce43] /usr/local/lib/libswfdec-0.7.so.0(swfdec_player_render_with_renderer+0x24c)[0xb1aad11c] /usr/local/lib/libswfdec-0.7.so.0(swfdec_player_render+0xaf)[0xb1aad3cf] /usr/local/lib/mozilla/plugins/libswfdecmozilla.so(swfmoz_player_render+0x1a3)[0xb348a373] /usr/local/lib/mozilla/plugins/libswfdecmozilla.so[0xb348ad8d] /usr/lib/libglib-2.0.so.0[0xb743ce01] /...
2008 Jun 01
0
[Announce] PySwfdec 0.6.6.2
...1 2008) =================================== o Fix swfdec.URL and make AsDebugger optional in swfdec.Player constructor. (Gian Mario) o Manually wrap swfdec.ui.Player constructor. (Gian Mario) o Make a very simple (but working this time..) example. (Gian Mario) o Manually wrap swfdec_player_render to work around a segfault (possibly pycairo API change). (Gian Mario) o Restore swfdec.Audio. (Gian Mario) o Rewrite the docs. (Gian Mario) o Fix function names. (Gian Mario) Blurb: ====== Swfdec [1] is the library for decoding and rendering Flash animations. It is still in heavy...
2007 Dec 17
0
2 commits - doc/Makefile.am doc/swfdec-sections.txt NEWS
...swfdec_rect.h \ swfdec_resource.h \ swfdec_resource_request.h \ diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index 4a5e12a..09d067e 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -92,7 +92,9 @@ swfdec_player_get_alignment swfdec_player_set_alignment swfdec_player_render swfdec_player_advance -swfdec_player_handle_mouse +swfdec_player_mouse_move +swfdec_player_mouse_press +swfdec_player_mouse_release swfdec_player_key_press swfdec_player_key_release swfdec_player_render_audio @@ -100,6 +102,7 @@ swfdec_player_get_audio swfdec_player_get_maximum_runtime swfdec...
2007 Aug 05
0
7 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec.h libswfdec/swfdec_key.h libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...at gnome.org> Date: Fri Aug 3 13:00:12 2007 +0200 make documentation key function aware diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index a58478d..69d7785 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -91,6 +91,8 @@ swfdec_player_set_alignment swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse +swfdec_player_key_press +swfdec_player_key_release swfdec_player_render_audio swfdec_player_get_audio <SUBSECTION Standard> @@ -142,6 +144,7 @@ SwfdecLoaderDataType SwfdecLoaderRequest swfdec_loader_data_type_get_extension SwfdecAlignm...
2007 Dec 19
1
some questions about swfdec
...dering to a memory buffer, and then compositing the resulting buffer into cairo. Are you planning to continue with this methodology, or will it change in future releases ? third, if one wanted to pull the current image state from cairo, what would be the best way to do this ? I am guessing that in swfdec_player_render(), the following would fill out a memory buffer with the current contents: for (walk = priv->roots; walk; walk = walk->next) { swfdec_movie_render (walk->data, cr, &trans, &real); } SWFDEC_INFO ("=== %p: END RENDER ===", player); cairo_restore (cr); // n...
2007 Nov 18
2
[Bug 13293] New: _cairo_pen_find_active_cw_vertex_index failed assertion
...---Type <return> to continue, or q <return> to quit--- color_transform=0xbfe97b08, inval=0xbfe97ae8) at swfdec_movie.c:885 #20 0xb0da0767 in swfdec_movie_render (movie=0xa4417f0, cr=0xa46ab78, color_transform=0xb0de6380, inval=0xbfe97be0) at swfdec_movie.c:885 #21 0xb0dac49c in swfdec_player_render (player=0xa2861e0, cr=0xa46ab78, x=309, y=203, width=451, height=204) at swfdec_player.c:2249 #22 0xb20111c6 in swfmoz_player_render (player=0x8ea5150, region=0xa4671a0) at swfmoz_player.c:610 #23 0xb2011a94 in swfmoz_player_idle_redraw (playerp=0x8ea5150) at swfmoz_player.c:157 #24 0x...
2007 Nov 01
0
4 commits - libswfdec/swfdec_sound_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/crashfinder.c test/Makefile.am
...mer_elapsed (timer, NULL) * 1000); + if (elapsed >= max_per_file) + break; + swfdec_player_set_maximum_runtime (player, + MIN (max_per_advance, max_per_file - elapsed)); + + advance = swfdec_player_get_next_event (player); + swfdec_player_advance (player, advance); + + swfdec_player_render (player, cr, 0, 0, 0, 0); + + played += advance; + } + + if (elapsed >= max_per_file || + swfdec_as_context_is_aborted (SWFDEC_AS_CONTEXT (player))) { + g_print ("Aborted: %s\n", filenames[i]); + aborts = TRUE; + } else { + g_print ("Finished: %s\n&quo...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...enjamin Otte <otte@gnome.org> Date: Mon Mar 26 22:05:55 2007 +0200 s/swfdec_gtk_player_[gs]et_audio/&_enabled/ diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index f33b594..a6e2d96 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -57,7 +57,7 @@ swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse swfdec_player_render_audio -swfdec_player_get_audio +swfdec_player_get_audio_enabled <SUBSECTION Standard> SwfdecPlayerClass SWFDEC_PLAYER @@ -117,8 +117,8 @@ swfdec_gtk_player_get_playing swfdec_gtk_player_set_playing swfdec_gtk_player...
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
...t index 29528af..9c9eb75 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -57,6 +57,8 @@ swfdec_player_get_background_color swfdec_player_set_background_color swfdec_player_get_scale_mode swfdec_player_set_scale_mode +swfdec_player_get_alignment +swfdec_player_set_alignment swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index f5dafd6..cb45d3e 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -120,7 +120,7 @@ * @SWFDEC_SCALE_SHOW_ALL: Show the whole content as large as poss...
2007 Aug 26
0
9 commits - libswfdec-gtk/swfdec_source.c libswfdec/swfdec_marshal.list libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c test/dump.c test/Makefile.am
...LOADER (loader)); - swfdec_player_lock (player); player->loader = loader; g_object_ref (loader); swfdec_player_add_level_from_loader (player, 0, loader, variables); - swfdec_player_perform_external_actions (player); - swfdec_player_unlock (player); } /** @@ -1934,11 +1938,10 @@ swfdec_player_render (SwfdecPlayer *play * often as the SwfdecPlayer::next-event property indicates. **/ void -swfdec_player_advance (SwfdecPlayer *player, guint msecs) +swfdec_player_advance (SwfdecPlayer *player, gulong msecs) { guint frames; g_return_if_fail (SWFDEC_IS_PLAYER (player)); - g_return_if_fa...
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...(player, msecs); - } - swfdec_player_get_default_size (player, &w, &h); - if (w == 0 || h == 0) { - g_print (" ERROR: width and height not set\n"); - goto error; - } - surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); - cr = cairo_create (surface); - swfdec_player_render (player, cr, 0, 0, w, h); - cairo_destroy (cr); - if (!image_diff (surface, filename)) { - cairo_surface_destroy (surface); - goto error; - } - cairo_surface_destroy (surface); - g_object_unref (player); - g_print (" OK\n"); - return TRUE; - -error: - if (player) - g_ob...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...e maximum time a player may run before aborting. It's not used yet. diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index b3b4425..e423b7a 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -97,6 +97,8 @@ swfdec_player_key_press swfdec_player_key_release swfdec_player_render_audio swfdec_player_get_audio +swfdec_player_get_maximum_runtime +swfdec_player_set_maximum_runtime <SUBSECTION Standard> SwfdecPlayerClass SWFDEC_PLAYER diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index a726b3b..3ed0d5a 100644 --- a/libswfdec/swfdec_player.c +++ b/...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...o->player->audio = g_list_remove (audio->player->audio, audio); + priv->audio = g_list_remove (priv->audio, audio); if (audio->added) { g_signal_emit_by_name (audio->player, "audio-removed", audio); audio->added = FALSE; @@ -197,7 +201,7 @@ swfdec_player_render_audio (SwfdecPlayer *player, gint16* dest, g_return_if_fail (n_samples > 0); SWFDEC_LOG ("rendering offset %u, samples %u", start_offset, n_samples); - for (walk = player->audio; walk; walk = walk->next) { + for (walk = player->priv->audio; walk; walk = walk->n...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...ce (player, msecs); + } + swfdec_player_get_image_size (player, &w, &h); + if (w == 0 || h == 0) { + g_print (" ERROR: width and height not set\n"); + goto error; + } + surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h); + cr = cairo_create (surface); + swfdec_player_render (player, cr, 0, 0, w, h); + cairo_destroy (cr); + if (!image_diff (surface, filename)) { + cairo_surface_destroy (surface); + goto error; + } + cairo_surface_destroy (surface); + g_object_unref (player); + return TRUE; + +error: + if (error) + g_error_free (error); + if (player) +...
2007 Mar 29
0
Branch 'as' - 9 commits - configure.ac doc/swfdec-sections.txt 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_stack.c
...ed]) -SWFDEC_LIBVERSION="2:0:0" +SWFDEC_LIBVERSION="3:0:0" AC_SUBST(SWFDEC_LIBVERSION) AM_PROG_LIBTOOL diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index a6e2d96..3d270af 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -57,7 +57,7 @@ swfdec_player_render swfdec_player_advance swfdec_player_handle_mouse swfdec_player_render_audio -swfdec_player_get_audio_enabled +swfdec_player_get_audio <SUBSECTION Standard> SwfdecPlayerClass SWFDEC_PLAYER @@ -73,7 +73,9 @@ SWFDEC_PLAYER_GET_CLASS <FILE>SwfdecBuffer</FILE> <TITLE>Swfd...