Displaying 20 results from an estimated 46 matches for "swfdec_movie_invalidate".
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_color_as.c
+++ b/libswfdec/swfdec_color_as.c
@@ -131,7 +131,7 @@ swfdec_movie_color_setRGB (SwfdecAsContext *cx, SwfdecAsObject *obj,
movie->color_transform.gb = (color & 0xFF00) >> 8;
movie->color_transform.ba = 0;
movie->color_transform.bb = color & 0xFF;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
}
static inline void
@@ -177,5 +177,5 @@ swfdec_movie_color_setTransform (SwfdecAsContext *cx, SwfdecAsObject *obj,
parse_property (parse, SWFDEC_AS_STR_gb, &movie->color_transform.gb, FALSE);
parse_property (parse, SWFDEC_AS_STR_bb...
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;
2007 Oct 18
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...0, text->hscroll_max);
+ } else {
+ text->scroll_bottom = MAX (CLAMP(text->scroll, 1, text->scroll_max) +
+ (visible > 0 ? visible - 1 : 0), text->scroll);
+ }
}
gboolean
@@ -1018,7 +1024,8 @@ swfdec_text_field_movie_set_text_format (SwfdecTextFieldMovie *text,
swfdec_movie_invalidate (SWFDEC_MOVIE (text));
swfdec_text_field_movie_auto_size (text);
- swfdec_text_field_movie_update_scroll (text);
+ // special case: update the max values, not the current values
+ swfdec_text_field_movie_update_scroll (text, FALSE);
}
static void
@@ -1465,5 +1472,5 @@ swfdec_text_field_mo...
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...VIE, &text, "i", &value);
- color = (swfdec_text_field_movie_int_to_color (cx, value) & 0xffffff) +
- (255 << 24);
+ color = swfdec_text_field_movie_int_to_color (cx, value);
if (text->background_color != color) {
text->background_color = color;
swfdec_movie_invalidate (SWFDEC_MOVIE (text));
@@ -558,8 +560,7 @@ swfdec_text_field_movie_set_borderColor (SwfdecAsContext *cx,
SWFDEC_AS_CHECK (SWFDEC_TYPE_TEXT_FIELD_MOVIE, &text, "i", &value);
- color = (swfdec_text_field_movie_int_to_color (cx, value) & 0xffffff) +
- (255 << 24)...
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
...depth <= 0);
+ g_return_if_fail (ratio >= -1);
if (movie->modified) {
SWFDEC_LOG ("%s has already been modified by scripts, ignoring updates", movie->name);
@@ -963,11 +964,11 @@ swfdec_movie_set_static_properties (Swfd
movie->original_ctrans = *ctrans;
swfdec_movie_invalidate (movie);
}
- if (ratio != movie->original_ratio) {
+ if (ratio >= 0 && (guint) ratio != movie->original_ratio) {
movie->original_ratio = ratio;
swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_EXTENTS);
}
- if (clip_depth != movie->clip_depth) {
+ if...
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
...6 +43,11 @@
/*** MOVIE ***/
+enum {
+ PROP_0,
+ PROP_DEPTH
+};
+
G_DEFINE_ABSTRACT_TYPE (SwfdecMovie, swfdec_movie, SWFDEC_TYPE_AS_OBJECT)
static void
@@ -256,9 +261,7 @@ swfdec_movie_do_remove (SwfdecMovie *mov
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- movie->depth = -16385 - movie->depth; /* don't ask me why... */
- if (movie->parent)
- movie->parent->list = g_list_sort (movie->parent->list, swfdec_movie_compare_depths);
+ swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why....
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...(image != NULL);
+ g_return_if_fail (width > 0);
+ g_return_if_fail (height > 0);
if (movie->image)
cairo_surface_destroy (movie->image);
cairo_surface_reference (image);
movie->image = image;
+ movie->image_width = width;
+ movie->image_height = height;
swfdec_movie_invalidate (SWFDEC_MOVIE (movie));
}
diff --git a/libswfdec/swfdec_video_movie.h b/libswfdec/swfdec_video_movie.h
index 9db5d45..87ee9c9 100644
--- a/libswfdec/swfdec_video_movie.h
+++ b/libswfdec/swfdec_video_movie.h
@@ -54,7 +54,9 @@ struct _SwfdecVideoMovie {
SwfdecVideo * video; /* video we play...
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
...l_parse (text, str);
} else {
- text->input = g_string_assign (text->input, str);
+ text->style_sheet_input = NULL;
+ if (html) {
+ swfdec_text_field_movie_html_parse (text, str);
+ } else {
+ text->input = g_string_assign (text->input, str);
+ }
}
swfdec_movie_invalidate (SWFDEC_MOVIE (text));
diff --git a/libswfdec/swfdec_text_field_movie.h b/libswfdec/swfdec_text_field_movie.h
index fc7371d..fd02f04 100644
--- a/libswfdec/swfdec_text_field_movie.h
+++ b/libswfdec/swfdec_text_field_movie.h
@@ -90,7 +90,9 @@ struct _SwfdecTextFieldMovie {
gboolean condense_wh...
2007 Oct 19
0
8 commits - libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c
...awing.c b/libswfdec/swfdec_movie_as_drawing.c
index d77ef99..6817459 100644
--- a/libswfdec/swfdec_movie_as_drawing.c
+++ b/libswfdec/swfdec_movie_as_drawing.c
@@ -244,6 +244,7 @@ swfdec_sprite_movie_clear (SwfdecAsContext *cx, SwfdecAsObject *object,
if (movie->draws == NULL)
return;
swfdec_movie_invalidate (movie);
+ swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_EXTENTS);
swfdec_rect_init_empty (&movie->draw_extents);
g_slist_foreach (movie->draws, (GFunc) g_object_unref, NULL);
g_slist_free (movie->draws);
commit 702849414e776be0b60b2fda84802b6ae5c63f54
Author: Benjam...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
...0 0x0000003001831185 in raise () from /lib/libc.so.6
#1 0x0000003001832630 in abort () from /lib/libc.so.6
#2 0x0000003002c5c660 in g_assertion_message () from /usr/lib/libglib-2.0.so.0
#3 0x0000003002c5cb22 in g_assertion_message_expr () from
/usr/lib/libglib-2.0.so.0
#4 0x00007f770d989a54 in swfdec_movie_invalidate () from
/usr/lib/libswfdec-0.7.so.0
#5 0x00007f770d98b62c in swfdec_movie_invalidate_last () from
/usr/lib/libswfdec-0.7.so.0
#6 0x00007f770d9bab1c in swfdec_text_field_movie_text_changed () from
/usr/lib/libswfdec-0.7.so.0
#7 0x000000300400cdca in g_closure_invoke () from /usr/lib/libgobject-2....
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...movie->color_transform.ra = 0;
+ movie->color_transform.rb = (color & 0xFF0000) >> 16;
+ movie->color_transform.ga = 0;
+ movie->color_transform.gb = (color & 0xFF00) >> 8;
+ movie->color_transform.ba = 0;
+ movie->color_transform.bb = color & 0xFF;
+ swfdec_movie_invalidate (movie);
+}
+
+static inline void
+parse_property (SwfdecAsObject *obj, const char *name, int *target, gboolean scale)
+{
+ SwfdecAsValue val;
+ double d;
+
+ if (!swfdec_as_object_get_variable (obj, name, &val))
+ return;
+ d = swfdec_as_value_to_number (obj->context, &val);
+ i...
2007 Oct 14
0
3 commits - doc/Makefile.am libswfdec/swfdec_text_field_movie_as.c
...IELD_MOVIE, &text, "i", &value);
-
- if (value < 0) {
- SWFDEC_AS_VALUE_SET_NUMBER (&val, 16777216 + value % 16777216);
- } else {
- SWFDEC_AS_VALUE_SET_NUMBER (&val, value);
+ if (text->text->border != value) {
+ text->text->border = value;
+ swfdec_movie_invalidate (SWFDEC_MOVIE (text));
}
-
- swfdec_as_object_set_variable (SWFDEC_AS_OBJECT (text->format_new),
- SWFDEC_AS_STR_color, &val);
}
+/*
+ * Native properties: Display
+ */
static void
swfdec_text_field_movie_get_autoSize (SwfdecAsContext *cx,
SwfdecAsObject *object, guint arg...
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...ter_next_line (iter_line));
+ }
+
+ swfdec_text_field_movie_free_layouts (layouts);
+
+ if (value < 1) {
+ value = 1;
+ } else if (value > all - visible + 1) {
+ value = all - visible + 1;
+ }
+
+ if (text->text->scroll != value) {
+ text->text->scroll = value;
+ swfdec_movie_invalidate (SWFDEC_MOVIE (text));
+ }
+}
+
static gboolean
swfdec_text_field_movie_auto_size (SwfdecTextFieldMovie *text)
{
- cairo_surface_t *surface;
- cairo_t *cr;
- GList *layouts, *iter;
+ SwfdecLayout *layouts;
guint height;
- int width, diff;
+ int i, width, diff;
gboolean changed;...
2008 Jun 05
4
[Bug 16241] New: assertion failed: (movie->cache_state <= SWFDEC_MOVIE_INVALID_CHILDREN)
...corecard/DelegateScoreCard.swf,
creating an empty file called "undefined" in the same directory and running the
flash file in swfplay.
Here's assertion message and the firefox backtrace. Fedora 9 x86_64, Firefox
3.0 beta 5 as provided by Fedora.
** Swfdec:ERROR:(swfdec_movie.c:118):swfdec_movie_invalidate: assertion failed:
(movie->cache_state <= SWFDEC_MOVIE_INVALID_CHILDREN)
Program received signal SIGABRT, Aborted.
0x00000031aa832215 in raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
M...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
...ove
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 6a03bd1..0f3cb91 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -260,7 +260,7 @@ swfdec_movie_do_remove (SwfdecMovie *mov
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
+ swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD)...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...hic) ||
+ SWFDEC_IS_BUTTON (graphic) ||
+ SWFDEC_IS_EDIT_TEXT (graphic)) {
+ SWFDEC_INFO ("can't replace with scriptable objects");
+ return;
+ } else {
+ SWFDEC_FIXME ("Can we replace with %s objects?", G_OBJECT_TYPE_NAME (graphic));
+ return;
+ }
+ swfdec_movie_invalidate (movie);
+ g_object_unref (gmovie->graphic);
+ gmovie->graphic = g_object_ref (graphic);
+ swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_EXTENTS);
+}
+
+static void
swfdec_graphic_movie_dispose (GObject *object)
{
SwfdecGraphicMovie *movie = SWFDEC_GRAPHIC_MOVIE (object);
@@...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...&= swfdec_movie_do_remove (walk->data, destroy);
}
/* FIXME: all of this here or in destroy callback? */
if (player->mouse_grab == movie)
@@ -275,16 +275,17 @@ swfdec_movie_do_remove (SwfdecMovie *movie)
if (player->mouse_drag == movie)
player->mouse_drag = NULL;
swfdec_movie_invalidate (movie);
- swfdec_movie_set_depth (movie, -32769 - movie->depth); /* don't ask me why... */
+ movie->state = SWFDEC_MOVIE_STATE_REMOVED;
if ((movie->events &&
swfdec_event_list_has_conditions (movie->events, SWFDEC_AS_OBJECT (movie), SWFDEC_EVENT_UNLOAD, 0)) ||...
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
...->iterate_end (mov))
- return FALSE;
+ SwfdecVideoMovie *video = SWFDEC_VIDEO_MOVIE (movie);
- if (movie->input && movie->input->iterate) {
- movie->input->iterate (movie->input);
+ if (video->input->set_ratio) {
+ video->needs_update = TRUE;
+ swfdec_movie_invalidate (movie);
}
-
- return TRUE;
}
static void
@@ -114,7 +133,7 @@ swfdec_video_movie_class_init (SwfdecVideoMovieClass * g_class)
movie_class->update_extents = swfdec_video_movie_update_extents;
movie_class->render = swfdec_video_movie_render;
movie_class->init_movie = swfdec_...
2007 Oct 31
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...text->input,
- g_utf8_offset_to_pointer (text->input->str, start_index) -
- text->input->str, str);
+ text->input = g_string_erase (text->input, start_index,
+ end_index - start_index);
+ text->input = g_string_insert (text->input, start_index, str);
swfdec_movie_invalidate (SWFDEC_MOVIE (text));
swfdec_text_field_movie_auto_size (text);
diff --git a/libswfdec/swfdec_text_field_movie_as.c b/libswfdec/swfdec_text_field_movie_as.c
index 248d878..7d91250 100644
--- a/libswfdec/swfdec_text_field_movie_as.c
+++ b/libswfdec/swfdec_text_field_movie_as.c
@@ -1031,7 +1031,1...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...-
-#if 0
-static void
-notify_initialized (SwfdecPlayer *player, GParamSpec *pspec, SwfdecVideoMovie *movie)
-{
- movie->video->width = player->width;
- movie->video->height = player->height;
-
- swfdec_movie_queue_update (SWFDEC_MOVIE (movie), SWFDEC_MOVIE_INVALID_MATRIX);
- swfdec_movie_invalidate (SWFDEC_MOVIE (movie));
-}
-#endif
-
gboolean
swfdec_flv_decoder_is_eof (SwfdecFlvDecoder *flv)
{
@@ -631,39 +610,3 @@ swfdec_flv_decoder_eof (SwfdecFlvDecoder *flv)
flv->state = SWFDEC_STATE_EOF;
}
-SwfdecMovie *
-swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent...