search for: swfedittokenentry

Displaying 11 results from an estimated 11 matches for "swfedittokenentry".

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
...rt of header */ - out = swfdec_out_open (); - swfedit_tag_write_token (token, out, 1); - swfedit_tag_write_token (token, out, 2); - swfedit_tag_write_token (token, out, 3); - swfdec_buffer_queue_push (queue, swfdec_out_close (out)); - - for (i = 4; i < token->tokens->len; i++) { - SwfeditTokenEntry *entry = &g_array_index (token->tokens, SwfeditTokenEntry, i); - g_assert (entry->type == SWFEDIT_TOKEN_OBJECT); - - buffer = swfedit_tag_write (entry->value); - out = swfdec_out_open (); - swfdec_out_put_u16 (out, SWFEDIT_TAG (entry->value)->tag << 6 | - MIN (...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfedit_token_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfeditToken *token = SWFEDIT_TOKEN (tree_model); + guint i = gtk_tree_path_get_indices (path)[0]; + SwfeditTokenEntry *entry; + + REPORT; + if (i > token->tokens->len) + return FALSE; + entry = &g_array_index (token->tokens, SwfeditTokenEntry, i); + if (gtk_tree_path_get_depth (path) > 1) { + GtkTreePath *new; + int j; + int *indices; + gboolean ret; + + if (e...
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
...rt of header */ + out = swfdec_out_open (); + swfedit_tag_write_token (token, out, 1); + swfedit_tag_write_token (token, out, 2); + swfedit_tag_write_token (token, out, 3); + swfdec_buffer_queue_push (queue, swfdec_out_close (out)); + + for (i = 4; i < token->tokens->len; i++) { + SwfeditTokenEntry *entry = &g_array_index (token->tokens, SwfeditTokenEntry, i); + g_assert (entry->type == SWFEDIT_TOKEN_OBJECT); + + buffer = swfedit_tag_write (entry->value); + out = swfdec_out_open (); + swfdec_out_put_u16 (out, SWFEDIT_TAG (entry->value)->tag << 6 | + MIN (...
2007 Feb 14
0
7 commits - libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_list.c test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h test/swfscript.c
...trace = NULL; + +typedef gboolean ( *SwfeditTokenForeachFunc) (SwfeditToken *token, guint idx, + const char *name, SwfeditTokenType type, gconstpointer value, gpointer data); + +static gboolean +swfedit_token_foreach (SwfeditToken *token, SwfeditTokenForeachFunc func, + gpointer data) +{ + SwfeditTokenEntry *entry; + guint i; + + g_return_val_if_fail (SWFEDIT_IS_TOKEN (token), FALSE); + g_return_val_if_fail (func != NULL, FALSE); + + for (i = 0; i < token->tokens->len; i++) { + entry = &g_array_index (token->tokens, SwfeditTokenEntry, i); + if (!func (token, i, entry->name...
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
...aking swfedit useful diff --git a/test/swfedit_file.c b/test/swfedit_file.c index 165cde7..26699de 100644 --- a/test/swfedit_file.c +++ b/test/swfedit_file.c @@ -284,3 +284,14 @@ swfedit_file_save (SwfeditFile *file, GE return ret; } +guint +swfedit_file_get_version (SwfeditFile *file) +{ + SwfeditTokenEntry *entry; + + g_return_val_if_fail (SWFEDIT_FILE (file), 3); + + entry = &g_array_index (SWFEDIT_TOKEN (file)->tokens, SwfeditTokenEntry, 0); + return GPOINTER_TO_UINT (entry->value); +} + diff --git a/test/swfedit_file.h b/test/swfedit_file.h index e904950..ecd096a 100644 --- a/test/swf...
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
...break; + } + g_assert_not_reached (); + return G_TYPE_NONE; +} + +static gboolean +swfedit_token_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) +{ + SwfeditToken *token = SWFEDIT_TOKEN (tree_model); + guint i = gtk_tree_path_get_indices (path)[0]; + SwfeditTokenEntry *entry; + + REPORT; + if (i > token->tokens->len) + return FALSE; + entry = &g_array_index (token->tokens, SwfeditTokenEntry, i); + if (gtk_tree_path_get_depth (path) > 1) { + GtkTreePath *new; + int j; + int *indices; + gboolean ret; + + if (e...
2007 Jan 24
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_script.c test/swfdec_out.c test/swfdec_out.h test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h
...TreeMode } else { token = SWFEDIT_TOKEN (tree_model); } + if (token->tokens->len == 0) + return FALSE; iter->stamp = 0; /* FIXME */ iter->user_data = token; iter->user_data2 = GINT_TO_POINTER (0); @@ -322,7 +324,7 @@ swfedit_token_iter_has_child (GtkTreeMod SwfeditTokenEntry *entry = &g_array_index (token->tokens, SwfeditTokenEntry, GPOINTER_TO_INT (iter->user_data2)); REPORT; - return entry->type == SWFEDIT_TOKEN_OBJECT; + return entry->type == SWFEDIT_TOKEN_OBJECT && SWFEDIT_TOKEN (entry->value)->tokens->len > 0; } stati...
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
...earlier diff --git a/test/swfedit_list.c b/test/swfedit_list.c index 36e0295..45e0dd5 100644 --- a/test/swfedit_list.c +++ b/test/swfedit_list.c @@ -49,7 +49,7 @@ swfedit_list_changed (SwfeditToken *toke /* update length */ j = list->def[i % list->n_defs].n_items; if (j != 0) { - SwfeditTokenEntry *entry = &g_array_index (token->tokens, + entry = &g_array_index (token->tokens, SwfeditTokenEntry, j - 1); if (entry->type == SWFEDIT_TOKEN_UINT32) { SwfdecOut *out = swfdec_out_open (); diff-tree 6ae045ecd4718c78b02f2e0bf569c832ca52992b (from a6d787347be55099a1...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...make it not crash print the actual tag name ensure _get_nth_child works with token == NULL make parsing binary data work enable editing of properties change read/write to from_string/to_string add stubs for saving export the entry format and rename it to SwfeditTokenEntry ignore 0-length buffers in bufferqueue we don't have the header in the uncompressed buffer We need at least gtk-2.8 add swfedit implement saving remove debugging g_print handle tokens without children add initial support for auto-extraction of con...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...make it not crash print the actual tag name ensure _get_nth_child works with token == NULL make parsing binary data work enable editing of properties change read/write to from_string/to_string add stubs for saving export the entry format and rename it to SwfeditTokenEntry ignore 0-length buffers in bufferqueue we don't have the header in the uncompressed buffer We need at least gtk-2.8 add swfedit implement saving remove debugging g_print handle tokens without children add initial support for auto-extraction of con...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...make it not crash print the actual tag name ensure _get_nth_child works with token == NULL make parsing binary data work enable editing of properties change read/write to from_string/to_string add stubs for saving export the entry format and rename it to SwfeditTokenEntry ignore 0-length buffers in bufferqueue we don't have the header in the uncompressed buffer We need at least gtk-2.8 add swfedit implement saving remove debugging g_print handle tokens without children add initial support for auto-extraction of con...