Displaying 20 results from an estimated 25 matches for "swfdec_movie_rend".
Did you mean:
swfdec_movie_render
2009 Apr 01
1
[Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
...eo_provider_get_image"
#5 0xf35fe7d3 in swfdec_video_movie_render (mov=0xbb5a000, cr=0xc3e2c60,
trans=0xffc319c4) at swfdec_video_movie.c:59
surface = <value optimized out>
width = <value optimized out>
height = <value optimized out>
#6 0xf35b67f2 in swfdec_movie_render (movie=0xbb5a000, cr=0xc3e2c60,
color_transform=0xffc31b64) 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"
#7 0xf35b8e3a in swfdec_movie_do_re...
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;
2008 Jun 17
2
[Bug 16395] New: glib abort for "double free or corruption" in jpeg code
...ibswfdec-0.7.so.0[0xb1aa735e]
/usr/local/lib/libswfdec-0.7.so.0(swfdec_draw_paint+0x7e)[0xb1a8e55e]
/usr/local/lib/libswfdec-0.7.so.0[0xb1aba71e]
/usr/local/lib/libswfdec-0.7.so.0(swfdec_graphic_render+0x2c)[0xb1a94c0c]
/usr/local/lib/libswfdec-0.7.so.0[0xb1a94fe5]
/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[0xb1a9f89d]
/usr/local/lib/libswfdec-0.7.so.0(swfdec_movie_render+0x283)[0xb1a9ce43]
/usr/local/lib/libswfdec-0.7.so.0(swfdec...
2007 Nov 18
2
[Bug 13293] New: _cairo_pen_find_active_cw_vertex_index failed assertion
...16 0xb0d98dfc in swfdec_graphic_render (graphic=0x220a, cr=0xa46ab78,
trans=0xbfe97888, inval=0xbfe97868) at swfdec_graphic.c:59
#17 0xb0d99135 in swfdec_graphic_movie_render (movie=0xa442e08, cr=0xa46ab78,
trans=0xbfe97888, inval=0xbfe97868) at swfdec_graphic_movie.c:49
#18 0xb0da067f in swfdec_movie_render (movie=0xa442e08, cr=0xa46ab78,
color_transform=0xbfe979c8, inval=0xbfe979a8) at swfdec_movie.c:895
#19 0xb0da0767 in swfdec_movie_render (movie=0xa4419e8, cr=0xa46ab78,
---Type <return> to continue, or q <return> to quit---
color_transform=0xbfe97b08, inval=0xbfe97ae8) at s...
2007 Dec 19
1
some questions about swfdec
...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);
// new stuff
cairo_surface_t surf=cairo_get_target(cr);
memcpy(imgbuf,cairo_image_surface_get_data(surf),bufsize);
Presumably one could also hide the cairo...
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
...r masks
Previously they were not computed at all (oops) and that could cause masked
movies to disappear...
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 400ca2e..547155b 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -950,12 +950,20 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_pattern_t *mask;
if (movie->parent == movie->masked_by->parent) {
cairo_transform (cr, &movie->inverse_matrix);
+ rect = *inval;
} else {
- cairo_matrix_t mat;
+ cairo_matrix_t mat, mat2;
swfdec_mo...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...;masked_by = NULL;
+ movie->masked_by = NULL;
+ movie->mask_of = NULL;
/* FIXME: figure out how to handle destruction pre-init/construct.
* This is just a stop-gap measure to avoid dead movies in those queues */
swfdec_player_remove_all_actions (player, movie);
@@ -796,7 +803,7 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
g_return_if_fail (color_transform != NULL);
g_return_if_fail (inval != NULL);
- if (movie->mask_of != NULL) {
+ if (movie->mask_of != NULL && !swfdec_color_transform_is_mask (color_transform)) {
SWFDEC_LOG ("not rendering %s %p...
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
...{
- SWFDEC_INFO ("couldn't paint the background, using white");
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- cairo_paint (cr);
- }
+ swfdec_color_set_source (cr, player->bgcolor);
+ cairo_paint (cr);
for (walk = player->roots; walk; walk = walk->next) {
swfdec_movie_render (walk->data, cr, &trans, &real, TRUE);
@@ -1299,3 +1303,42 @@ swfdec_player_get_audio (SwfdecPlayer *
return player->audio;
}
+/**
+ * swfdec_player_get_background_color:
+ * @player: a #SwfdecPlayer
+ *
+ * Gets the current background color. The color will be an ARGB-quad, w...
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...it_identity (matrix);
+ while (movie) {
+ cairo_matrix_multiply (matrix, matrix, &movie->matrix);
+ movie = movie->parent;
+ }
+}
+
+void
swfdec_movie_global_to_local (SwfdecMovie *movie, double *x, double *y)
{
g_return_if_fail (SWFDEC_IS_MOVIE (movie));
@@ -876,7 +902,11 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
if (movie->parent == movie->masked_by->parent) {
cairo_transform (cr, &movie->inverse_matrix);
} else {
- SWFDEC_FIXME ("implement different parents when masking");
+ cairo_matrix_t mat;
+ swfdec_movie_loc...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...+ case 11:
+ case 13:
+ case 14:
+ SWFDEC_WARNING ("blend mode %u unimplemented in cairo", blend_mode);
+ return CAIRO_OPERATOR_OVER;
+ default:
+ SWFDEC_WARNING ("invalid blend mode %u", blend_mode);
+ return CAIRO_OPERATOR_OVER;
+ }
+}
+
void
swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
const SwfdecColorTransform *color_transform, const SwfdecRect *inval, gboolean fill)
@@ -694,6 +731,7 @@ swfdec_movie_render (SwfdecMovie *movie,
int clip_depth = 0;
SwfdecColorTransform trans;
SwfdecRect rect;
+ gboolean group;
g_return_if_fa...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...;list = g_list_sort (movie->parent->list, swfdec_movie_compare_depths);
+ swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
@@ -739,6 +742,38 @@ swfdec_movie_render (SwfdecMovie *movie,
}
static void
+swfdec_movie_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecMovie *movie = SWFDEC_MOVIE (object);
+
+ switch (param_id) {
+ case PROP_DEPTH:
+ g_value_set_int (value, movie->depth);
+ bre...
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
...epth, clip->clip_depth);
+ clip_depth = child->clip_depth;
}
break;
}
}
}
- if (child->content->clip_depth) {
+ if (child->clip_depth) {
SWFDEC_LOG ("resetting clip depth");
clip_depth = 0;
continue;
@@ -691,13 +644,13 @@ swfdec_movie_render (SwfdecMovie *movie,
swfdec_rect_transform (&rect, inval, &movie->inverse_matrix);
SWFDEC_LOG ("%sinvalid area is now: %g %g %g %g", movie->parent ? " " : "",
rect.x0, rect.y0, rect.x1, rect.y1);
- swfdec_color_transform_chain (&tra...
2007 Nov 09
0
10 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_loader.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h
...pe_get_name (condition);
if (name != NULL) {
swfdec_as_object_call_with_security (SWFDEC_AS_OBJECT (movie),
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 1bb161a..62abf12 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -241,6 +241,7 @@ void swfdec_movie_render (SwfdecMovie * movie,
cairo_t * cr,
const SwfdecColorTransform *trans,
const SwfdecRect * inval);
+guint swfdec_movie_get_version (SwfdecMovie * movie);
void swfdec_movie_execute (SwfdecMovie * movie,
SwfdecEventType condition);
gboolean swfdec_mov...
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
...min Otte <otte@gnome.org>
Date: Thu Mar 22 13:45:00 2007 +0100
clarify the g_warning: It's a cairo error
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 17e2217..3317fb2 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -644,7 +644,7 @@ swfdec_movie_render (SwfdecMovie *movie,
}
#endif
if (cairo_status (cr) != CAIRO_STATUS_SUCCESS) {
- g_warning ("%s", cairo_status_to_string (cairo_status (cr)));
+ g_warning ("error rendering with cairo: %s", cairo_status_to_string (cairo_status (cr)));
}
cairo_restore (cr);...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...,
+ movie->image->height * SWFDEC_TWIPS_SCALE_FACTOR };
+ swfdec_rect_union (rect, rect, &image_extents);
+ }
for (walk = movie->list; walk; walk = walk->next) {
swfdec_rect_union (rect, rect, &SWFDEC_MOVIE (walk->data)->extents);
}
@@ -880,6 +887,20 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
swfdec_draw_paint (draw, cr, &trans);
}
+ /* if the movie loaded an image, draw it here now */
+ if (movie->image) {
+ cairo_surface_t *surface = swfdec_image_create_surface_transformed (movie->image,
+ &trans);
+ if (surface) {
+...
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
...56,8 +153,6 @@ struct _SwfdecMovieClass {
int button);
/* iterating */
- void (* goto_frame) (SwfdecMovie * movie,
- guint frame);
void (* iterate_start) (SwfdecMovie * movie);
gboolean (* iterate_end) (SwfdecMovie * movie);
};
@@ -207,8 +202,6 @@ void swfdec_movie_render (SwfdecMovie
const SwfdecColorTransform *trans,
const SwfdecRect * inval,
gboolean fill);
-void swfdec_movie_goto (SwfdecMovie * movie,
- guint frame);
void swfdec_movie_execute_script (SwfdecMovie * movie,
SwfdecEventType condition);
gboolean...
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
...f (klass->init_movie)
klass->init_movie (movie);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 0351b54..2890f9c 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -185,6 +185,8 @@ void swfdec_movie_render (SwfdecMovie
gboolean fill);
void swfdec_movie_goto (SwfdecMovie * movie,
guint frame);
+void swfdec_movie_execute_script (SwfdecMovie * movie,
+ SwfdecEventType condition);
gboolean swfdec_movie_queue_script (SwfdecMovie * movie,
SwfdecEventType...
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
...VENT_CONSTRUCT);
swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
}
swfdec_movie_initialize (movie);
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index d074ba9..d33d53b 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -240,7 +240,7 @@ void swfdec_movie_render (SwfdecMovie * movie,
cairo_t * cr,
const SwfdecColorTransform *trans,
const SwfdecRect * inval);
-void swfdec_movie_execute_script (SwfdecMovie * movie,
+void swfdec_movie_execute (SwfdecMovie * movie,
SwfdecEventType condition);
gboolean 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
...4 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -177,6 +177,7 @@ void swfdec_movie_send_mouse_change (Sw
SwfdecMovie * swfdec_movie_get_movie_at (SwfdecMovie * movie,
double x,
double y);
+char * swfdec_movie_get_path (SwfdecMovie * movie);
void swfdec_movie_render (SwfdecMovie * movie,
cairo_t * cr,
const SwfdecColorTransform *trans,
diff-tree 75e9e227691415642b037d6be0ff7c2ccc90772c (from ae5cb38d44ea9dabd46c38fd5231ef3afcfd86ac)
Author: Benjamin Otte <otte@gnome.org>
Date: Wed Jan 31 10:32:33 2007 +0100
add 2 tests for De...
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
...cr, priv->scale_x / SWFDEC_TWIPS_SCALE_FACTOR, priv->scale_y / SWFDEC_TWIPS_SCALE_FACTOR);
+ swfdec_color_set_source (cr, priv->bgcolor);
cairo_paint (cr);
- for (walk = player->roots; walk; walk = walk->next) {
+ for (walk = priv->roots; walk; walk = walk->next) {
swfdec_movie_render (walk->data, cr, &trans, &real);
}
SWFDEC_INFO ("=== %p: END RENDER ===", player);
@@ -2388,11 +2454,14 @@ swfdec_player_render (SwfdecPlayer *player, cairo_t *cr,
void
swfdec_player_advance (SwfdecPlayer *player, gulong msecs)
{
+ SwfdecPlayerPrivate *priv;
guin...