Displaying 4 results from an estimated 4 matches for "n_fill_styles".
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
...2:
+ return CAIRO_LINE_JOIN_MITER;
+ default:
+ SWFDEC_ERROR ("invalid line join value %u", join);
+ return CAIRO_LINE_JOIN_ROUND;
+ }
+}
+
static SwfdecStroke *
-swfdec_stroke_do_parse_extended (SwfdecBits *bits, gboolean morph,
- SwfdecPattern *fill_styles, guint n_fill_styles)
+swfdec_stroke_do_parse_extended (SwfdecSwfDecoder *dec, gboolean morph)
{
+ SwfdecBits *bits = &dec->b;
+ guint tmp;
+ gboolean has_pattern;
SwfdecStroke *stroke = g_object_new (SWFDEC_TYPE_STROKE, NULL);
- SWFDEC_ERROR ("FIXME: implement");
+ stroke->start_width =...
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
...->start_width = width;
+ stroke->end_width = width;
+ stroke->start_color = color;
+ stroke->end_color = color;
+
+ return SWFDEC_PATTERN (stroke);
+}
+
+static SwfdecPattern *
+swfdec_stroke_do_parse_extended (SwfdecBits *bits, gboolean morph,
+ SwfdecPattern *fill_styles, guint n_fill_styles)
+{
+ SwfdecStroke *stroke = g_object_new (SWFDEC_TYPE_STROKE, NULL);
+
+ SWFDEC_ERROR ("FIXME: implement");
+ return SWFDEC_PATTERN (stroke);
+}
+
+SwfdecPattern *
+swfdec_stroke_parse_extended (SwfdecSwfDecoder *dec, SwfdecPattern *fill_styles,
+ guint n_fill_styles)
+{
+ g_retur...
2007 Apr 17
0
15 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_edittext.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sprite.c
...rroneous loops when the number of styles in
the file has been corrupted
diff --git a/libswfdec/swfdec_shape.c b/libswfdec/swfdec_shape.c
index 3aa5053..ac2491e 100644
--- a/libswfdec/swfdec_shape.c
+++ b/libswfdec/swfdec_shape.c
@@ -329,7 +329,7 @@ swfdec_shape_add_styles (SwfdecSwfDecode
n_fill_styles = swfdec_bits_get_u16 (bits);
}
SWFDEC_LOG (" n_fill_styles %d", n_fill_styles);
- for (i = 0; i < n_fill_styles; i++) {
+ for (i = 0; i < n_fill_styles && swfdec_bits_left (bits); i++) {
SwfdecPattern *pattern;
SWFDEC_LOG (" fill style %d:"...
2007 Apr 17
0
Branch 'as' - 17 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c
...rroneous loops when the number of styles in
the file has been corrupted
diff --git a/libswfdec/swfdec_shape.c b/libswfdec/swfdec_shape.c
index 3aa5053..ac2491e 100644
--- a/libswfdec/swfdec_shape.c
+++ b/libswfdec/swfdec_shape.c
@@ -329,7 +329,7 @@ swfdec_shape_add_styles (SwfdecSwfDecode
n_fill_styles = swfdec_bits_get_u16 (bits);
}
SWFDEC_LOG (" n_fill_styles %d", n_fill_styles);
- for (i = 0; i < n_fill_styles; i++) {
+ for (i = 0; i < n_fill_styles && swfdec_bits_left (bits); i++) {
SwfdecPattern *pattern;
SWFDEC_LOG (" fill style %d:"...