search for: swf_parse_header1

Displaying 8 results from an estimated 8 matches for "swf_parse_header1".

Did you mean: swf_parse_header2
2007 Apr 22
0
libswfdec/swfdec_swf_decoder.c
...ned %d", ret); - s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total - 8); z->next_out = s->uncompressed_buffer->data; z->avail_out = s->uncompressed_buffer->length; z->opaque = NULL; + return TRUE; } static int @@ -168,7 +173,8 @@ swf_parse_header1 (SwfdecSwfDecoder * s) s->compressed = (sig1 == 'C'); if (s->compressed) { SWFDEC_DEBUG ("compressed"); - swf_inflate_init (s); + if (!swf_inflate_init (s)) + return SWFDEC_STATUS_ERROR; } else { SWFDEC_DEBUG ("not compressed"); }
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...K) { + ret = inflate (&z, Z_SYNC_FLUSH); + SWFDEC_DEBUG ("inflate returned %d", ret); + } + inflateEnd (&z); + swfdec_buffer_unref (encoded); + if (ret < Z_OK) { + swfdec_buffer_unref (decoded); + return NULL; + } + return decoded; +} + +static SwfdecBuffer * +swf_parse_header1 (SwfeditFile *file, SwfdecBits *bits, GError **error) +{ + guint sig1, sig2, sig3, bytes_total; + + sig1 = swfdec_bits_get_u8 (bits); + sig2 = swfdec_bits_get_u8 (bits); + sig3 = swfdec_bits_get_u8 (bits); + if ((sig1 != 'F' && sig1 != 'C') || sig2 != 'W' || sig...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...e.c @@ -27,6 +27,7 @@ #include "libswfdec/swfdec_buffer.h" #include "libswfdec/swfdec_debug.h" #include "libswfdec/swfdec_swf_decoder.h" +#include "swfdec_out.h" #include "swfedit_file.h" #include "swfedit_tag.h" @@ -103,7 +104,7 @@ swf_parse_header1 (SwfeditFile *file, Sw swfedit_token_add (SWFEDIT_TOKEN (file), "version", SWFEDIT_TOKEN_UINT8, GUINT_TO_POINTER (swfdec_bits_get_u8 (bits))); - bytes_total = swfdec_bits_get_u32 (bits); + bytes_total = swfdec_bits_get_u32 (bits) - 8; if (sig1 == 'C') { /*...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...movie = swfdec_resource_emit_signal (resource, SWFDEC_AS_STR_onLoadComplete, FALSE, &val, 1); diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index ae5311c..f079c54 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -234,6 +234,7 @@ swf_parse_header1 (SwfdecSwfDecoder * s) s->bytes_parsed = 8; s->state = SWFDEC_STATE_INIT2; swfdec_swf_decoder_deflate (s, rest); + dec->data_type = SWFDEC_LOADER_DATA_SWF; return SWFDEC_STATUS_OK; } commit c4dd05264c289d66d70009cf1bf70905c3878b39 Author: Benjamin Otte <otte at gnome.org...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...->bytes_loaded + max - s->buffer->length); + max = s->buffer->length - dec->bytes_loaded; } + memcpy (s->buffer->data + dec->bytes_loaded, buffer->data, max); + dec->bytes_loaded += max; swfdec_buffer_unref (buffer); } @@ -163,17 +187,16 @@ swf_parse_header1 (SwfdecSwfDecoder * s) { SwfdecDecoder *dec = SWFDEC_DECODER (s); int sig1, sig2, sig3; - SwfdecBuffer *buffer; + SwfdecBuffer *buffer, *rest; SwfdecBits bits; guint8 *data; - /* NB: we're still reading from the original queue, since deflating is not initialized yet */ - buff...
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
...K) { - ret = inflate (&z, Z_SYNC_FLUSH); - SWFDEC_DEBUG ("inflate returned %d", ret); - } - inflateEnd (&z); - swfdec_buffer_unref (encoded); - if (ret < Z_OK) { - swfdec_buffer_unref (decoded); - return NULL; - } - return decoded; -} - -static SwfdecBuffer * -swf_parse_header1 (SwfeditFile *file, SwfdecBits *bits, GError **error) -{ - guint sig1, sig2, sig3, bytes_total; - - sig1 = swfdec_bits_get_u8 (bits); - sig2 = swfdec_bits_get_u8 (bits); - sig3 = swfdec_bits_get_u8 (bits); - if ((sig1 != 'F' && sig1 != 'C') || sig2 != 'W' || sig...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...UE_EDITABLE, NULL); gtk_tree_view_column_set_resizable (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column); diff --git a/test/swfedit_file.c b/test/swfedit_file.c index dd5e035..165cde7 100644 --- a/test/swfedit_file.c +++ b/test/swfedit_file.c @@ -125,9 +125,9 @@ swf_parse_header1 (SwfeditFile *file, Sw static void swf_parse_header2 (SwfeditFile *file, SwfdecBits *bits) { - swfedit_tag_read_token (SWFEDIT_TOKEN (file), bits, "rect", SWFEDIT_TOKEN_RECT); - swfedit_tag_read_token (SWFEDIT_TOKEN (file), bits, "rate", SWFEDIT_TOKEN_UINT16); - swfedit_ta...
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
...e.c @@ -27,6 +27,7 @@ #include "libswfdec/swfdec_buffer.h" #include "libswfdec/swfdec_debug.h" #include "libswfdec/swfdec_swf_decoder.h" +#include "swfdec_out.h" #include "swfedit_file.h" #include "swfedit_tag.h" @@ -103,7 +104,7 @@ swf_parse_header1 (SwfeditFile *file, Sw swfedit_token_add (SWFEDIT_TOKEN (file), "version", SWFEDIT_TOKEN_UINT8, GUINT_TO_POINTER (swfdec_bits_get_u8 (bits))); - bytes_total = swfdec_bits_get_u32 (bits); + bytes_total = swfdec_bits_get_u32 (bits) - 8; if (sig1 == 'C') { /*...