search for: swfdecmovi

Displaying 20 results from an estimated 173 matches for "swfdecmovi".

Did you mean: swfdecmovie
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
...e.h" #include "swfdec_swf_decoder.h" #include "swfdec_resource.h" #include "swfdec_text.h" +#include "swfdec_text_field.h" G_DEFINE_TYPE (SwfdecGraphicMovie, swfdec_graphic_movie, SWFDEC_TYPE_MOVIE) @@ -49,6 +50,15 @@ swfdec_graphic_movie_render (SwfdecMovie *movie, cairo_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...
2007 Mar 22
0
7 commits - configure.ac doc/swfdec-docs.sgml libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_js_movie.c test/trace
...dec/js \ -DXP_UNIX -DDEBUG -fno-strict-aliasing libjs_la_LDFLAGS = -lm diff-tree 6c6af82416ae35dfa7312a66077977a655862051 (from 9b3d71429f674fad30b0dfa1c9ae3f7d7452e8e4) Author: Benjamin Otte <otte@gnome.org> Date: Thu Mar 22 19:50:52 2007 +0100 change all conversions JSObject->SwfdecMovie to not assert on failure but silently return diff --git a/libswfdec/swfdec_js_movie.c b/libswfdec/swfdec_js_movie.c index 2d9b1a1..3f6333c 100644 --- a/libswfdec/swfdec_js_movie.c +++ b/libswfdec/swfdec_js_movie.c @@ -116,7 +116,11 @@ mc_play (JSContext *cx, JSObject *obj, u { SwfdecMovie *mo...
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
...00 add a crude hack so MovieClip-only properties only exist on movielcips diff --git a/libswfdec/swfdec_movie_asprops.c b/libswfdec/swfdec_movie_asprops.c index e9fef7d..cf9102e 100644 --- a/libswfdec/swfdec_movie_asprops.c +++ b/libswfdec/swfdec_movie_asprops.c @@ -347,34 +347,35 @@ mc_root (SwfdecMovie *movie, SwfdecAsVal } struct { + gboolean needs_movie; const char *name; void (* get) (SwfdecMovie *movie, SwfdecAsValue *ret); void (* set) (SwfdecMovie *movie, const SwfdecAsValue *val); } swfdec_movieclip_props[] = { - { SWFDEC_AS_STR__x, mc_x_get, mc_x_set }, - { SWFDEC_A...
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
...make swfdec_movie_mouse_in() check children This makes kittencannon work diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index eb1e2e5..ca76cc5 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -480,11 +480,22 @@ gboolean swfdec_movie_mouse_in (SwfdecMovie *movie, double x, double y) { SwfdecMovieClass *klass; + GList *walk; klass = SWFDEC_MOVIE_GET_CLASS (movie); - if (klass->mouse_in == NULL) - return FALSE; - return klass->mouse_in (movie, x, y); + if (klass->mouse_in != NULL && + klass->mouse_in (movie, x...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...to look up + * @variable: pointer that takes variable part of the path or %NULL if not + * allowed + * + * Looks up a Flash4-compatible path using "/", ":" and "." style syntax. If + * @variable is %NULL, no variable path is allowed. + * + * Returns: The #SwfdecMovie that was looked up or %NULL if the path does not + * specify a valid movie. + **/ +static gboolean +swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path, + SwfdecAsObject **object, const char **variable) +{ + SwfdecAsObject *movie; + const char *s; + SwfdecAsValu...
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
...7df703fa4 Author: Benjamin Otte <otte at gnome.org> Date: Wed Jun 13 15:38:50 2007 +0200 Merge branch 'as' of ssh://company at git.freedesktop.org/git/swfdec into as diff --cc libswfdec/swfdec_sprite_movie_as.c index cf35c13,c5a3c4c..c2e9a42 @@@ -281,12 -298,13 +295,12 @@@ SwfdecMovie *ret; const char *name, *export; int depth; - SwfdecContent *content; SwfdecGraphic *sprite; - export = swfdec_as_value_to_string (obj->context, &argv[0]); - name = swfdec_as_value_to_string (obj->context, &argv[1]); + export = swfdec_as_value_to_string (cx, &a...
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
...break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); + guint depth; + int *indices; + GList *walk; + SwfdecMovie *movie; + + REPORT; + depth = gtk_tree_path_get_depth (path); + indices = gtk_tree_path_get_indices (path); + if (indices == NULL) + return FALSE; + walk = g_list_nth (movies->player->roots, *indices); + if (!walk) + return FALSE; + movie = walk->data; + indices++; + depth-...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...lt;otte at gnome.org> Date: Tue Nov 27 12:50:44 2007 +0100 make movie deletion work properly diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 856443c..1e1e841 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -254,7 +254,7 @@ swfdec_movie_find (SwfdecMovie *movie, int depth) } static gboolean -swfdec_movie_do_remove (SwfdecMovie *movie) +swfdec_movie_do_remove (SwfdecMovie *movie, gboolean destroy) { SwfdecPlayer *player; @@ -267,7 +267,7 @@ swfdec_movie_do_remove (SwfdecMovie *movie) walk = walk->next; if (walk == NULL)...
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
...default: @@ -72,63 +72,35 @@ static gboolean swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) { SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); - guint depth; + GNode *node; + guint i, depth; int *indices; - GList *walk; - SwfdecMovie *movie; REPORT; depth = gtk_tree_path_get_depth (path); indices = gtk_tree_path_get_indices (path); if (indices == NULL) return FALSE; - walk = g_list_nth (movies->player->roots, *indices); - if (!walk) - return FALSE; - movie = walk->data; - indices++; - depth-...
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
...Wed Nov 28 16:16:03 2007 +0100 in Flash 5, the this object for button events was a MovieClip diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 33717b0..657b519 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -424,6 +424,10 @@ swfdec_movie_execute (SwfdecMovie *movie, SwfdecEventType condition) if (condition == SWFDEC_EVENT_CONSTRUCT || condition < SWFDEC_EVENT_PRESS) return; thisp = SWFDEC_AS_OBJECT (movie->parent); + if (swfdec_movie_get_version (movie) <= 5) { + while (!SWFDEC_IS_SPRITE_MOVIE (thisp)) + thisp = SWFDE...
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
...= 18 } SwfdecEventType; const char * swfdec_event_type_get_name (SwfdecEventType type); diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index f3b1ee9..1079fbf 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -269,10 +269,7 @@ swfdec_movie_do_remove (SwfdecMovie *movie) swfdec_movie_invalidate (movie); 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); - else - return TRUE; + return !swfdec_movie_que...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...ot;swfdec_swf_decoder.h" +#include "swfdec_swf_instance.h" +#include "swfdec_text.h" G_DEFINE_TYPE (SwfdecGraphicMovie, swfdec_graphic_movie, SWFDEC_TYPE_MOVIE) @@ -51,6 +60,31 @@ swfdec_graphic_movie_mouse_in (SwfdecMov } static void +swfdec_graphic_movie_replace (SwfdecMovie *movie, SwfdecGraphic *graphic) +{ + SwfdecGraphicMovie *gmovie = SWFDEC_GRAPHIC_MOVIE (movie); + + if (SWFDEC_IS_SHAPE (graphic) || + SWFDEC_IS_TEXT (graphic)) { + /* wtf? */ + if (SWFDEC_SWF_DECODER (movie->swf->decoder)->version == 6) + return; + } else if (SWFDEC_IS...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...c/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -43,6 +43,7 @@ typedef struct _SwfdecEventList SwfdecEv typedef struct _SwfdecFont SwfdecFont; typedef struct _SwfdecGraphic SwfdecGraphic; typedef struct _SwfdecImage SwfdecImage; +typedef struct _SwfdecListener SwfdecListener; typedef struct _SwfdecMovie SwfdecMovie; typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; diff-tree e5d04657bbb051abe723a80ecd28df4bdc0f4ba4 (from 650e111062975b4911c16dcac67885e2ac32d892) Author: Benjamin Otte <otte@gnome.org> Date: Tue Feb 20 11:58:34 2007 +0100 make th...
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
...struct _SwfdecResource GHashTable * export_names; /* SwfdecCharacter->string mapping of exported characters */ /* only used while loading */ + SwfdecResourceState state; /* state we're in (for determining callbacks */ char * target; /* target path we use for signalling */ SwfdecMovieClipLoader *clip_loader; /* loader that gets notified about load events */ }; commit 11cb40668238084379c80f8d25d269d649a5d790 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 13:33:34 2007 +0100 add swfdec_sprite_movie_get_frames_total() and use it diff --git a/libswfdec/swf...
2007 Nov 20
0
4 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/image test/trace
...+0100 make masks work when the parents of mask and masked movie don't match diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 2325138..a3772c8 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -564,6 +564,32 @@ swfdec_movie_rect_local_to_global (SwfdecMovie *movie, SwfdecRect *rect) } void +swfdec_movie_global_to_local_matrix (SwfdecMovie *movie, cairo_matrix_t *matrix) +{ + g_return_if_fail (SWFDEC_IS_MOVIE (movie)); + g_return_if_fail (matrix != NULL); + + cairo_matrix_init_identity (matrix); + while (movie) { + cairo_matrix_multiply (ma...
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
...put->video = video; input->current_frame = (guint) -1; diff --git a/libswfdec/swfdec_video_movie.c b/libswfdec/swfdec_video_movie.c index d17c0cb..f95c2db 100644 --- a/libswfdec/swfdec_video_movie.c +++ b/libswfdec/swfdec_video_movie.c @@ -39,17 +39,39 @@ swfdec_video_movie_update_extents (SwfdecMovie *movie, } static void +swfdec_video_movie_update_image (SwfdecVideoMovie *movie) +{ + if (!movie->needs_update) + return; + + if (movie->input != NULL) { + if (movie->input->set_ratio) + movie->input->set_ratio (movie->input, movie); + + if (movie->i...
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...ANT: a SwfdecAsValue memset to 0 is a valid undefined value */ struct _SwfdecAsValue { diff --git a/libswfdec/swfdec_color_as.c b/libswfdec/swfdec_color_as.c index e73505d..8ebefe5 100644 --- a/libswfdec/swfdec_color_as.c +++ b/libswfdec/swfdec_color_as.c @@ -57,7 +57,8 @@ swfdec_movie_color_init (SwfdecMovieColo /*** AS CODE ***/ static void -swfdec_movie_color_getRGB (SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) +swfdec_movie_color_getRGB (SwfdecAsContext *cx, SwfdecAsObject *obj, + guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) { int result; SwfdecM...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...void); diff-tree 097b676f528d2d0e5c0a972823cdffdf4e9b0134 (from a98207b6015a3cfbbd3fc287ad6aaa6e7dc39938) Author: Benjamin Otte <otte@gnome.org> Date: Tue Jan 16 11:54:24 2007 +0100 Add a SwfdecScriptable class that functions as the frontend for objects accessible from AS Make SwfdecMovie a SwfdecScriptable diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am index 08e39de..8ab165c 100644 --- a/libswfdec/Makefile.am +++ b/libswfdec/Makefile.am @@ -63,6 +63,7 @@ libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES swfdec_rect.c \ swfdec_ringbuffer.c \ swfdec_root_movie.c \ + swfdec...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...terpret.c index 4f84189..b4bcc4f 100644 --- a/libswfdec/swfdec_as_interpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -448,6 +448,7 @@ swfdec_as_interpret_eval (SwfdecAsContex /* FIXME: this sucks */ extern struct { + gboolean needs_movie; const char * name; /* GC'd */ void (* get) (SwfdecMovie *movie, SwfdecAsValue *ret); void (* set) (SwfdecMovie *movie, const SwfdecAsValue *val); diff-tree cdb3324b8d8fd60ea0420de74b89a9edb1528b11 (from parents) Merge: e3b1a4d0c6d2d5104085fdb1d8e14269999de4bd 0d598e6df9d7c2e046935505cee577accc7e0613 Author: Benjamin Otte <otte at gnome.org> Da...
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
...rpret.c +++ b/libswfdec/swfdec_as_interpret.c @@ -1144,12 +1144,7 @@ swfdec_action_get_url (SwfdecAsContext *cx, guint action, const guint8 *data, gu /* nothing to do here */ } else if (swfdec_player_get_level (SWFDEC_PLAYER (cx), target) >= 0) { if (url[0] == '\0') { - SwfdecMovie *movie = swfdec_player_get_movie_from_string (SWFDEC_PLAYER (cx), target); - if (SWFDEC_IS_SPRITE_MOVIE (movie)) { - char *path = swfdec_movie_get_path (movie, TRUE); - swfdec_player_request_unload (SWFDEC_PLAYER (cx), path); - g_free (path); - } + swfdec_player_request_unload (SWFD...