search for: g_print

Displaying 20 results from an estimated 108 matches for "g_print".

2007 Jun 19
0
Branch 'as' - test/dump.c
...#include <libswfdec/swfdec_tag.h> #include <libswfdec/swfdec_text.h> static gboolean verbose = FALSE; @@ -78,18 +79,17 @@ dump_sound (SwfdecSound *sound) } static void -dump_sprite (SwfdecSprite *s) +dump_sprite (SwfdecSwfDecoder *dec, SwfdecSprite *s) { if (!verbose) { g_print (" %u frames\n", s->n_frames); } else { - guint i, j; + guint i, j, tag; + SwfdecBuffer *buffer; SwfdecSound *sound = NULL; for (i = 0; i < s->n_frames; i++) { SwfdecSpriteFrame *frame = &s->frames[i]; - if (frame->actions == NULL) -...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...ir; @@ -263,16 +263,24 @@ main (int argc, char **argv) if (!g_str_has_suffix (file, ".swf")) continue; if (!run_test (file)) - failed_tests++; + failed_tests = g_list_prepend (failed_tests, g_strdup (file)); } g_dir_close (dir); } if (failed_tests) { - g_print ("\nFAILURES: %u\n", failed_tests); + GList *walk; + failed_tests = g_list_sort (failed_tests, (GCompareFunc) strcmp); + g_print ("\nFAILURES: %u\n", g_list_length (failed_tests)); + for (walk = failed_tests; walk; walk = walk->next) { + g_print ("...
2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...| 2 23 files changed, 322 insertions(+), 287 deletions(-) New commits: diff-tree 3398ec3ae1d036d76054f7ddec170dc158e47079 (from ab7eb1380872f4239324fccb220fb5174517aa71) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 2 11:33:32 2007 +0200 remove debugging g_print's diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c index 46b32a6..f676831 100644 --- a/libswfdec-gtk/swfdec_gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -87,7 +87,6 @@ swfdec_gtk_loader_ensure_open (SwfdecGtk return; real_uri = soup_uri_to...
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
...init - swfdec_init (); - - // read command line params - context = g_option_context_new ("Run a Flash file trying to crash Swfdec"); - g_option_context_add_main_entries (context, entries, NULL); - - if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) { - g_printerr ("Couldn't parse command-line options: %s\n", err->message); - g_error_free (err); - return 1; - } - - if (filenames == NULL || g_strv_length (filenames) < 1) { - g_printerr ("At least one input filename is required\n"); - return 1; - } - - // make t...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...h for style %u", style); + SWFDEC_ERROR ("could not find a closed path for style %u, starting at %d %d", style, + paths[start].x_start, paths[start].y_start); goto fail; } } @@ -794,6 +795,14 @@ swfdec_shape_initialize_from_sub_paths ( { guint i; +#if 0 + g_print ("\n\n"); + for (i = 0; i < path_array->len; i++) { + SubPath *path = &g_array_index (path_array, SubPath, i); + g_print ("%d %d => %d %d - %u %u %u\n", path->x_start, path->y_start, path->x_end, path->y_end, + path->fill0style, path->fill...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...ir; @@ -263,16 +263,24 @@ main (int argc, char **argv) if (!g_str_has_suffix (file, ".swf")) continue; if (!run_test (file)) - failed_tests++; + failed_tests = g_list_prepend (failed_tests, g_strdup (file)); } g_dir_close (dir); } if (failed_tests) { - g_print ("\nFAILURES: %u\n", failed_tests); + GList *walk; + failed_tests = g_list_sort (failed_tests, (GCompareFunc) strcmp); + g_print ("\nFAILURES: %u\n", g_list_length (failed_tests)); + for (walk = failed_tests; walk; walk = walk->next) { + g_print ("...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...ist */ if (argc > 1) { @@ -219,18 +232,63 @@ main (int argc, char **argv) tests = g_list_sort (tests, test_compare); /* run them and put failed ones in failed_tests */ - for (walk = tests; walk; walk = walk->next) { - Test *test = walk->data; - - run_test (test); - g_print (test->output); - if (!test->success) { - failures++; - g_string_append_printf (failed_tests, - " %s\n", test->filename); + if (g_getenv ("SWFDEC_TEST_THREADS")) { + pool = g_thread_pool_new (run_test, NULL, -1, FALSE, &error); + if (...
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
...| 67 ------------ libswfdec/swfdec_text_field_movie.c | 10 - 17 files changed, 341 insertions(+), 479 deletions(-) New commits: commit b0b423c35cd3e06ab2004534a87c90090c2b7b88 Author: Benjamin Otte <otte at gnome.org> Date: Thu Oct 25 11:40:26 2007 +0200 remove all debug g_print statements diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 7ee4903..93887f4 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -1913,7 +1913,6 @@ swfdec_player_get_export_class (SwfdecPlayer *player, const char *name) SwfdecAsObject *ret; r...
2008 Jan 08
0
4 commits - test/.gitignore test/image test/Makefile.am test/swfdec_test_function.c test/swfdec_test_image.c test/swfdec_test_image.h test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...boolean -image_diff (cairo_surface_t *surface, const char *filename) -{ - cairo_surface_t *image, *diff = NULL; - int w, h; - char *real; - - real = g_strdup_printf ("%s.png", filename); - image = cairo_image_surface_create_from_png (real); - if (cairo_surface_status (image)) { - g_print (" ERROR: Could not load %s: %s\n", real, - cairo_status_to_string (cairo_surface_status (image))); - g_free (real); - goto dump; - } - g_free (real); - g_assert (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE); - w = cairo_image_surface_get_width (surface); - h...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...9906..c66d5be 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -331,6 +331,7 @@ swfdec_movie_destroy (SwfdecMovie *movie klass->finish_movie (movie); player->movies = g_list_remove (player->movies, movie); movie->state = SWFDEC_MOVIE_STATE_DESTROYED; + g_print ("destroying movie %p %s\n", movie, movie->name); g_object_unref (movie); } @@ -936,6 +937,8 @@ swfdec_movie_new (SwfdecPlayer *player, /* emit the new-movie signal */ if (SWFDEC_IS_DEBUGGER (player)) g_signal_emit_by_name (player, "movie-added", movie); +...
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...snd_pcm_t * pcm; /* the pcm we play back to */ - GSource ** sources; /* sources for writing data */ - guint n_sources; /* number of sources */ - guint offset; /* offset into sound */ -} Stream; - -#define ALSA_TRY(func,msg) G_STMT_START{ \ - int err = func; \ - if (err < 0) \ - g_printerr (msg ": %s\n", snd_strerror (err)); \ -}G_STMT_END - -#define ALSA_ERROR(func,msg,retval) G_STMT_START { \ - int err = func; \ - if (err < 0) { \ - g_printerr (msg ": %s\n", snd_strerror (err)); \ - return retval; \ - } \ -}G_STMT_END - -/*** STREAMS ***/ - -stati...
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
...c b/libswfdec/swfdec_codec_gst.c index ad8c536..c10a201 100644 --- a/libswfdec/swfdec_codec_gst.c +++ b/libswfdec/swfdec_codec_gst.c @@ -26,7 +26,7 @@ #include "swfdec_codec.h" #include "swfdec_debug.h" -#if 0 +#if 1 #define swfdec_cond_wait(cond, mutex) G_STMT_START { \ g_print ("waiting at %s\n", G_STRLOC); \ g_cond_wait (cond, mutex); \ @@ -95,6 +95,7 @@ swfdec_codec_gst_fakesrc_handoff (GstEle g_mutex_unlock (player->mutex); return; } + g_print ("got one\n"); buf->data = g_memdup (player->in->data, player->in->l...
2007 Mar 20
0
9 commits - configure.ac libswfdec/swfdec_bits.c libswfdec/swfdec_debug.c libswfdec/swfdec_js.c libswfdec/swfdec_script.c libswfdec/swfdec_sound.c
...player->jsobj = JS_NewObject (player->jscx, &global_class, NULL, NULL); @@ -143,23 +129,6 @@ swfdec_js_finish_player (SwfdecPlayer *p } } -static void -swfdec_disassemble (SwfdecPlayer *player, JSScript *script) -{ - guint i; - - for (i = 0; i < script->length; i ++) { - g_print ("%02X ", script->code[i]); - if (i % 16 == 15) - g_print ("\n"); - else if (i % 4 == 3) - g_print (" "); - } - if (i % 16 != 15) - g_print ("\n"); - js_Disassemble (player->jscx, script, JS_TRUE, stdout); -} - /** * swfdec_js_e...
2007 Oct 11
0
12 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_frame.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_shape_parser.c libswfdec/swfdec_sound.c test/sound
..._data, *org_data; + guint i, length; + gint16 *comp_data, *comp_end, *org_data; /* must hold since we are rendering it */ - g_assert (compare->length % 2 == 0); - if (original->length % 2 != 0) { + g_assert (compare->length % 4 == 0); + if (original->length % 4 != 0) { g_print (" ERROR: %s: filesize (%u bytes) not multiple of 4\n", filename, original->length); return FALSE; } - if (compare->length != original->length) { - /* we allow to cut 0 bytes off the comparison files - at least as long as we render additional 0s */ - for (i = co...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...(SwfdecImage *image) } static void -dump_objects (SwfdecSwfDecoder *s) +dump_object (gpointer key, gpointer value, gpointer unused) { - GList *g; - SwfdecCharacter *c; + SwfdecCharacter *c = value; - for (g = g_list_last (s->characters); g; g = g->prev) { - c = g->data; - g_print ("%d: %s\n", c->id, G_OBJECT_TYPE_NAME (c)); - if (verbose && SWFDEC_IS_GRAPHIC (c)) { - SwfdecGraphic *graphic = SWFDEC_GRAPHIC (c); - g_print (" extents: %g %g %g %g\n", graphic->extents.x0, graphic->extents.y0, - graphic->extents.x1, graph...
2007 Jun 17
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_player.c
...wfdec_player.c | 1 + 3 files changed, 29 insertions(+), 4 deletions(-) New commits: diff-tree d766f996e21c12d9fbca23b8e315cc1e79b4e784 (from c9fbb629a9fafe3cb05322ef3c7653085cd1ace9) Author: Benjamin Otte <otte at gnome.org> Date: Sun Jun 17 21:49:08 2007 +0200 remove leftover g_print diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index b848ba3..4ea8f7b 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -250,7 +250,6 @@ swfdec_as_context_gc (SwfdecAsContext *c g_return_if_fail (context->state != SWFDEC_AS_CONTEXT_...
2007 Mar 19
0
7 commits - libswfdec/jpeg libswfdec/swfdec_button_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_video.c player/swfdec_debug_movies.c
...debug_movies.c | 2 -- 10 files changed, 69 insertions(+), 11 deletions(-) New commits: diff-tree 203fadf70250f74a895940b2682ebaf39a68839d (from aa8feb3ed06ab79e3c622a79faa1e44d2b400bb5) Author: Benjamin Otte <otte@gnome.org> Date: Mon Mar 19 16:31:42 2007 +0100 remove leftover g_print's diff --git a/player/swfdec_debug_movies.c b/player/swfdec_debug_movies.c index 649f19a..14e4281 100644 --- a/player/swfdec_debug_movies.c +++ b/player/swfdec_debug_movies.c @@ -299,7 +299,6 @@ swfdec_debug_movies_added (SwfdecPlayer GtkTreeIter iter; iter.user_data = movie; - g_pri...
2007 Apr 02
0
4 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...es diff --git a/player/swfdebug.c b/player/swfdebug.c index af7f7dc..8b2e9f2 100644 --- a/player/swfdebug.c +++ b/player/swfdebug.c @@ -408,10 +408,10 @@ main (int argc, char *argv[]) return 1; } - loader = swfdec_loader_new_from_file (argv[1], &error); - if (loader == NULL) { - g_printerr ("Couldn't open file \"%s\": %s\n", argv[1], error->message); - g_error_free (error); + loader = swfdec_loader_new_from_file (argv[1]); + if (loader->error) { + g_printerr ("Couldn't open file \"%s\": %s\n", argv[1], loader->error)...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...; + ctx = g_option_context_new (""); g_option_context_add_main_entries (ctx, options, "options"); g_option_context_parse (ctx, &argc, &argv, &error); @@ -95,12 +103,6 @@ main (int argc, char **argv) return EXIT_FAILURE; } - if (argc < 2) { - g_printerr ("ERROR: Usage: %s [OPTIONS] filename\n", argv[0]); - return EXIT_FAILURE; - } - - swfdec_init (); script = load_script (script_filename); g_free (script_filename); if (script == NULL) @@ -117,9 +119,22 @@ main (int argc, char **argv) g_print ("ERROR: Not enough...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...int (frame); + Commands.print (i++ + ": " + frame); frame = frame.next; } }; diff-tree f0776fdc6d6e96c49e4daaa9d512c813b59b39df (from 46e54f2e89bcf81b9137cdba219d7322ee7055ad) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 16 21:26:41 2007 +0200 debugging g_print() ... diff --git a/vivified/core/vivi_debugger.c b/vivified/core/vivi_debugger.c index 53ea0ea..670daff 100644 --- a/vivified/core/vivi_debugger.c +++ b/vivified/core/vivi_debugger.c @@ -76,9 +76,7 @@ vivi_debugger_break (ViviDebugger *debug g_object_notify (G_OBJECT (app), "interrupted&qu...