search for: swfdec_bits_init_bits

Displaying 14 results from an estimated 14 matches for "swfdec_bits_init_bits".

2007 Mar 28
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_sprite.c libswfdec/swfdec_tag.c
...:19 2007 +0200 Merge branch 'master' of ssh://company@git.freedesktop.org/git/swfdec diff-tree 3dc137aafb42e15340c20a78d1599c714862ba0f (from 49e51702c80e2304918b74b897638948a507b4bd) Author: Benjamin Otte <otte@gnome.org> Date: Fri Mar 23 14:24:12 2007 +0100 Add function swfdec_bits_init_bits It's a shortcut for swfdec_bits_init (bits, swfdec_bits_get_buffer (from, length)); diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index ff863cc..46b0581 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -32,6 +32,25 @@ #include "swfdec_rect.h...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...fdec_bits_getbit (&s->b) ? TRUE : FALSE; + length = swfdec_bits_get_u16 (&s->b); + + SWFDEC_LOG (" reserved = %d", reserved); + SWFDEC_LOG (" menu = %d", button->menubutton); + SWFDEC_LOG (" length of region = %d", length); + + if (length) + swfdec_bits_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...
2007 Apr 28
0
libswfdec/swfdec_font.c
...d5f3..b3616dc 100644 --- a/libswfdec/swfdec_font.c +++ b/libswfdec/swfdec_font.c @@ -188,13 +188,14 @@ swfdec_font_parse_shape (SwfdecSwfDecode g_ptr_array_add (shape->fills, swfdec_pattern_new_color (0xFFFFFFFF)); g_ptr_array_add (shape->lines, swfdec_stroke_new (20, 0xFFFFFFFF)); + swfdec_bits_init_bits (&s->b, &save_bits, size); + 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_l...
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
...fdec_bits_getbit (&s->b) ? TRUE : FALSE; + length = swfdec_bits_get_u16 (&s->b); + + SWFDEC_LOG (" reserved = %d", reserved); + SWFDEC_LOG (" menu = %d", button->menubutton); + SWFDEC_LOG (" length of region = %d", length); + + if (length) + swfdec_bits_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...
2007 Apr 26
0
4 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h NEWS README
...swfdec/swfdec_bits.h index 9e14628..a86e705 100644 --- a/libswfdec/swfdec_bits.h +++ b/libswfdec/swfdec_bits.h @@ -39,12 +39,12 @@ struct _SwfdecBits void swfdec_bits_init (SwfdecBits *bits, SwfdecBuffer *buffer); void swfdec_bits_init_data (SwfdecBits *bits, const guint8 *data, guint len); void swfdec_bits_init_bits (SwfdecBits *bits, SwfdecBits *from, guint bytes); -guint swfdec_bits_left (SwfdecBits *b); +guint swfdec_bits_left (const SwfdecBits *b); int swfdec_bits_getbit (SwfdecBits * b); guint swfdec_bits_getbits (SwfdecBits * b, guint n); -guint swfdec_bits_peekbits (SwfdecBits * b, guint n); +guint sw...
2007 Apr 22
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_movie.c
...font.c index c0562b1..8b6d5f3 100644 --- a/libswfdec/swfdec_font.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&quo...
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
...}; diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 46b0581..6e25cf7 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -87,7 +87,7 @@ swfdec_bits_init (SwfdecBits *bits, Swfd * available using swfdec_bits_left() before calling this function. **/ void -swfdec_bits_init_bits (SwfdecBits *bits, SwfdecBits *from, unsigned int bytes) +swfdec_bits_init_bits (SwfdecBits *bits, SwfdecBits *from, guint bytes) { g_return_if_fail (bits != NULL); g_return_if_fail (from != NULL); @@ -122,7 +122,7 @@ swfdec_bits_init_data (SwfdecBits *bits, bits->end = bits->ptr +...
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
...}; diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 46b0581..6e25cf7 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -87,7 +87,7 @@ swfdec_bits_init (SwfdecBits *bits, Swfd * available using swfdec_bits_left() before calling this function. **/ void -swfdec_bits_init_bits (SwfdecBits *bits, SwfdecBits *from, unsigned int bytes) +swfdec_bits_init_bits (SwfdecBits *bits, SwfdecBits *from, guint bytes) { g_return_if_fail (bits != NULL); g_return_if_fail (from != NULL); @@ -122,7 +122,7 @@ swfdec_bits_init_data (SwfdecBits *bits, bits->end = bits->ptr +...
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
...njamin Otte <otte@gnome.org> Date: Tue Apr 17 12:19:27 2007 +0200 avoid overflow issues when bytes is near MAXUINT diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 8eef225..0f7e4c9 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -95,7 +95,9 @@ swfdec_bits_init_bits (SwfdecBits *bits, bits->buffer = from->buffer; bits->ptr = from->ptr; - bits->end = MIN (bits->ptr + bytes, from->end); + if (bytes > (guint) (from->end - from->ptr)) + bytes = from->end - from->ptr; + bits->end = bits->ptr + bytes; bits-&...
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
...njamin Otte <otte@gnome.org> Date: Tue Apr 17 12:19:27 2007 +0200 avoid overflow issues when bytes is near MAXUINT diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c index 8eef225..0f7e4c9 100644 --- a/libswfdec/swfdec_bits.c +++ b/libswfdec/swfdec_bits.c @@ -95,7 +95,9 @@ swfdec_bits_init_bits (SwfdecBits *bits, bits->buffer = from->buffer; bits->ptr = from->ptr; - bits->end = MIN (bits->ptr + bytes, from->end); + if (bytes > (guint) (from->end - from->ptr)) + bytes = from->end - from->ptr; + bits->end = bits->ptr + bytes; bits-&...
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
...ntf ("Sprite%u", SWFDEC_CHARACTER (content->graphic)->id); - else - script_name = g_strdup ("unknown"); - while ((event_flags = swfdec_get_clipeventflags (s, bits)) != 0) { - guint length = swfdec_bits_get_u32 (bits); - SwfdecBits action_bits; - - swfdec_bits_init_bits (&action_bits, bits, length); - if (event_flags & SWFDEC_EVENT_KEY_PRESS) - key_code = swfdec_bits_get_u8 (&action_bits); - else - key_code = 0; - - SWFDEC_INFO ("clip event with flags 0x%X, key code %d", event_flags, key_code); -#define SWFDEC_IMPLEMENTED_EVENT...
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
...fdec_bits_getbit (&s->b) ? TRUE : FALSE; + length = swfdec_bits_get_u16 (&s->b); + + SWFDEC_LOG (" reserved = %d", reserved); + SWFDEC_LOG (" menu = %d", button->menubutton); + SWFDEC_LOG (" length of region = %d", length); + + if (length) + swfdec_bits_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)) { + SwfdecBits tmp; + SwfdecBuffer *buffer; + cairo_matrix_t trans; + SwfdecColorTrans...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
..., data, - SWFDEC_SECURITY (SWFDEC_MOVIE (movie)->resource)); -} - static int swfdec_get_clipeventflags (SwfdecMovie *movie, SwfdecBits * bits) { @@ -213,15 +206,16 @@ swfdec_sprite_movie_perform_place (SwfdecSpriteMovie *movie, SwfdecBits *bits, g SwfdecBits action_bits; swfdec_bits_init_bits (&action_bits, bits, length); - if (event_flags & SWFDEC_EVENT_KEY_PRESS) + if (event_flags & (1<<SWFDEC_EVENT_KEY_PRESS)) key_code = swfdec_bits_get_u8 (&action_bits); else key_code = 0; SWFDEC_INFO ("clip event with flags 0x%X, key code %d&...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...use the right name for this file change all conversions JSObject->SwfdecMovie to not assert on failure but silently return fix include line to include the correct builddir release 0.4.3 back to cvs change semantics of SwfdecBits.idx handling Add function swfdec_bits_init_bits Add build infrastructure for a libswfdec-gtk s/SWF_(CFLAGS|LIBS)/SWFDEC_\1/ movie libswfdecui to libswfdec-gtk and make libswfdec-gtk an installed library prepare the gtk widget for exporting its API apparently I can't name functions correctly hook up libswfd...