Displaying 5 results from an estimated 5 matches for "swfdec_shape_add_styl".
Did you mean:
swfdec_shape_add_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
..._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 * shape,
SwfdecPatternFunc parse_fill, SwfdecStrokeFunc parse_stroke)
@@ -356,30 +354,6 @@ swfdec_shape_add_styles (SwfdecSwfDecode
shape->n_line_bits = swfdec_bits_getbits (bits, 4);
}
-static SwfdecPattern *
-parse_rgb (SwfdecSwfDecoder * s)
-{
-...
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
...bits are available
this avoids long erroneous 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;
SWF...
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
...bits are available
this avoids long erroneous 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;
SWF...
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
...h_shape (SwfdecSwfDecoder * s);
+int tag_define_morph_shape (SwfdecSwfDecoder * s,
+ guint tag);
G_END_DECLS
diff --git a/libswfdec/swfdec_shape.c b/libswfdec/swfdec_shape.c
index 0e47cac..06705f0 100644
--- a/libswfdec/swfdec_shape.c
+++ b/libswfdec/swfdec_shape.c
@@ -353,7 +353,7 @@ swfdec_shape_add_styles (SwfdecSwfDecode
}
int
-tag_define_shape (SwfdecSwfDecoder * s)
+tag_define_shape (SwfdecSwfDecoder * s, guint tag)
{
SwfdecBits *bits = &s->b;
SwfdecShape *shape;
@@ -377,7 +377,7 @@ tag_define_shape (SwfdecSwfDecoder * s)
}
int
-tag_define_shape_3 (SwfdecSwfDecoder * s)
+t...
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
...ph, swfdec_stroke_parse_morph);
end_path = swfdec_morph_shape_do_change (end_bits, start_path, morph, end_path_array, end_path, &end_x, &end_y);
break;
case SWFDEC_SHAPE_TYPE_LINE:
@@ -1023,7 +1024,7 @@ tag_define_morph_shape (SwfdecSwfDecoder
bits->end = end_bits.ptr;
swfdec_shape_add_styles (s, SWFDEC_SHAPE (morph),
- swfdec_pattern_parse_morph, swfdec_pattern_parse_morph_stroke);
+ swfdec_pattern_parse_morph, swfdec_stroke_parse_morph);
morph->n_fill_bits = swfdec_bits_getbits (&end_bits, 4);
morph->n_line_bits = swfdec_bits_getbits (&end_bits, 4);
d...