search for: swfdecshape

Displaying 19 results from an estimated 19 matches for "swfdecshape".

Did you mean: swfdec_shape
2007 Jul 01
1
implementing MovieClip drawing API
Hi, I would like to implement MovieClip.{moveTo,lineTo,lineStyle}. I initially thought I could place an SwfdecShape inside an SwfdecSpriteMovie created by createEmptyMovieClip then call swfdec_shape_ counterparts when MovieClip.{moveTo,lineTo,lineStyle} were called. It wasn't as easy as I had thought. All the functions are highly tied to swf bitstream, even adding an SwfdecShapeMovie to SwfdecSpriteMovie. D...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...n_parse_morph (SwfdecSwfDecoder * dec); void swfdec_pattern_paint (SwfdecPattern * pattern, diff --git a/libswfdec/swfdec_shape.c b/libswfdec/swfdec_shape.c index 3d513cc..eb7161a 100644 --- a/libswfdec/swfdec_shape.c +++ b/libswfdec/swfdec_shape.c @@ -313,8 +313,6 @@ swfdec_shape_init (SwfdecShape * shape) shape->vecs = g_array_new (FALSE, TRUE, sizeof (SwfdecShapeVec)); } -typedef SwfdecPattern * (* SwfdecPatternFunc) (SwfdecSwfDecoder * s); -typedef SwfdecStroke * (* SwfdecStrokeFunc) (SwfdecSwfDecoder * s); static void swfdec_shape_add_styles (SwfdecSwfDecoder * s, SwfdecShape...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...h: id of glyph to render + * + * Tries to get the shape associated with the given glyph id. It is valid to + * call this function with any glyph id. If no such glyph exists, this function + * returns %NULL. + * + * Returns: the shape of the requested glyph or %NULL if no such glyph exists. + **/ SwfdecShape * swfdec_font_get_glyph (SwfdecFont * font, unsigned int glyph) { g_return_val_if_fail (SWFDEC_IS_FONT (font), NULL); - g_return_val_if_fail (glyph < font->glyphs->len, NULL); + + if (glyph >= font->glyphs->len) + return NULL; return g_array_index (font->glyphs...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...wfdecBits offsets, *bits = &s->b; SwfdecFont *font; diff --git a/libswfdec/swfdec_font.h b/libswfdec/swfdec_font.h index a14aa42..1ff7d46 100644 --- a/libswfdec/swfdec_font.h +++ b/libswfdec/swfdec_font.h @@ -74,13 +74,16 @@ struct _SwfdecFontClass GType swfdec_font_get_type (void); SwfdecShape * swfdec_font_get_glyph (SwfdecFont * font, - guint glyph); + guint glyph); int tag_func_define_font_info (SwfdecSwfDecoder * s, - guint version); -int tag_func_define_font (SwfdecSwfDecoder * s); -int tag_func_define_font_2 (SwfdecSwfDecoder * s); -int tag_func_de...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c index 03157b1..6794e0f 100644 --- a/libswfdec/swfdec_font.c +++ b/libswfdec/swfdec_font.c @@ -73,7 +73,7 @@ swfdec_font_init (SwfdecFont * font) * Returns: the shape of the requested glyph or %NULL if no such glyph exists. **/ SwfdecShape * -swfdec_font_get_glyph (SwfdecFont * font, unsigned int glyph) +swfdec_font_get_glyph (SwfdecFont * font, guint glyph) { g_return_val_if_fail (SWFDEC_IS_FONT (font), NULL); @@ -112,10 +112,10 @@ convert_from_language (const char *s, Sw } int -tag_func_define_font_info (SwfdecSwfDecode...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...0abc (from c396c1d9b1488becf71c3ab32ea5b7cd510b8a47) Author: Benjamin Otte <otte@gnome.org> Date: Mon Apr 16 10:36:55 2007 +0200 end print with a \n diff --git a/test/dump.c b/test/dump.c index 96f9328..01e6289 100644 --- a/test/dump.c +++ b/test/dump.c @@ -201,7 +201,7 @@ dump_shape (SwfdecShape *shape) } } else if (SWFDEC_IS_STROKE (shapevec->pattern)) { SwfdecStroke *line = SWFDEC_STROKE (shapevec->pattern); - g_print ("line (width %u, color #%08X)", line->start_width, line->start_color); + g_print ("line (width %u, color #%08X)\n&q...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c index 03157b1..6794e0f 100644 --- a/libswfdec/swfdec_font.c +++ b/libswfdec/swfdec_font.c @@ -73,7 +73,7 @@ swfdec_font_init (SwfdecFont * font) * Returns: the shape of the requested glyph or %NULL if no such glyph exists. **/ SwfdecShape * -swfdec_font_get_glyph (SwfdecFont * font, unsigned int glyph) +swfdec_font_get_glyph (SwfdecFont * font, guint glyph) { g_return_val_if_fail (SWFDEC_IS_FONT (font), NULL); @@ -112,10 +112,10 @@ convert_from_language (const char *s, Sw } int -tag_func_define_font_info (SwfdecSwfDecode...
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
...pes.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 the actions take any gpointer instead of just...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...static int tag_func_define_font_info_1 (SwfdecSwfDecoder *s) { return tag_func_define_font_info (s, 1); diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h index f601dff..0603754 100644 --- a/libswfdec/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -49,6 +49,7 @@ typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; typedef struct _SwfdecRootMovie SwfdecRootMovie; +typedef struct _SwfdecRootSprite SwfdecRootSprite; typedef struct _SwfdecScript SwfdecScript; typedef struct _SwfdecScriptable SwfdecScriptable;...
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
...ts->y1 = ((65535 - ratio) * graphic->extents.y1 + ratio * morph->end_extents.y1) / 65535; +} + +static void +swfdec_morph_movie_set_ratio (SwfdecMovie *movie) +{ + SwfdecMorphMovie *mmovie = SWFDEC_MORPH_MOVIE (movie); - /* update the vectors */ - if (ratio != mmovie->ratio) { - SwfdecShape *shape = SWFDEC_SHAPE (mmovie->morph); - GSList *walk; + g_slist_foreach (mmovie->draws, (GFunc) g_object_unref, NULL); + g_slist_free (mmovie->draws); + mmovie->draws = NULL; + swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_CONTENTS); +} - g_slist_foreach (mmovie-&g...
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
...library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -29,6 +29,7 @@ #include "swfdec_shape.h" #include "swfdec.h" #include "swfdec_debug.h" +#include "swfdec_stroke.h" G_DEFINE_TYPE (SwfdecShape, swfdec_shape, SWFDEC_TYPE_GRAPHIC) @@ -367,13 +368,13 @@ parse_rgba (SwfdecSwfDecoder * s) static SwfdecPattern * parse_stroke_rgb (SwfdecSwfDecoder * s) { - return swfdec_pattern_parse_stroke (s, FALSE); + return swfdec_stroke_parse (s, FALSE); } static SwfdecPattern * parse_stroke_rg...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...;b, name, s->version); g_free (name); if (script) { swfdec_swf_decoder_add_script (s, script); diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h index 44edd85..907ac87 100644 --- a/libswfdec/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -49,7 +49,6 @@ typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; typedef struct _SwfdecRootSprite SwfdecRootSprite; -typedef struct _SwfdecScript SwfdecScript; typedef struct _SwfdecScriptable SwfdecScriptable; typedef struct _SwfdecSound SwfdecSound; typedef...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...-git a/libswfdec/swfdec_shape.c b/libswfdec/swfdec_shape.c index 06705f0..f954314 100644 --- a/libswfdec/swfdec_shape.c +++ b/libswfdec/swfdec_shape.c @@ -711,7 +711,7 @@ swfdec_shape_parse_line (SwfdecBits *bit } } -SubPath * +static SubPath * swfdec_shape_parse_change (SwfdecSwfDecoder *s, SwfdecShape *shape, GArray *path_array, SubPath *path, int *x, int *y, SwfdecPatternFunc parse_fill, SwfdecStrokeFunc parse_stroke) { diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index 8c171a6..9f03af0 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -177,7 +177...
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
...riptable_from_jsval (JSContext * cx, + jsval val, + GType type); + + +G_END_DECLS +#endif diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h index 774486e..49212d5 100644 --- a/libswfdec/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -44,6 +44,7 @@ typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; typedef struct _SwfdecRootMovie SwfdecRootMovie; +typedef struct _SwfdecScriptable SwfdecScriptable; typedef struct _SwfdecSound SwfdecSound; typedef struct _SwfdecSoundChunk SwfdecSoundChunk; t...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...me = "move "; - i++; - g_print (" %s %g %g\n", name, data[i].point.x, data[i].point.y); - break; - case CAIRO_PATH_CLOSE_PATH: - g_print (" close\n"); - break; - default: - g_assert_not_reached (); - break; - } - } -} - -static void -dump_shape (SwfdecShape *shape) -{ - GSList *walk; - - for (walk = shape->draws; walk; walk = walk->next) { - if (SWFDEC_IS_PATTERN (walk->data)) { - SwfdecPattern *pattern = walk->data; - char *str = swfdec_pattern_to_string (pattern); - g_print ("%s\n", str); - g_free (str)...
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
.../libswfdec/swfdec_types.h @@ -46,6 +46,7 @@ typedef struct _SwfdecGraphic SwfdecGraphic; typedef struct _SwfdecImage SwfdecImage; typedef struct _SwfdecListener SwfdecListener; typedef struct _SwfdecMovie SwfdecMovie; +typedef struct _SwfdecMovieClipLoader SwfdecMovieClipLoader; typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; commit 92a2422dec91d300599cbe2d6372f95f140f80b3 Author: Benjamin Otte <otte at gnome.org> Date: Tue Nov 6 08:14:22 2007 +0100 triggering external actions performs load requests diff --...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...t->text_input = NULL; + edittext->input = NULL; edittext->variable = NULL; edittext->color = 0; edittext->align = SWFDEC_TEXT_ALIGN_LEFT; diff --git a/test/dump.c b/test/dump.c index b66f8fc..38aee7e 100644 --- a/test/dump.c +++ b/test/dump.c @@ -225,7 +225,7 @@ dump_shape (SwfdecShape *shape) static void dump_text_field (SwfdecTextField *text) { - g_print (" %s\n", text->text_input ? text->text_input : ""); + g_print (" %s\n", text->input ? text->input : ""); if (verbose) { if (text->variable) g_print (...
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
...ame); if (script) swfdec_sprite_add_action (s->parse_sprite, s->parse_sprite->parse_frame, diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h index 49212d5..3228a36 100644 --- a/libswfdec/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -44,6 +44,7 @@ typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; typedef struct _SwfdecRootMovie SwfdecRootMovie; +typedef struct _SwfdecScript SwfdecScript; typedef struct _SwfdecScriptable SwfdecScriptable; typedef struct _SwfdecSound SwfdecSound; typedef s...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...;b, name, s->version); g_free (name); if (script) { swfdec_swf_decoder_add_script (s, script); diff --git a/libswfdec/swfdec_types.h b/libswfdec/swfdec_types.h index 44edd85..907ac87 100644 --- a/libswfdec/swfdec_types.h +++ b/libswfdec/swfdec_types.h @@ -49,7 +49,6 @@ typedef struct _SwfdecShape SwfdecShape; typedef struct _SwfdecShapeVec SwfdecShapeVec; typedef struct _SwfdecRect SwfdecRect; typedef struct _SwfdecRootSprite SwfdecRootSprite; -typedef struct _SwfdecScript SwfdecScript; typedef struct _SwfdecScriptable SwfdecScriptable; typedef struct _SwfdecSound SwfdecSound; typedef...