search for: swfdec_test_dump

Displaying 4 results from an estimated 4 matches for "swfdec_test_dump".

2007 Feb 06
0
test/image
...The image must be in PNG format. Comparing in this context means +checking that the difference between the red, green, blue and alpha channel for +every pixel isn't greater than a given threshold. Currently the threshold is +set to 3 to account for rounding errors. +If the environment variable SWFDEC_TEST_DUMP is set, for every failed test the +image containing the player's output is dumped to $FILE.dump.png. If available, +a difference image detailing the differences between the reference image and +the current image is saved to $FILE.diff.png. + + +How do I run my new test? + +Create a file to test...
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
...a (image), + cairo_image_surface_get_data (diff), + w, h, 4 * w) != 0) { g_print (" ERROR: images differ\n"); goto dump; } cairo_surface_destroy (image); + cairo_surface_destroy (diff); return TRUE; dump: cairo_surface_destroy (image); if (g_getenv ("SWFDEC_TEST_DUMP")) { cairo_status_t status; - char *dump = g_strdup_printf ("%s.dump.png", filename); + char *dump; + + dump = g_strdup_printf ("%s.dump.png", filename); status = cairo_surface_write_to_png (surface, dump); if (status) { g_print (" E...
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
...a (image), + cairo_image_surface_get_data (diff), + w, h, 4 * w) != 0) { g_print (" ERROR: images differ\n"); goto dump; } cairo_surface_destroy (image); + cairo_surface_destroy (diff); return TRUE; dump: cairo_surface_destroy (image); if (g_getenv ("SWFDEC_TEST_DUMP")) { cairo_status_t status; - char *dump = g_strdup_printf ("%s.dump.png", filename); + char *dump; + + dump = g_strdup_printf ("%s.dump.png", filename); status = cairo_surface_write_to_png (surface, dump); if (status) { g_print (" E...
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
...a (image), - cairo_image_surface_get_data (diff), - w, h, 4 * w) != 0) { - g_print (" ERROR: images differ\n"); - goto dump; - } - - cairo_surface_destroy (image); - cairo_surface_destroy (diff); - return TRUE; - -dump: - cairo_surface_destroy (image); - if (g_getenv ("SWFDEC_TEST_DUMP")) { - cairo_status_t status; - char *dump; - - dump = g_strdup_printf ("%s.dump.png", filename); - status = cairo_surface_write_to_png (surface, dump); - if (status) { - g_print (" ERROR: failed to dump image to %s: %s\n", dump, - cairo_status_to...