Displaying 11 results from an estimated 11 matches for "swfedittoken".
Did you mean:
swfedit_token
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/tes...
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
...gt;filename = absolute;
- if (!swfedit_file_parse (file, &bits, error)) {
- swfdec_buffer_unref (buffer);
- g_object_unref (file);
- return NULL;
- }
- swfdec_buffer_unref (buffer);
- return file;
-}
-
-static SwfdecBuffer *
-swfedit_file_write (SwfeditFile *file)
-{
- guint i;
- SwfeditToken *token = SWFEDIT_TOKEN (file);
- SwfdecBufferQueue *queue;
- SwfdecBuffer *buffer;
- SwfdecOut *out;
-
- queue = swfdec_buffer_queue_new ();
- /* write second part of header */
- out = swfdec_out_open ();
- swfedit_tag_write_token (token, out, 1);
- swfedit_tag_write_token (token, out, 2);...
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
...SWFEDIT_TYPE_FILE, SwfeditFile))
+#define SWFEDIT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFEDIT_TYPE_FILE, SwfeditFileClass))
+#define SWFEDIT_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFEDIT_TYPE_FILE, SwfeditFileClass))
+
+struct _SwfeditFile {
+ SwfeditToken token;
+
+ char * filename; /* name this file is saved to */
+
+ /* defined objects */
+ GList * tags; /* ordered list of all tags in the file */
+};
+
+struct _SwfeditFileClass {
+ SwfeditTokenClass token_class;
+};
+
+GType swfedit_file_get_type (void);
+
+SwfeditFile * swfedit_file_new...
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
...A
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gtk/gtk.h>
+#include "libswfdec/swfdec_script.h"
+#include "swfdec_out.h"
+#include "swfedit_file.h"
+
+/* the stuff we look for */
+guint *add_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_retu...
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
...t;filename = absolute;
if (!swfedit_file_parse (file, &bits, error)) {
swfdec_buffer_unref (buffer);
g_object_unref (file);
@@ -212,7 +216,53 @@ swfedit_file_new (const char *filename,
static SwfdecBuffer *
swfedit_file_write (SwfeditFile *file)
{
- return NULL;
+ guint i;
+ SwfeditToken *token = SWFEDIT_TOKEN (file);
+ SwfdecBufferQueue *queue;
+ SwfdecBuffer *buffer;
+ SwfdecOut *out;
+
+ queue = swfdec_buffer_queue_new ();
+ /* write second part of header */
+ out = swfdec_out_open ();
+ swfedit_tag_write_token (token, out, 1);
+ swfedit_tag_write_token (token, out, 2);...
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
...+#if 0
+# define REPORT g_print ("%s\n", G_STRFUNC)
+#else
+# define REPORT
+#endif
+static GtkTreeModelFlags
+swfedit_token_get_flags (GtkTreeModel *tree_model)
+{
+ REPORT;
+ return 0;
+}
+
+static gint
+swfedit_token_get_n_columns (GtkTreeModel *tree_model)
+{
+ SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
+
+ REPORT;
+ return token->tokens->len;
+}
+
+static GType
+swfedit_token_get_column_type (GtkTreeModel *tree_model, gint index_)
+{
+ REPORT;
+ switch (index_) {
+ case SWFEDIT_COLUMN_NAME:
+ return G_TYPE_STRING;
+ case SWFED...
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
...+#if 0
+# define REPORT g_print ("%s\n", G_STRFUNC)
+#else
+# define REPORT
+#endif
+static GtkTreeModelFlags
+swfedit_token_get_flags (GtkTreeModel *tree_model)
+{
+ REPORT;
+ return 0;
+}
+
+static gint
+swfedit_token_get_n_columns (GtkTreeModel *tree_model)
+{
+ SwfeditToken *token = SWFEDIT_TOKEN (tree_model);
+
+ REPORT;
+ return token->tokens->len;
+}
+
+static GType
+swfedit_token_get_column_type (GtkTreeModel *tree_model, gint index_)
+{
+ REPORT;
+ switch (index_) {
+ case SWFEDIT_COLUMN_NAME:
+ return G_TYPE_STRING;
+ case SWFED...
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
...130,8 @@ struct {
{ swfedit_u16_write, swfedit_u16_read },
{ swfedit_u32_write, swfedit_u32_read },
{ swfedit_rect_write, swfedit_rect_read },
+ { swfedit_rgb_write, swfedit_rgb_read },
+ { swfedit_rgba_write, swfedit_rgba_read },
};
void
@@ -156,14 +182,16 @@ swfedit_tag_read_token (SwfeditToken *to
typedef struct {
const char * name; /* name to use for this field */
SwfeditTokenType type; /* type of this field */
- guint n_items; /* field to look at for item count */
+ guint n_items; /* field to look at for item count (or 0 to use 1 item) */
guint hint; /...
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
...Author: Benjamin Otte <otte at gnome.org>
Date: Tue Jul 17 01:09:38 2007 +0100
fix warning I missed 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) {...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...ffer, "unknown", 6 /* FIXME */);
- swfdec_buffer_unref (buffer);
if (script != NULL) {
*result = script;
return TRUE;
diff --git a/test/swfscript.c b/test/swfscript.c
index 187aeb5..4e2a9e4 100644
--- a/test/swfscript.c
+++ b/test/swfscript.c
@@ -208,7 +208,6 @@ modify_file (SwfeditToken *token, guint
state.buffer->length, state.script->buffer->length);
#endif
script = swfdec_script_new (state.buffer, state.script->name, state.script->version);
- swfdec_buffer_unref (state.buffer);
g_assert (script);
swfedit_token_set (token, idx, script);
diff-t...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...ffer, "unknown", 6 /* FIXME */);
- swfdec_buffer_unref (buffer);
if (script != NULL) {
*result = script;
return TRUE;
diff --git a/test/swfscript.c b/test/swfscript.c
index 187aeb5..4e2a9e4 100644
--- a/test/swfscript.c
+++ b/test/swfscript.c
@@ -208,7 +208,6 @@ modify_file (SwfeditToken *token, guint
state.buffer->length, state.script->buffer->length);
#endif
script = swfdec_script_new (state.buffer, state.script->name, state.script->version);
- swfdec_buffer_unref (state.buffer);
g_assert (script);
swfedit_token_set (token, idx, script);
diff-t...