search for: swfdec_shape_get_recs

Displaying 6 results from an estimated 6 matches for "swfdec_shape_get_recs".

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
...c_font.c index 9efe573..0aca1d5 100644 --- a/libswfdec/swfdec_font.c +++ b/libswfdec/swfdec_font.c @@ -192,7 +192,7 @@ swfdec_font_parse_shape (SwfdecSwfDecode shape->n_line_bits = swfdec_bits_getbits (&s->b, 4); SWFDEC_LOG ("n_line_bits = %d", shape->n_line_bits); - swfdec_shape_get_recs (s, shape); + swfdec_shape_get_recs (s, shape, swfdec_pattern_parse, swfdec_stroke_parse); swfdec_bits_syncbits (&s->b); if (swfdec_bits_skip_bytes (&save_bits, size) != size) { SWFDEC_ERROR ("invalid offset value, not enough bytes available"); @@ -336,7 +336,7 @@ t...
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
...oke (20, 0xFFFFFFFF)); + + shape->n_fill_bits = swfdec_bits_getbits (&s->b, 4); + SWFDEC_LOG ("n_fill_bits = %d", shape->n_fill_bits); + shape->n_line_bits = swfdec_bits_getbits (&s->b, 4); + SWFDEC_LOG ("n_line_bits = %d", shape->n_line_bits); + + swfdec_shape_get_recs (s, shape); + swfdec_bits_syncbits (&s->b); + if (swfdec_bits_skip_bytes (&save_bits, size) != size) { + SWFDEC_ERROR ("invalid offset value, not enough bytes available"); + } + if (swfdec_bits_left (&save_bits) != swfdec_bits_left (&s->b)) { + SWFDEC_WARNI...
2007 Apr 22
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_movie.c
...t.c +++ b/libswfdec/swfdec_font.c @@ -193,17 +193,14 @@ swfdec_font_parse_shape (SwfdecSwfDecode shape->n_line_bits = swfdec_bits_getbits (&s->b, 4); SWFDEC_LOG ("n_line_bits = %d", shape->n_line_bits); + swfdec_bits_init_bits (&s->b, &save_bits, size); swfdec_shape_get_recs (s, shape, swfdec_pattern_parse, swfdec_stroke_parse); swfdec_bits_syncbits (&s->b); - if (swfdec_bits_skip_bytes (&save_bits, size) != size) { - SWFDEC_ERROR ("invalid offset value, not enough bytes available"); - } - if (swfdec_bits_left (&save_bits) != swfdec_bi...
2007 Apr 28
0
libswfdec/swfdec_font.c
..._getbits (&s->b, 4); SWFDEC_LOG ("n_fill_bits = %d", shape->n_fill_bits); shape->n_line_bits = swfdec_bits_getbits (&s->b, 4); SWFDEC_LOG ("n_line_bits = %d", shape->n_line_bits); - - swfdec_bits_init_bits (&s->b, &save_bits, size); swfdec_shape_get_recs (s, shape, swfdec_pattern_parse, swfdec_stroke_parse); + swfdec_bits_syncbits (&s->b); if (swfdec_bits_left (&s->b)) { SWFDEC_WARNING ("parsing shape didn't use %d bytes",
2007 Feb 15
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_shape.c libswfdec/swfdec_tag.c
...says it doesn't */ + s->b = parse; + /* this assumes that no recursive DefineSprite happens and we check it doesn't */ s->parse_sprite = s->main_sprite; SWFDEC_LOG ("done parsing this sprite"); @@ -648,16 +623,16 @@ tag_func_define_font_2 (SwfdecSwfDecoder swfdec_shape_get_recs (s, shape); } if (wide_codes) { - bits->ptr += 2 * n_glyphs; + swfdec_bits_skip_bytes (bits, 2 * n_glyphs); } else { - bits->ptr += 1 * n_glyphs; + swfdec_bits_skip_bytes (bits, 1 * n_glyphs); } if (has_layout) { font_ascent = swfdec_bits_get_s16 (bits); f...
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
...SwfdecSwfDecoder * s); -int tag_define_shape_3 (SwfdecSwfDecoder * s); -int tag_define_shape_4 (SwfdecSwfDecoder * s); +int tag_define_shape (SwfdecSwfDecoder * s, guint tag); +int tag_define_shape_3 (SwfdecSwfDecoder * s, guint tag); +int tag_define_shape_4 (SwfdecSwfDecoder * s, guint tag); void swfdec_shape_get_recs (SwfdecSwfDecoder * s, SwfdecShape * shape, SwfdecPatternFunc pattern_func, SwfdecStrokeFunc stroke_func); diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index dadd400..8c171a6 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -74,7 +74,7 @@ swfdec_sou...