Displaying 6 results from an estimated 6 matches for "swfdec_bits_peek_u8".
2007 Apr 26
0
4 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h NEWS README
...NULL)
return 0;
@@ -179,7 +179,7 @@ swfdec_bits_getbits (SwfdecBits * b, gui
}
guint
-swfdec_bits_peekbits (SwfdecBits * b, guint n)
+swfdec_bits_peekbits (const SwfdecBits * b, guint n)
{
SwfdecBits tmp = *b;
@@ -201,9 +201,12 @@ swfdec_bits_getsbits (SwfdecBits * b, gu
}
guint
-swfdec_bits_peek_u8 (SwfdecBits * b)
+swfdec_bits_peek_u8 (const SwfdecBits * b)
{
- SWFDEC_BYTES_CHECK (b, 1);
+ g_assert (b->idx == 0);
+ g_assert (b->ptr <= b->end);
+ if (b->ptr == b->end)
+ return 0;
return *b->ptr;
}
diff --git a/libswfdec/swfdec_bits.h b/libswfdec/swfdec_bits....
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...;
SWFDEC_LOG (" ID: %d", id);
- flags = swfdec_bits_get_u8 (bits);
- if (flags & 0x01)
- button->menubutton = TRUE;
- offset = swfdec_bits_get_u16 (bits);
-
- SWFDEC_LOG (" flags = %d", flags);
- SWFDEC_LOG (" offset = %d", offset);
-
- while (swfdec_bits_peek_u8 (bits)) {
- int reserved;
+ reserved = swfdec_bits_getbits (&s->b, 7);
+ button->menubutton = swfdec_bits_getbit (&s->b) ? TRUE : FALSE;
+ length = swfdec_bits_get_u16 (&s->b);
+
+ SWFDEC_LOG (" reserved = %d", reserved);
+ SWFDEC_LOG (" menu = %d&qu...
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
...185,7 +185,7 @@ swfdec_bits_peekbits (SwfdecBits * b, un
}
int
-swfdec_bits_getsbits (SwfdecBits * b, unsigned int n)
+swfdec_bits_getsbits (SwfdecBits * b, guint n)
{
unsigned long r = 0;
@@ -198,7 +198,7 @@ swfdec_bits_getsbits (SwfdecBits * b, un
return r;
}
-unsigned int
+guint
swfdec_bits_peek_u8 (SwfdecBits * b)
{
SWFDEC_BYTES_CHECK (b, 1);
@@ -206,7 +206,7 @@ swfdec_bits_peek_u8 (SwfdecBits * b)
return *b->ptr;
}
-unsigned int
+guint
swfdec_bits_get_u8 (SwfdecBits * b)
{
SWFDEC_BYTES_CHECK (b, 1);
@@ -214,10 +214,10 @@ swfdec_bits_get_u8 (SwfdecBits * b)
return *b->...
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
...185,7 +185,7 @@ swfdec_bits_peekbits (SwfdecBits * b, un
}
int
-swfdec_bits_getsbits (SwfdecBits * b, unsigned int n)
+swfdec_bits_getsbits (SwfdecBits * b, guint n)
{
unsigned long r = 0;
@@ -198,7 +198,7 @@ swfdec_bits_getsbits (SwfdecBits * b, un
return r;
}
-unsigned int
+guint
swfdec_bits_peek_u8 (SwfdecBits * b)
{
SWFDEC_BYTES_CHECK (b, 1);
@@ -206,7 +206,7 @@ swfdec_bits_peek_u8 (SwfdecBits * b)
return *b->ptr;
}
-unsigned int
+guint
swfdec_bits_get_u8 (SwfdecBits * b)
{
SWFDEC_BYTES_CHECK (b, 1);
@@ -214,10 +214,10 @@ swfdec_bits_get_u8 (SwfdecBits * b)
return *b->...
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
...;
SWFDEC_LOG (" ID: %d", id);
- flags = swfdec_bits_get_u8 (bits);
- if (flags & 0x01)
- button->menubutton = TRUE;
- offset = swfdec_bits_get_u16 (bits);
-
- SWFDEC_LOG (" flags = %d", flags);
- SWFDEC_LOG (" offset = %d", offset);
-
- while (swfdec_bits_peek_u8 (bits)) {
- int reserved;
+ reserved = swfdec_bits_getbits (&s->b, 7);
+ button->menubutton = swfdec_bits_getbit (&s->b) ? TRUE : FALSE;
+ length = swfdec_bits_get_u16 (&s->b);
+
+ SWFDEC_LOG (" reserved = %d", reserved);
+ SWFDEC_LOG (" menu = %d&qu...
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
...hic->extents.x0, graphic->extents.y0,
+ graphic->extents.x1, graphic->extents.y1);
if (button->events)
SWFDEC_MOVIE (movie)->events = swfdec_event_list_copy (button->events);
@@ -141,7 +143,7 @@ tag_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, guin...