search for: swfdecbutton

Displaying 12 results from an estimated 12 matches for "swfdecbutton".

Did you mean: swfdec_button
2007 Apr 22
0
libswfdec/swfdec_tag.c
....c @@ -272,12 +272,45 @@ tag_func_do_action (SwfdecSwfDecoder * s return SWFDEC_STATUS_OK; } +#define CONTENT_IN_FRAME(content, frame) \ + ((content)->sequence->start <= frame && \ + (content)->sequence->end > frame) +static guint +swfdec_button_remove_duplicates (SwfdecButton *button, int depth, guint states) +{ + GList *walk; + guint taken = 0; + guint i; + + /* 1) find out which states are already taken */ + for (walk = button->records; walk; walk = walk->next) { + SwfdecContent *cur = walk->data; + if (cur->depth != depth) + continue; +...
2007 Oct 30
0
libswfdec/swfdec_button_movie.c
...wfdec_button_movie.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) New commits: commit 0c7d0ceb77367b205016635cd2a755710afb5184 Author: Benjamin Otte <otte at gnome.org> Date: Tue Oct 30 13:45:33 2007 +0100 fix event emission of rollOver event Note to self: SwfdecButton _seriously_ needs a rewrite diff --git a/libswfdec/swfdec_button_movie.c b/libswfdec/swfdec_button_movie.c index c6132a6..8a18ef5 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -48,7 +48,7 @@ static const SwfdecButtonCondition event_table[2][4][4] = { {...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...b/libswfdec/swfdec_tag.c @@ -387,43 +387,56 @@ swfdec_button_append_content (SwfdecButt static int tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag) { - SwfdecBits *bits = &s->b; - int id; - int flags; - int offset; + SwfdecBits bits; + int id, reserved; + guint length; SwfdecButton *button; char *script_name; - id = swfdec_bits_get_u16 (bits); + id = swfdec_bits_get_u16 (&s->b); button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON); if (!button) return SWFDEC_STATUS_OK; SWFDEC_LOG (" ID: %d", id); - flags = swfdec...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...NG ("init actions not implemented yet"); @@ -339,7 +327,6 @@ tag_func_do_init_action (SwfdecSwfDecode } swfdec_buffer_unref (buffer); - //return retcode; return SWFDEC_STATUS_OK; } @@ -389,11 +376,8 @@ tag_func_define_button_2 (SwfdecSwfDecod int flags; int offset; SwfdecButton *button; - unsigned char *endptr; char *script_name; - endptr = bits->ptr + bits->buffer->length; - id = swfdec_bits_get_u16 (bits); button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON); if (!button) @@ -476,11 +460,8 @@ tag_func_define_button (SwfdecSwf...
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
...a/libswfdec/swfdec_button.c b/libswfdec/swfdec_button.c index a36d7e9..471b936 100644 --- a/libswfdec/swfdec_button.c +++ b/libswfdec/swfdec_button.c @@ -69,8 +69,6 @@ swfdec_button_create_movie (SwfdecGraphic *graphic, gsize *size) movie->button = g_object_ref (button); *size = sizeof (SwfdecButtonMovie); - g_print ("extents: %g %g %g %g\n", graphic->extents.x0, graphic->extents.y0, - graphic->extents.x1, graphic->extents.y1); if (button->events) SWFDEC_MOVIE (movie)->events = swfdec_event_list_copy (button->events); commit 90003ff936f9e42fe86d6...
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
...e %u already has an init action", id); - return SWFDEC_STATUS_OK; - } - sprite->init_action = swfdec_script_new_for_player (SWFDEC_DECODER (s)->player, - bits, "InitAction", s->version); - - return SWFDEC_STATUS_OK; -} - static void swfdec_button_append_content (SwfdecButton *button, guint states, SwfdecContent *content) { @@ -492,34 +469,6 @@ tag_func_define_button (SwfdecSwfDecoder } static int -tag_func_export_assets (SwfdecSwfDecoder * s) -{ - SwfdecBits *bits = &s->b; - unsigned int count, i; - - count = swfdec_bits_get_u16 (bits); - SWFDEC_LOG (&q...
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
...b/libswfdec/swfdec_tag.c @@ -387,43 +387,56 @@ swfdec_button_append_content (SwfdecButt static int tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag) { - SwfdecBits *bits = &s->b; - int id; - int flags; - int offset; + SwfdecBits bits; + int id, reserved; + guint length; SwfdecButton *button; char *script_name; - id = swfdec_bits_get_u16 (bits); + id = swfdec_bits_get_u16 (&s->b); button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON); if (!button) return SWFDEC_STATUS_OK; SWFDEC_LOG (" ID: %d", id); - flags = swfdec...
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
.../libswfdec/swfdec_button_movie.c index 0d9a57c..b48c746 100644 --- a/libswfdec/swfdec_button_movie.c +++ b/libswfdec/swfdec_button_movie.c @@ -63,7 +63,7 @@ static const int sound_table[2][4][4] = { -1, 0, 3, -1 } } }; -const char * +static const char * swfdec_button_condition_get_name (SwfdecButtonCondition condition) { /* FIXME: check if these events are based on conditions or if they're independant of button type */ diff --git a/libswfdec/swfdec_cached.c b/libswfdec/swfdec_cached.c index b7216e6..37b5737 100644 --- a/libswfdec/swfdec_cached.c +++ b/libswfdec/swfdec_cached.c @@ -71,7...
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
...d int i, j; + guint i, j; SwfdecSound *sound; SwfdecSoundChunk *chunk; SwfdecBits *b = &s->b; @@ -435,8 +435,8 @@ tag_func_start_sound (SwfdecSwfDecoder * int tag_func_define_button_sound (SwfdecSwfDecoder * s) { - unsigned int i; - unsigned int id; + guint i; + guint id; SwfdecButton *button; id = swfdec_bits_get_u16 (&s->b); @@ -500,7 +500,7 @@ swfdec_sound_buffer_get_n_samples (const void swfdec_sound_buffer_render (gint16 *dest, const SwfdecBuffer *source, SwfdecAudioOut format, const SwfdecBuffer *previous, - unsigned int offset, unsigned int n_sampl...
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
...d int i, j; + guint i, j; SwfdecSound *sound; SwfdecSoundChunk *chunk; SwfdecBits *b = &s->b; @@ -435,8 +435,8 @@ tag_func_start_sound (SwfdecSwfDecoder * int tag_func_define_button_sound (SwfdecSwfDecoder * s) { - unsigned int i; - unsigned int id; + guint i; + guint id; SwfdecButton *button; id = swfdec_bits_get_u16 (&s->b); @@ -500,7 +500,7 @@ swfdec_sound_buffer_get_n_samples (const void swfdec_sound_buffer_render (gint16 *dest, const SwfdecBuffer *source, SwfdecAudioOut format, const SwfdecBuffer *previous, - unsigned int offset, unsigned int n_sampl...
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
...SwfdecFontEntry, i).value; - char *s; - if (c == 0 || (s = g_utf16_to_utf8 (&c, 1, NULL, NULL, NULL)) == NULL) { - g_print (" "); - } else { - g_print ("%s ", s); - g_free (s); - } - } - g_print ("\n"); - } -} - -static void -dump_button (SwfdecButton *button) -{ -} - -static const char * -get_image_type_name (SwfdecImageType type) -{ - switch (type) { - case SWFDEC_IMAGE_TYPE_JPEG: - return "JPEG with global table"; - case SWFDEC_IMAGE_TYPE_JPEG2: - return "JPEG"; - case SWFDEC_IMAGE_TYPE_JPEG3: - re...
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
...NG ("init actions not implemented yet"); @@ -339,7 +327,6 @@ tag_func_do_init_action (SwfdecSwfDecode } swfdec_buffer_unref (buffer); - //return retcode; return SWFDEC_STATUS_OK; } @@ -389,11 +376,8 @@ tag_func_define_button_2 (SwfdecSwfDecod int flags; int offset; SwfdecButton *button; - unsigned char *endptr; char *script_name; - endptr = bits->ptr + bits->buffer->length; - id = swfdec_bits_get_u16 (bits); button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON); if (!button) @@ -476,11 +460,8 @@ tag_func_define_button (SwfdecSwf...