search for: has_filter

Displaying 10 results from an estimated 10 matches for "has_filter".

Did you mean: has_filters
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...s_init_bits (&bits, &s->b, length > 2 ? length - 2 : 0); + else + swfdec_bits_init_bits (&bits, &s->b, swfdec_bits_left (&s->b) / 8); + while (swfdec_bits_peek_u8 (&bits)) { guint character; guint depth; guint states; + gboolean blend_mode, has_filters; SwfdecContent *content; - swfdec_bits_syncbits (bits); - reserved = swfdec_bits_getbits (bits, 4); - states = swfdec_bits_getbits (bits, 4); - character = swfdec_bits_get_u16 (bits); - depth = swfdec_bits_get_u16 (bits); + if (s->version >= 8) { + reserved = sw...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...s_init_bits (&bits, &s->b, length > 2 ? length - 2 : 0); + else + swfdec_bits_init_bits (&bits, &s->b, swfdec_bits_left (&s->b) / 8); + while (swfdec_bits_peek_u8 (&bits)) { guint character; guint depth; guint states; + gboolean blend_mode, has_filters; SwfdecContent *content; - swfdec_bits_syncbits (bits); - reserved = swfdec_bits_getbits (bits, 4); - states = swfdec_bits_getbits (bits, 4); - character = swfdec_bits_get_u16 (bits); - depth = swfdec_bits_get_u16 (bits); + if (s->version >= 8) { + reserved = sw...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...(SwfdecSwfDecoder *s, guint tag) -{ - SwfdecBits *bits = &s->b; - int has_clip_actions; - int has_clip_depth; - int has_name; - int has_ratio; - int has_color_transform; - int has_matrix; - int has_character; - int move; - int depth; - int cache; - int has_blend_mode = 0; - int has_filter = 0; - SwfdecContent *content; - - has_clip_actions = swfdec_bits_getbit (bits); - has_clip_depth = swfdec_bits_getbit (bits); - has_name = swfdec_bits_getbit (bits); - has_ratio = swfdec_bits_getbit (bits); - has_color_transform = swfdec_bits_getbit (bits); - has_matrix = swfdec_bits_getbit...
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
...+swfdec_spriteseg_do_place_object (SwfdecSwfDecoder *s, unsigned int version) { SwfdecBits *bits = &s->b; int has_clip_actions; @@ -326,6 +333,9 @@ swfdec_spriteseg_place_object_2 (SwfdecS int has_character; int move; int depth; + int cache; + int has_blend_mode = 0; + int has_filter = 0; SwfdecContent *content; has_clip_actions = swfdec_bits_getbit (bits); @@ -349,6 +359,15 @@ swfdec_spriteseg_place_object_2 (SwfdecS SWFDEC_LOG (" depth = %d (=> %d)", depth, depth - 16384); depth -= 16384; + if (version > 2) { + swfdec_bits_getbits (bits, 5...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...e; diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c index d07bb89..2fe1a04 100644 --- a/libswfdec/swfdec_tag.c +++ b/libswfdec/swfdec_tag.c @@ -416,19 +416,19 @@ tag_func_define_button_2 (SwfdecSwfDecod guint character; guint depth; guint states; - gboolean blend_mode, has_filters; + gboolean has_blend_mode, has_filters; SwfdecContent *content; if (s->version >= 8) { reserved = swfdec_bits_getbits (&bits, 2); - blend_mode = swfdec_bits_getbit (&bits); + has_blend_mode = swfdec_bits_getbit (&bits); has_filters = swfdec...
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
..._func_define_button_2 (SwfdecSwfDecoder * s, guint tag) while (swfdec_bits_peek_u8 (&bits)) { SwfdecBits tmp; SwfdecBuffer *buffer; - cairo_matrix_t trans, inverse; + cairo_matrix_t trans; SwfdecColorTransform ctrans; guint states, gid; gboolean has_blend_mode, has_filters; @@ -172,7 +174,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag) states & (1 << SWFDEC_BUTTON_OVER) ? "OVER " : "", states & (1 << SWFDEC_BUTTON_UP) ? "UP " : ""); - swfdec_bits_get_matrix (&bits, &t...
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
...; SWFDEC_LOG (" move = %d", move); - SWFDEC_LOG (" depth = %d (=> %d)", depth, depth - 16384); - depth -= 16384; if (version > 2) { swfdec_bits_getbits (bits, 5); cache = swfdec_bits_getbit (bits); has_blend_mode = swfdec_bits_getbit (bits); has_filter = swfdec_bits_getbit (bits); + SWFDEC_LOG (" cache = %d", cache); SWFDEC_LOG (" has filter = %d", has_filter); SWFDEC_LOG (" has blend mode = %d", has_blend_mode); } + depth = swfdec_bits_get_u16 (bits); + SWFDEC_LOG (" depth = %d (=> %d...
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
...fdecMovie * } } -gboolean +static gboolean swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, guint tag) { SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); @@ -185,12 +185,12 @@ swfdec_sprite_movie_perform_place (Swfde } if (has_filter) { - guint i, n_filters, id; + guint i, n_filters, filter_id; n_filters = swfdec_bits_get_u8 (bits); SWFDEC_LOG (" filters: %u", n_filters); for (i = 0; i < n_filters && swfdec_bits_left (bits); i++) { - id = swfdec_bits_get_u8 (bits); - switch (...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...AS_OBJECT (movie)->context); @@ -77,7 +145,7 @@ swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g gboolean has_transform; gboolean has_character; gboolean move; - gboolean depth; + int depth; gboolean cache; gboolean has_blend_mode = 0; gboolean has_filter = 0; @@ -311,6 +379,8 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf swfdec_player_add_action_script (player, mov, script, 2); } return TRUE; + case SWFDEC_TAG_PLACEOBJECT: + return swfdec_sprite_movie_perform_old_place (movie, &bits,...
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
..._sprite->parse_frame); return SWFDEC_STATUS_OK; } + if (has_matrix) { swfdec_bits_get_matrix (bits, &content->transform, NULL); SWFDEC_LOG (" matrix = { %g %g, %g %g } + { %g %g }", @@ -428,7 +334,6 @@ swfdec_spriteseg_do_place_object (Swfdec } if (has_filter) { SWFDEC_ERROR ("filters aren't implemented, skipping PlaceObject tag!"); - g_hash_table_remove (s->parse_sprite->live_content, GUINT_TO_POINTER (content->depth)); swfdec_content_free (content); swfdec_sprite_remove_last_action (s->parse_sprite,...