From zhihaoli.scut at gmail.com Thu Nov 5 03:13:08 2009 From: zhihaoli.scut at gmail.com (=?gbk?B?wO7Wx7rA?=) Date: Thu, 5 Nov 2009 19:13:08 +0800 Subject: [Swfdec] Bug report: Swfdec-Mozilla source code error Message-ID: Dear All, I am reading the source code of Swfdec-Mozilla recently. version: swfdec-mozilla-0.8.2 File: src/plugin.c Line: 292 func: plugin_new original: "if (g_ascii_strcasecmp (argv[j], possibilities[j].name) == 0) {" I think it should be "if (g_ascii_strcasecmp (argv[i], possibilities[j].name) == 0) {" that is argv[j] -> argv[i] PS: this problem still in version 0.9.2 zhihaoli 2009-11-05 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20091105/c4d070b7/attachment.html From luethus at gmail.com Sun Nov 8 06:50:57 2009 From: luethus at gmail.com (Evgeny Zinoviev) Date: Sun, 8 Nov 2009 16:50:57 +0200 Subject: [Swfdec] screenshot of swf file Message-ID: 1. Sorry for my bad english 2. Please, help me :) I need to take a screenshot of swf and save it as image file. I found this: http://www.mail-archive.com/swfdec at lists.freedesktop.org/msg00403.html I wrote something like this, but it doesn't save screenshot to file, it save just empty png file with transparent background. How can I fix it? Evgeny. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20091108/9f5b020b/attachment.htm From luethus at gmail.com Sun Nov 8 06:52:39 2009 From: luethus at gmail.com (Evgeny Zinoviev) Date: Sun, 8 Nov 2009 16:52:39 +0200 Subject: [Swfdec] screenshot of swf file In-Reply-To: References: Message-ID: #include #include #include #include using namespace std; 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 = swfdec_url_new_from_input(input); swfdec_player_set_url(player, url); swfdec_player_save(player, 300, 300, output); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20091108/dc2dd6ad/attachment.htm From otte at gnome.org Sun Nov 8 07:07:18 2009 From: otte at gnome.org (Benjamin Otte) Date: Sun, 8 Nov 2009 16:07:18 +0100 Subject: [Swfdec] screenshot of swf file In-Reply-To: References: Message-ID: Hey, you'll need to forward the Flash movie to the location that you want to screenshot (using swfdec_player_advance) before taking the screenie. Have a look at what http://git.gnome.org/cgit/swfdec-gnome/tree/thumbnailer/swfdec-thumbnailer.c does Benjamin On Sun, Nov 8, 2009 at 3:50 PM, Evgeny Zinoviev wrote: > 1. Sorry for my bad english > 2. Please, help me :) > > I need to take a screenshot of swf? and save it as image file. I found this: > http://www.mail-archive.com/swfdec at lists.freedesktop.org/msg00403.html > I wrote something like this, but it doesn't save screenshot to file, it save > just empty png file with transparent background. > How can I fix it? > > Evgeny. > > _______________________________________________ > Swfdec mailing list > Swfdec at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/swfdec > >