Displaying 14 results from an estimated 14 matches for "blend_mode".
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
...to throw errors for blend modes anymore
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 56878c9..15d005b 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -184,7 +184,7 @@ swfdec_sprite_movie_perform_place (Swfde
if (has_blend_mode) {
blend_mode = swfdec_bits_get_u8 (bits);
- SWFDEC_ERROR (" blend mode = %u", blend_mode);
+ SWFDEC_LOG (" blend mode = %u", blend_mode);
} else {
blend_mode = 0;
}
diff-tree 2c1b79c0da63c520d630d0417af98bc4ef89e180 (from 61b11b6d0a82bcca7b4cca3c0b3b82e4...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...swfdec_bits_init_bits (&bits, &s->b, length > 2 ? length - 2 : 0);
+ else
+ swfdec_bits_init_bits (&bits, &s->b, swfdec_bits_left (&s->b) / 8);
+ while (swfdec_bits_peek_u8 (&bits)) {
guint character;
guint depth;
guint states;
+ gboolean blend_mode, has_filters;
SwfdecContent *content;
- swfdec_bits_syncbits (bits);
- reserved = swfdec_bits_getbits (bits, 4);
- states = swfdec_bits_getbits (bits, 4);
- character = swfdec_bits_get_u16 (bits);
- depth = swfdec_bits_get_u16 (bits);
+ if (s->version >= 8) {
+ r...
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
..._depth && clip_depth != movie->clip_depth) {
movie->clip_depth = clip_depth;
/* FIXME: is this correct? */
- swfdec_movie_invalidate (movie->parent ? movie->parent : movie);
+ swfdec_movie_invalidate_last (movie->parent ? movie->parent : movie);
}
if (blend_mode != movie->blend_mode) {
movie->blend_mode = blend_mode;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
}
if (events) {
if (SWFDEC_IS_SPRITE_MOVIE (movie)) {
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 6ecc285..6b5b00...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...swfdec_bits_init_bits (&bits, &s->b, length > 2 ? length - 2 : 0);
+ else
+ swfdec_bits_init_bits (&bits, &s->b, swfdec_bits_left (&s->b) / 8);
+ while (swfdec_bits_peek_u8 (&bits)) {
guint character;
guint depth;
guint states;
+ gboolean blend_mode, has_filters;
SwfdecContent *content;
- swfdec_bits_syncbits (bits);
- reserved = swfdec_bits_getbits (bits, 4);
- states = swfdec_bits_getbits (bits, 4);
- character = swfdec_bits_get_u16 (bits);
- depth = swfdec_bits_get_u16 (bits);
+ if (s->version >= 8) {
+ r...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...t (SwfdecLoader * loader,
+ guint version);
void swfdec_string_append_urlencoded (GString * str,
const char * name,
commit dfd7f26ce1601e9d576973ce5f961c1bf82ed5a3
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Mon Nov 26 23:02:39 2007 +0200
Add SWFDEC_BLEND_MODE defines
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 449877e..1469878 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -759,26 +759,25 @@ static cairo_operator_t
swfdec_movie_get_operator_for_blend_mode (guint blend_mode)
{
switch (blend_mode)...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...copy->original_name = mov->original_name;
+ /* FIXME: are events copied? If so, wouldn't that be a security issue? */
+ swfdec_movie_set_static_properties (copy, &mov->original_transform,
+ &mov->original_ctrans, mov->original_ratio, mov->clip_depth,
+ mov->blend_mode, NULL);
+ swfdec_movie_remove (mov);
+ movie = SWFDEC_SPRITE_MOVIE (copy);
+ }
+ swfdec_player_unroot_object (player, G_OBJECT (resource));
+ return TRUE;
+}
+
static void
swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *loader)
{
SwfdecResource *instance...
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
...urn ret;
}
/**
@@ -1391,6 +1391,12 @@ swfdec_movie_duplicate (SwfdecMovie *movie, const char *name, int depth)
swfdec_movie_set_static_properties (copy, &movie->original_transform,
&movie->original_ctrans, movie->original_ratio, movie->clip_depth,
movie->blend_mode, movie->events);
+ if (SWFDEC_IS_SPRITE_MOVIE (copy)) {
+ swfdec_movie_queue_script (copy, SWFDEC_EVENT_INITIALIZE);
+ swfdec_movie_queue_script (copy, SWFDEC_EVENT_LOAD);
+ swfdec_movie_execute (copy, SWFDEC_EVENT_CONSTRUCT);
+ }
+ swfdec_movie_initialize (movie);
return copy;
}...
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
...143,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
while (swfdec_bits_peek_u8 (&bits)) {
SwfdecBits tmp;
SwfdecBuffer *buffer;
- cairo_matrix_t trans, inverse;
+ cairo_matrix_t trans;
SwfdecColorTransform ctrans;
guint states, gid;
gboolean has_blend_mode, has_filters;
@@ -172,7 +174,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
states & (1 << SWFDEC_BUTTON_OVER) ? "OVER " : "",
states & (1 << SWFDEC_BUTTON_UP) ? "UP " : "");
- swfdec_bits_get_matrix (&...
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
...e;
+ copy->rotation = mov->rotation;
/* FIXME: are events copied? If so, wouldn't that be a security issue? */
swfdec_movie_set_static_properties (copy, &mov->original_transform,
&mov->original_ctrans, mov->original_ratio, mov->clip_depth,
mov->blend_mode, NULL);
swfdec_movie_remove (mov);
+ swfdec_movie_queue_update (copy, SWFDEC_MOVIE_INVALID_MATRIX);
return SWFDEC_SPRITE_MOVIE (copy);
}
commit 74c1e34359f4ecfbe78896a42ff6bf3f79b27d14
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Nov 12 17:23:56 2007 +0100
set loader s...
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
...LSE;
}
- cur = swfdec_movie_new (player, depth, mov, graphic, name);
+ cur = swfdec_movie_new (player, depth, mov, mov->resource, graphic, name);
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, blend_mode, events);
if (SWFDEC_IS_SPRITE_MOVIE (cur)) {
@@ -714,6 +714,7 @@ void
swfdec_sprite_movie_load (SwfdecSpriteMovie *movie, const char *url, SwfdecLoaderRequest request,
SwfdecBuffer *data)
{
+ SwfdecResource *resource;
SwfdecLoader *loader;
g_return_if_fail (SWFDEC_IS_SPRITE_M...
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
...->original_name = mov->original_name;
+ /* FIXME: are events copied? If so, wouldn't that be a security issue? */
+ swfdec_movie_set_static_properties (copy, &mov->original_transform,
+ &mov->original_ctrans, mov->original_ratio, mov->clip_depth,
+ mov->blend_mode, NULL);
+ swfdec_movie_remove (mov);
+ return SWFDEC_SPRITE_MOVIE (copy);
+}
+
static gboolean
swfdec_resource_create_movie (SwfdecResource *resource)
{
@@ -186,21 +206,7 @@ swfdec_resource_create_movie (SwfdecResource *resource)
if (movie == NULL) {
movie = swfdec_player_create_movie_...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...ec_movie.c b/libswfdec/swfdec_movie.c
index 650c476..a223e97 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -886,6 +886,7 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_set_source (cr, pattern);
cairo_set_operator (cr, swfdec_movie_get_operator_for_blend_mode (movie->blend_mode));
cairo_paint (cr);
+ cairo_pattern_destroy (pattern);
}
cairo_restore (cr);
}
commit 8f8d057f061892413cc84a43be781835c6ca909c
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Nov 6 21:47:18 2007 +0100
return -1 for get_next_event_time() when th...
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
...movie, cairo_t *cr,
return;
}
- cairo_save (cr);
+ if (movie->masked_by != NULL) {
+ cairo_push_group (cr);
+ } else {
+ cairo_save (cr);
+ }
group = swfdec_movie_needs_group (movie);
if (group) {
SWFDEC_DEBUG ("pushing group for blend mode %u", movie->blend_mode);
@@ -856,6 +865,14 @@ swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr,
cairo_paint (cr);
cairo_pattern_destroy (pattern);
}
+ if (movie->masked_by) {
+ cairo_pattern_t *mask;
+ mask = swfdec_movie_mask (cr, movie->masked_by, &rect);
+ cairo_pop_group_to_source...
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
...e != NULL, NULL);
@@ -1714,12 +1712,15 @@ swfdec_movie_duplicate (SwfdecMovie *movie, const char *name, int depth)
swfdec_movie_set_static_properties (copy, &movie->original_transform,
&movie->original_ctrans, movie->original_ratio, movie->clip_depth,
movie->blend_mode, movie->events);
+ sandbox = SWFDEC_SANDBOX (SWFDEC_AS_OBJECT (movie)->context->global);
+ swfdec_sandbox_unuse (sandbox);
if (SWFDEC_IS_SPRITE_MOVIE (copy)) {
swfdec_movie_queue_script (copy, SWFDEC_EVENT_INITIALIZE);
swfdec_movie_queue_script (copy, SWFDEC_EVENT_LOAD);...