Displaying 20 results from an estimated 31 matches for "clip_depth".
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
....d7403c5 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -943,10 +943,11 @@ swfdec_movie_new (SwfdecPlayer *player,
*/
void
swfdec_movie_set_static_properties (SwfdecMovie *movie, const cairo_matrix_t *transform,
- const SwfdecColorTransform *ctrans, guint ratio, int clip_depth, SwfdecEventList *events)
+ const SwfdecColorTransform *ctrans, int ratio, int clip_depth, SwfdecEventList *events)
{
g_return_if_fail (SWFDEC_IS_MOVIE (movie));
g_return_if_fail (clip_depth >= -16384 || clip_depth <= 0);
+ g_return_if_fail (ratio >= -1);
if (movie->modi...
2007 Feb 02
0
Branch 'interpreter' - 6 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_compiler.c libswfdec/swfdec_sprite.c test/swfdec-extract.c
...diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite.c
index ffb8eb7..440c3b8 100644
--- a/libswfdec/swfdec_sprite.c
+++ b/libswfdec/swfdec_sprite.c
@@ -376,8 +376,8 @@ swfdec_spriteseg_place_object_2 (SwfdecS
SWFDEC_LOG (" name = %s", content->name);
}
if (has_clip_depth) {
- content->clip_depth = swfdec_bits_get_u16 (bits);
- SWFDEC_LOG (" clip_depth = %d (=> %d)", content->clip_depth, content->clip_depth - 16384);
+ content->clip_depth = swfdec_bits_get_u16 (bits) - 16384;
+ SWFDEC_LOG (" clip_depth = %d (=> %d)"...
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
...dec_event_list_has_conditions (movie->content->events,
+ if (movie->events) {
+ if (!swfdec_event_list_has_conditions (movie->events,
SWFDEC_AS_OBJECT (movie), condition, 0))
return FALSE;
} else {
@@ -618,18 +571,18 @@ swfdec_movie_get_movie_at (SwfdecMovie *
clip_depth = 0;
for (clip_walk = clip_walk->prev; clip_walk; clip_walk = clip_walk->prev) {
SwfdecMovie *clip = walk->data;
- if (clip->content->clip_depth) {
+ if (clip->clip_depth) {
double tmpx = x, tmpy = y;
cairo_matrix_transform_point (&clip->inverse_matrix, &am...
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
...ht movie */
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index e6430a3..89b076f 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -247,7 +247,7 @@ swfdec_sprite_movie_perform_place (Swfde
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
} else {
SwfdecGraphic *graphic;
- if (cur != NULL) {
+ if (cur != NULL && version > 5) {
SWFDEC_INFO ("depth %d is already occupied by movie %s, not placing", depth, cur->name);
return TRUE;
}
diff-tree 050e05430d2e69be906db321a16e...
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
...>depth, parent, content->graphic,
content->name ? swfdec_as_context_get_string (SWFDEC_AS_CONTEXT (player), content->name) : NULL);
- swfdec_movie_set_static_properties (movie, &content->transform,
- &content->color_transform, content->ratio, content->clip_depth, content->events);
+ swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL,
+ content->has_color_transform ? &content->color_transform : NULL,
+ content->ratio, content->clip_depth, content->events);
g_queue_pus...
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
...swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
}
if (ratio >= 0 && (guint) ratio != movie->original_ratio) {
SwfdecMovieClass *klass;
@@ -1545,11 +1617,11 @@ swfdec_movie_set_static_properties (SwfdecMovie *movie, const cairo_matrix_t *tr
if (clip_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_...
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
...d 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_fail (SWFDEC_IS_MOVIE (movie));
g_return_if_fail (cr != NULL);
@@ -717,6 +755,11 @@ swfdec_movie_render (SwfdecMovie *movie,
}
cairo_save (cr);
+ group = swfdec_movie_needs_group (movie);
+ if (...
2007 Jun 19
0
Branch 'as' - test/dump.c
...ACTION_ADD:
- case SWFDEC_SPRITE_ACTION_UPDATE:
- {
- SwfdecContent *content = action->data;
- g_print (" %4u %4u %s", i, content->depth + 16384,
- action->type == SWFDEC_SPRITE_ACTION_ADD ? "add " : "update");
- if (content->clip_depth)
- g_print ("%4d", content->clip_depth + 16384);
- else
- g_print (" ");
- if (content->graphic) {
- g_print (" %s %u", G_OBJECT_TYPE_NAME (content->graphic),
- SWFDEC_CHARACTER (content->graphic)->id);
- } else {
- g_print...
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
...DEC_FIXME ("mask is not a movie, what now?");
+ mask = NULL;
+ }
+ if (movie->masked_by)
+ movie->masked_by->mask_of = NULL;
+ if (movie->mask_of)
+ movie->mask_of->masked_by = NULL;
+ movie->masked_by = mask;
+ movie->mask_of = NULL;
+ if (movie->clip_depth) {
+ g_assert (movie->parent);
+ swfdec_movie_invalidate (movie->parent);
+ movie->clip_depth = 0;
+ } else {
+ swfdec_movie_invalidate (movie);
+ }
+ if (mask) {
+ if (mask->masked_by)
+ mask->masked_by->mask_of = NULL;
+ if (mask->mask_of)
+ mas...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...ec_movie.h b/libswfdec/swfdec_movie.h
index f1db624..5b56656 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -45,11 +45,12 @@ struct _SwfdecContent {
SwfdecGraphic * graphic; /* object to display or NULL */
int depth; /* at which depth to display */
int clip_depth; /* clip depth of object */
- guint ratio;
+ guint ratio;
cairo_matrix_t transform;
SwfdecColorTransform color_transform;
char * name;
SwfdecEventList * events;
+ cairo_operator_t operator; /* operator to use when painting (aka blend mode) */
SwfdecContent * sequence; /*...
2007 Mar 19
0
7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
...ve click events
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index c4a2733..4c4ec47 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -530,6 +530,10 @@ swfdec_movie_get_movie_at (SwfdecMovie *
SWFDEC_DEBUG ("ignoring depth=%d, it's clipped (clip_depth %d)", child->depth, clip_depth);
continue;
}
+ if (!child->visible) {
+ SWFDEC_LOG ("child %s %s (depth %d) is invisible, ignoring", G_OBJECT_TYPE_NAME (movie), movie->name, movie->depth);
+ continue;
+ }
ret = swfdec_movie_get_movie_at...
2007 Apr 17
0
3 commits - configure.ac libswfdec/swfdec_loader.c libswfdec/swfdec_movie.h
...c_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -42,7 +42,7 @@ typedef enum {
} SwfdecDepthClass;
struct _SwfdecContent {
- SwfdecGraphic * graphic; /* object to display or NULL */
+ SwfdecGraphic * graphic; /* object to display */
int depth; /* at which depth to display */
int clip_depth; /* clip depth of object */
guint ratio;
diff-tree 783b6d178d9fe4a6f50fbc55031fb9cd5e139708 (from ce83f3171f4400aa620464982ab266d567213be5)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Apr 17 13:42:59 2007 +0200
add more characters that aren't escaped
diff --git a/libswfd...
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
...return FALSE;
+ 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)
{
S...
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
..._get_string (SWFDEC_AS_CONTEXT (player), content->name) : NULL);
-
- swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL,
- content->has_color_transform ? &content->color_transform : NULL,
- content->ratio, content->clip_depth, content->blend_mode, content->events);
- if (SWFDEC_IS_SPRITE_MOVIE (movie)) {
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_INITIALIZE);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_CONSTRUCT);
- swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD);
- }
- swfdec_movie_ini...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...rn TRUE;
}
+ if (graphic) {
+ SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (cur);
+ if (klass->replace)
+ klass->replace (cur, graphic);
+ }
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
} else {
- SwfdecGraphic *graphic;
if (cur != NULL && version > 5) {
SWFDEC_INFO ("depth %d is already occupied by movie %s, not placing", depth, cur->name);
return TRUE;
}
- graphic = swfdec_swf_decoder_get_character (SWFDEC_SWF_DE...
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
...s (movie, content->has_transform ? &content->transform : NULL,
+ swfdec_movie_set_static_properties (child, content->has_transform ? &content->transform : NULL,
content->has_color_transform ? &content->color_transform : NULL,
content->ratio, content->clip_depth, content->events);
if (content->name && !g_str_equal (content->name, child->name)) {
diff-tree 21a41f6fd163e5630112765f90af019cf2b55535 (from 0ac0d3e2d6f09ece63ea5a736e80aec413b45ab8)
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Jun 14 13:35:36 2007 +0200
o...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...2007 +0200
split out filter parsing code
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 4b67ed5..488864c 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -184,64 +184,8 @@ swfdec_sprite_movie_perform_place (Swfde
clip_depth = 0;
}
- if (has_filter) {
- guint i, n_filters, filter_id;
- n_filters = swfdec_bits_get_u8 (bits);
- SWFDEC_LOG (" filters: %u", n_filters);
- for (i = 0; i < n_filters && swfdec_bits_left (bits); i++) {
- filter_id = swfdec_bits_get_u8 (bits);
-...
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...vie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -266,12 +266,12 @@ swfdec_sprite_movie_perform_place (Swfde
cur = swfdec_movie_new (player, depth, mov, graphic, name);
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
+ swfdec_movie_initialize (cur);
if (SWFDEC_IS_SPRITE_MOVIE (cur)) {
g_queue_push_tail (player->init_queue, cur);
g_queue_push_tail (player->construct_queue, cur);
swfdec_movie_queue_script (cur, SWFDEC_EVENT_LOAD);
}
- swfdec_movie_initialize (c...
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
...ratio != movie->original_ratio) {
+ SwfdecMovieClass *klass;
movie->original_ratio = ratio;
- swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_CONTENTS);
+ klass = SWFDEC_MOVIE_GET_CLASS (movie);
+ if (klass->set_ratio)
+ klass->set_ratio (movie);
}
if (clip_depth && clip_depth != movie->clip_depth) {
movie->clip_depth = clip_depth;
diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h
index 5cac2a5..d074ba9 100644
--- a/libswfdec/swfdec_movie.h
+++ b/libswfdec/swfdec_movie.h
@@ -155,6 +155,7 @@ struct _SwfdecMovieClass {
voi...
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
...condition, importance);
+ return 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_initiali...