Displaying 16 results from an estimated 16 matches for "swfdec_player_invalidate".
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 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
...o_t *cr,
swfdec_graphic_render (movie->graphic, cr, trans, inval);
}
+static void
+swfdec_graphic_movie_invalidate (SwfdecMovie *movie, const cairo_matrix_t *matrix, gboolean last)
+{
+ SwfdecRect rect;
+
+ swfdec_rect_transform (&rect, &movie->graphic->extents, matrix);
+ swfdec_player_invalidate (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context), &rect);
+}
+
static SwfdecMovie *
swfdec_graphic_movie_contains (SwfdecMovie *movie, double x, double y,
gboolean events)
@@ -76,9 +86,10 @@ swfdec_graphic_movie_replace (SwfdecMovie *movie, SwfdecGraphic *graphic)
}
if (movie...
2007 Oct 28
0
2 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_player.c
...angle (fixes Gnome #491113)
It's something we don't like, but stupid doubles will always get us...
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 93887f4..6791094 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1624,7 +1624,8 @@ swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
guint i;
if (swfdec_rect_is_empty (rect)) {
- g_assert_not_reached ();
+ SWFDEC_ERROR ("called with an empty rectanle. In theory this shouldn't happen.");
+ SWFDEC_ERROR (" However, degenerate matrixes can cause thi...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...== NULL) {
movie = (SwfdecSpriteMovie *) swfdec_player_get_movie_from_string (
SWFDEC_PLAYER (cx), target);
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index ace4c45..8037927 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1573,8 +1573,6 @@ swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
* swfdec_player_get_level:
* @player: a #SwfdecPlayer
* @name: name of the level to request
- * @ignore_case: %TRUE to always be case insensitive, otherwise use the version
- * to determine case sensitivity
* @create: %TRUE to cre...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...c_player_set_loader_with_variables
swfdec_player_is_initialized
swfdec_player_get_rate
swfdec_player_get_image_size
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 4b29d28..cbdac1b 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -862,7 +862,7 @@ swfdec_player_invalidate (SwfdecPlayer *
SwfdecRootMovie *
swfdec_player_add_level_from_loader (SwfdecPlayer *player, guint depth,
- SwfdecLoader *loader)
+ SwfdecLoader *loader, const char *variables)
{
SwfdecMovie *movie;
SwfdecRootMovie *root;
@@ -979,12 +979,37 @@ swfdec_player_new (void)
*
* Sets...
2007 Jun 05
0
Branch 'as' - 8 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_number.c libswfdec/swfdec_as_scope.h
...libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index a173c3c..6051b01 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -78,7 +78,7 @@ swfdec_movie_invalidate (SwfdecMovie *mo
return;
swfdec_rect_transform (&rect, &rect, &movie->matrix);
}
- swfdec_player_invalidate (SWFDEC_ROOT_MOVIE (movie)->player, &rect);
+ swfdec_player_invalidate (SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context), &rect);
}
/**
@@ -271,8 +271,11 @@ swfdec_movie_find (SwfdecMovie *movie, i
static gboolean
swfdec_movie_do_remove (SwfdecMovie *movie)
{
+ SwfdecPlayer...
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
...layer));
g_return_if_fail (func);
- walk = player->audio;
+ walk = player->priv->audio;
while (walk) {
SwfdecAudio *audio = walk->data;
walk = walk->next;
@@ -1763,6 +1813,7 @@ swfdec_player_stop_sounds (SwfdecPlayer *player, SwfdecAudioRemoveFunc func, gpo
void
swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
{
+ SwfdecPlayerPrivate *priv = player->priv;
SwfdecRectangle r;
SwfdecRect tmp;
guint i;
@@ -1777,31 +1828,31 @@ swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
/* FIXME: currently we clamp the rectangle to the...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...NFO ("=== NEED TO UPDATE mouse post-iteration ===");
swfdec_player_update_mouse_position (player);
for (walk = player->roots; walk; walk = walk->next) {
@@ -1356,6 +1360,7 @@ swfdec_player_stop_all_sounds (SwfdecPla
}
}
+/* rect is in global coordinates */
void
swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
{
diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h
index 00c893f..858c6eb 100644
--- a/libswfdec/swfdec_player_internal.h
+++ b/libswfdec/swfdec_player_internal.h
@@ -82,13 +82,13 @@ struct _SwfdecPlayer
SwfdecAs...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...e (player->roots)
@@ -1611,6 +1613,8 @@ swfdec_player_init (SwfdecPlayer *player)
player->iterate_timeout.callback = swfdec_player_iterate;
player->stage_width = -1;
player->stage_height = -1;
+
+ swfdec_player_resource_request_init (player);
}
void
@@ -1690,42 +1694,75 @@ swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
/**
* swfdec_player_get_level:
* @player: a #SwfdecPlayer
- * @name: name of the level to request
- * @create: resource to create the movie with if it doesn't exist
- *
- * This function is used to look up root movies in the given @player. The...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...cPlayer * player);
void swfdec_player_perform_actions (SwfdecPlayer * player);
+jsval swfdec_player_get_export_class (SwfdecPlayer * player,
+ const char * name);
+void swfdec_player_set_export_class (SwfdecPlayer * player,
+ const char * name,
+ jsval val);
+
void swfdec_player_invalidate (SwfdecPlayer * player,
const SwfdecRect * rect);
void swfdec_player_add_timeout (SwfdecPlayer * player,
diff-tree c75613127fe44f34f8b37492f23ed0c66c415e57 (from 5825479e8e4255252521b4ac6421180c38623d54)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Mar 9 09:41:59 2007 +0100...
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
...raphic * graphic,
const char * name);
SwfdecMovie * swfdec_movie_new_for_content (SwfdecMovie * parent,
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index d14a5d8..73dce1b 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1578,7 +1578,7 @@ swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
* swfdec_player_get_level:
* @player: a #SwfdecPlayer
* @name: name of the level to request
- * @create: %TRUE to create if it doesn't exist
+ * @create: resource to create the movie with if it doesn't exist
*
* This function is used...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...unds (SwfdecPla
}
void
+swfdec_player_trace (SwfdecPlayer *player, const char *text)
+{
+ g_return_if_fail (SWFDEC_IS_PLAYER (player));
+ g_return_if_fail (text != NULL);
+
+ /* FIXME: accumulate and emit after JS handling? */
+ g_signal_emit (player, signals[TRACE], 0, text);
+}
+
+void
swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
{
if (swfdec_rect_is_empty (rect)) {
diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h
index dd10949..2da8ecc 100644
--- a/libswfdec/swfdec_player_internal.h
+++ b/libswfdec/swfdec_player_internal.h
@@ -122,6 +122...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...get_export_class (SwfdecPlayer * player,
+SwfdecAsObject *swfdec_player_get_export_class (SwfdecPlayer * player,
const char * name);
void swfdec_player_set_export_class (SwfdecPlayer * player,
const char * name,
- jsval val);
+ SwfdecAsObject * object);
void swfdec_player_invalidate (SwfdecPlayer * player,
const SwfdecRect * rect);
diff --git a/libswfdec/swfdec_root_movie.c b/libswfdec/swfdec_root_movie.c
index 36282d7..8b22055 100644
--- a/libswfdec/swfdec_root_movie.c
+++ b/libswfdec/swfdec_root_movie.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <stri...
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
...dec_player_internal.h
+++ b/libswfdec/swfdec_player_internal.h
@@ -174,6 +174,7 @@ void swfdec_player_set_export_class (SwfdecPlayer * player,
const char * name,
SwfdecAsObject * object);
+#define swfdec_player_is_mouse_pressed(player) ((player)->mouse_button & 1)
void swfdec_player_invalidate (SwfdecPlayer * player,
const SwfdecRect * rect);
void swfdec_player_add_timeout (SwfdecPlayer * player,
commit d3fd07498dcebbbea0b6edcabd929e1ab218f1ad
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Nov 22 15:18:10 2007 +0100
add swfdec_as_object_has_variable()
diff...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...unds (SwfdecPla
}
void
+swfdec_player_trace (SwfdecPlayer *player, const char *text)
+{
+ g_return_if_fail (SWFDEC_IS_PLAYER (player));
+ g_return_if_fail (text != NULL);
+
+ /* FIXME: accumulate and emit after JS handling? */
+ g_signal_emit (player, signals[TRACE], 0, text);
+}
+
+void
swfdec_player_invalidate (SwfdecPlayer *player, const SwfdecRect *rect)
{
if (swfdec_rect_is_empty (rect)) {
diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h
index dd10949..2da8ecc 100644
--- a/libswfdec/swfdec_player_internal.h
+++ b/libswfdec/swfdec_player_internal.h
@@ -122,6 +122...
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
...player,
const char * name,
SwfdecAsObject * object);
+SwfdecSocket * swfdec_player_create_socket (SwfdecPlayer * player,
+ const char * hostname,
+ guint port);
+
#define swfdec_player_is_mouse_pressed(player) ((player)->priv->mouse_button & 1)
void swfdec_player_invalidate (SwfdecPlayer * player,
const SwfdecRect * rect);
diff --git a/libswfdec/swfdec_socket.c b/libswfdec/swfdec_socket.c
new file mode 100644
index 0000000..723050c
--- /dev/null
+++ b/libswfdec/swfdec_socket.c
@@ -0,0 +1,99 @@
+/* Swfdec
+ * Copyright (C) 2008 Benjamin Otte <otte at gnome....