[Swfdec] 2 commits - libswfdec/swfdec_pattern.c test/image

Benjamin Otte company at kemper.freedesktop.org
Wed Feb 7 10:00:28 PST 2007


 libswfdec/swfdec_pattern.c          |    7 ++++---
 test/image/Makefile.am              |    2 ++
 test/image/image-jpeg-alpha.swf     |binary
 test/image/image-jpeg-alpha.swf.png |binary
 4 files changed, 6 insertions(+), 3 deletions(-)

New commits:
diff-tree 17f85210c89d16ae4824771d41ea5bf41988b123 (from 447a254e2dc0ffbb06346b1b0914937b61ac9e4b)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Feb 7 19:01:29 2007 +0100

    improve debugging output

diff --git a/libswfdec/swfdec_pattern.c b/libswfdec/swfdec_pattern.c
index 536698a..863271e 100644
--- a/libswfdec/swfdec_pattern.c
+++ b/libswfdec/swfdec_pattern.c
@@ -664,7 +664,7 @@ swfdec_pattern_parse_stroke (SwfdecSwfDe
     pattern->start_color = swfdec_bits_get_color (bits);
   }
   pattern->end_color = pattern->start_color;
-  SWFDEC_LOG ("new stroke pattern: %u %08x", pattern->start_width, pattern->start_color);
+  SWFDEC_LOG ("new stroke pattern: width %u color %08x", pattern->start_width, pattern->start_color);
 
   return SWFDEC_PATTERN (pattern);
 }
@@ -679,8 +679,9 @@ swfdec_pattern_parse_morph_stroke (Swfde
   pattern->end_width = swfdec_bits_get_u16 (bits);
   pattern->start_color = swfdec_bits_get_rgba (bits);
   pattern->end_color = swfdec_bits_get_rgba (bits);
-  SWFDEC_LOG ("new stroke pattern: %u %08X => %u %08X", pattern->start_width, pattern->start_color,
-      pattern->end_width, pattern->end_color);
+  SWFDEC_LOG ("new stroke pattern: width %u => %u color %08X => %08X", 
+      pattern->start_width, pattern->end_width,
+      pattern->start_color, pattern->end_color);
 
   return SWFDEC_PATTERN (pattern);
 }
diff-tree 447a254e2dc0ffbb06346b1b0914937b61ac9e4b (from 4da13f915d871a6e0e3495967275cee5661eb064)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Feb 7 19:01:01 2007 +0100

    add failing jpeg test

diff --git a/test/image/Makefile.am b/test/image/Makefile.am
index 2e1bbba..e9eec1f 100644
--- a/test/image/Makefile.am
+++ b/test/image/Makefile.am
@@ -11,5 +11,7 @@ EXTRA_DIST = \
 	color-transform-add80.swf.png \
 	color-transform-add80-alpha.swf \
 	color-transform-add80-alpha.swf.png \
+	image-jpeg-alpha.swf \
+	image-jpeg-alpha.swf.png \
 	image-lossless-alpha.swf \
 	image-lossless-alpha.swf.png
diff --git a/test/image/image-jpeg-alpha.swf b/test/image/image-jpeg-alpha.swf
new file mode 100755
index 0000000..afc880e
Binary files /dev/null and b/test/image/image-jpeg-alpha.swf differ
diff --git a/test/image/image-jpeg-alpha.swf.png b/test/image/image-jpeg-alpha.swf.png
new file mode 100755
index 0000000..83a422b
Binary files /dev/null and b/test/image/image-jpeg-alpha.swf.png differ


More information about the Swfdec mailing list