[gdk-pixbuf/wip/otte/tga: 16/24] tests: Add TGA test



commit d3212ed070fb6ee9e99db11381854a9d1b2e2507
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 21 00:20:42 2015 +0200

    tests: Add TGA test
    
    Add a bunch of TGA files and a test that loads the image byte by byte
    and copies only the parts given via the area-updated signal of the
    loader and then checks the resulting image is correct.

 tests/Makefile.am                                  |   10 +-
 tests/pixbuf-slow-load.c                           |  172 ++++++++++++++++++++
 .../test-images/tga/gtk-logo-16bpp-bottom-left.tga |  Bin 0 -> 4642 bytes
 .../tga/gtk-logo-16bpp-bottom-right.tga            |  Bin 0 -> 4642 bytes
 tests/test-images/tga/gtk-logo-16bpp-top-left.tga  |  Bin 0 -> 4642 bytes
 tests/test-images/tga/gtk-logo-16bpp-top-right.tga |  Bin 0 -> 4642 bytes
 .../test-images/tga/gtk-logo-24bpp-bottom-left.tga |  Bin 0 -> 6956 bytes
 .../tga/gtk-logo-24bpp-bottom-right.tga            |  Bin 0 -> 6956 bytes
 tests/test-images/tga/gtk-logo-24bpp-top-left.tga  |  Bin 0 -> 6956 bytes
 tests/test-images/tga/gtk-logo-24bpp-top-right.tga |  Bin 0 -> 6956 bytes
 .../test-images/tga/gtk-logo-32bpp-bottom-left.tga |  Bin 0 -> 9260 bytes
 .../tga/gtk-logo-32bpp-bottom-right.tga            |  Bin 0 -> 9260 bytes
 tests/test-images/tga/gtk-logo-32bpp-top-left.tga  |  Bin 0 -> 9260 bytes
 tests/test-images/tga/gtk-logo-32bpp-top-right.tga |  Bin 0 -> 9260 bytes
 .../tga/gtk-logo-cmap-8bpp-bottom-left.tga         |  Bin 0 -> 3196 bytes
 .../tga/gtk-logo-cmap-8bpp-bottom-right.tga        |  Bin 0 -> 3196 bytes
 .../tga/gtk-logo-cmap-8bpp-top-left.tga            |  Bin 0 -> 3196 bytes
 .../tga/gtk-logo-cmap-8bpp-top-right.tga           |  Bin 0 -> 3196 bytes
 .../tga/gtk-logo-cmap-rle-8bpp-bottom-left.tga     |  Bin 0 -> 1797 bytes
 .../tga/gtk-logo-cmap-rle-8bpp-bottom-right.tga    |  Bin 0 -> 1797 bytes
 .../tga/gtk-logo-cmap-rle-8bpp-top-left.tga        |  Bin 0 -> 1797 bytes
 .../tga/gtk-logo-cmap-rle-8bpp-top-right.tga       |  Bin 0 -> 1797 bytes
 .../tga/gtk-logo-gray-16bpp-bottom-left.tga        |  Bin 0 -> 4652 bytes
 .../tga/gtk-logo-gray-16bpp-bottom-right.tga       |  Bin 0 -> 4652 bytes
 .../tga/gtk-logo-gray-16bpp-top-left.tga           |  Bin 0 -> 4652 bytes
 .../tga/gtk-logo-gray-16bpp-top-right.tga          |  Bin 0 -> 4652 bytes
 .../tga/gtk-logo-gray-8bpp-bottom-left.tga         |  Bin 0 -> 2348 bytes
 .../tga/gtk-logo-gray-8bpp-bottom-right.tga        |  Bin 0 -> 2348 bytes
 .../tga/gtk-logo-gray-8bpp-top-left.tga            |  Bin 0 -> 2348 bytes
 .../tga/gtk-logo-gray-8bpp-top-right.tga           |  Bin 0 -> 2348 bytes
 .../tga/gtk-logo-gray-rle-16bpp-bottom-left.tga    |  Bin 0 -> 2216 bytes
 .../tga/gtk-logo-gray-rle-16bpp-bottom-right.tga   |  Bin 0 -> 2216 bytes
 .../tga/gtk-logo-gray-rle-16bpp-top-left.tga       |  Bin 0 -> 2216 bytes
 .../tga/gtk-logo-gray-rle-16bpp-top-right.tga      |  Bin 0 -> 2216 bytes
 .../tga/gtk-logo-gray-rle-8bpp-bottom-left.tga     |  Bin 0 -> 999 bytes
 .../tga/gtk-logo-gray-rle-8bpp-bottom-right.tga    |  Bin 0 -> 999 bytes
 .../tga/gtk-logo-gray-rle-8bpp-top-left.tga        |  Bin 0 -> 999 bytes
 .../tga/gtk-logo-gray-rle-8bpp-top-right.tga       |  Bin 0 -> 999 bytes
 .../tga/gtk-logo-rle-24bpp-bottom-left.tga         |  Bin 0 -> 2306 bytes
 .../tga/gtk-logo-rle-24bpp-bottom-right.tga        |  Bin 0 -> 2306 bytes
 .../tga/gtk-logo-rle-24bpp-top-left.tga            |  Bin 0 -> 2306 bytes
 .../tga/gtk-logo-rle-24bpp-top-right.tga           |  Bin 0 -> 2306 bytes
 .../tga/gtk-logo-rle-32bpp-bottom-left.tga         |  Bin 0 -> 4078 bytes
 .../tga/gtk-logo-rle-32bpp-bottom-right.tga        |  Bin 0 -> 4078 bytes
 .../tga/gtk-logo-rle-32bpp-top-left.tga            |  Bin 0 -> 4078 bytes
 .../tga/gtk-logo-rle-32bpp-top-right.tga           |  Bin 0 -> 4078 bytes
 46 files changed, 181 insertions(+), 1 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1f09711..47e5d59 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,6 +40,7 @@ test_programs =                       \
        pixbuf-resource                 \
        pixbuf-scale                    \
        pixbuf-short-gif-write          \
+       pixbuf-slow-load                \
        pixbuf-save                     \
        pixbuf-readonly-to-mutable      \
        pixbuf-composite                \
@@ -61,7 +62,8 @@ dist_installed_test_data =            \
        cve-2015-4491.bmp               \
        large.png                       \
        large.jpg                       \
-       $(wildcard $(srcdir)/test-images/*)
+       $(wildcard $(srcdir)/test-images/*) \
+       $(wildcard $(srcdir)/test-images/tga/*)
 
 cve_2015_4491_SOURCES =                        \
        cve-2015-4491.c                 \
@@ -113,6 +115,12 @@ pixbuf_save_SOURCES =                      \
        test-common.h                   \
        $(NULL)
 
+pixbuf_slow_load_SOURCES =             \
+       pixbuf-slow-load.c              \
+       test-common.c                   \
+       test-common.h                   \
+       $(NULL)
+
 pixbuf_jpeg_SOURCES =                  \
        pixbuf-jpeg.c                   \
        test-common.c                   \
diff --git a/tests/pixbuf-slow-load.c b/tests/pixbuf-slow-load.c
new file mode 100644
index 0000000..8186b51
--- /dev/null
+++ b/tests/pixbuf-slow-load.c
@@ -0,0 +1,172 @@
+/* -*- Mode: C; c-basic-offset: 2; -*- */
+/* GdkPixbuf library - test loaders
+ *
+ * Copyright (C) 2015 Red Hat, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Author: Benjamin Otte
+ */
+
+#include "config.h"
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+#include "test-common.h"
+
+static void
+loader_size_prepared (GdkPixbufLoader  *loader,
+                      int               w,
+                      int               h,
+                      GdkPixbuf       **pixbuf)
+{
+  g_assert (*pixbuf == NULL);
+
+  *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, w, h);
+  g_assert (*pixbuf != NULL);
+}
+
+static void
+loader_area_updated (GdkPixbufLoader  *loader,
+                     int               x,
+                     int               y,
+                     int               w,
+                     int               h,
+                     GdkPixbuf       **pixbuf)
+{
+  gdk_pixbuf_copy_area (gdk_pixbuf_loader_get_pixbuf (loader),
+                        x, y,
+                        w, h,
+                        *pixbuf,
+                        x, y);
+}
+
+static void
+test_slow_load (gconstpointer file)
+{
+  GdkPixbufLoader *loader;
+  GdkPixbuf *reference, *loaded = NULL;
+  GError *error = NULL;
+  const char *filename;
+  guchar *contents;
+  gsize i, contents_length;
+
+  filename = g_test_get_filename (G_TEST_DIST, file, NULL);
+  reference = gdk_pixbuf_new_from_file (filename, &error);
+  g_assert_no_error (error);
+  g_assert (reference != NULL);
+  if (!gdk_pixbuf_get_has_alpha (reference))
+    {
+      GdkPixbuf *tmp = gdk_pixbuf_add_alpha (reference, FALSE, 0, 0, 0);
+      g_object_unref (reference);
+      reference = tmp;
+    }
+
+  loader = gdk_pixbuf_loader_new_with_mime_type ("image/x-tga", &error);
+  g_assert_no_error (error);
+  g_assert (loader != NULL);
+  g_signal_connect (loader, "size-prepared", G_CALLBACK (loader_size_prepared), &loaded);
+  g_signal_connect (loader, "area-updated", G_CALLBACK (loader_area_updated), &loaded);
+
+  if (!g_file_get_contents (filename, (gchar **) &contents, &contents_length, &error))
+    g_assert_not_reached ();
+  g_assert_no_error (error);
+
+  for (i = 0; i < contents_length; i++)
+    {
+      if (!gdk_pixbuf_loader_write (loader, &contents[i], 1, &error))
+        g_assert_not_reached();
+      g_assert_no_error (error);
+    }
+  
+  if (!gdk_pixbuf_loader_close (loader, &error))
+    g_assert_not_reached ();
+  g_assert_no_error (error);
+  g_assert (loaded != NULL);
+
+  g_assert (pixdata_equal (reference, loaded, &error));
+  g_assert_no_error (error);
+
+  g_free (contents);
+  g_object_unref (loaded);
+  g_object_unref (loader);
+  g_object_unref (reference);
+}
+
+static void
+test_add (const char *filename)
+{
+  char *testname;
+  
+  testname = g_strconcat ("/pixbuf/slow-load/", filename, NULL);
+
+  g_test_add_data_func (testname,
+                        filename,
+                        test_slow_load);
+
+  g_free (testname);
+}
+
+int
+main (int argc, char **argv)
+{
+  g_test_init (&argc, &argv, NULL);
+
+  test_add ("test-images/tga/gtk-logo-16bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-16bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-16bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-16bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-24bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-24bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-24bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-24bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-32bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-32bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-32bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-32bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-8bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-8bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-8bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-8bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-rle-8bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-cmap-rle-8bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-16bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-16bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-16bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-16bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-8bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-8bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-8bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-8bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-16bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-16bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-16bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-16bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-8bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-8bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-8bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-gray-rle-8bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-rle-24bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-rle-24bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-rle-24bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-rle-24bpp-top-right.tga");
+  test_add ("test-images/tga/gtk-logo-rle-32bpp-bottom-left.tga");
+  test_add ("test-images/tga/gtk-logo-rle-32bpp-bottom-right.tga");
+  test_add ("test-images/tga/gtk-logo-rle-32bpp-top-left.tga");
+  test_add ("test-images/tga/gtk-logo-rle-32bpp-top-right.tga");
+
+  return g_test_run ();
+}
diff --git a/tests/test-images/tga/gtk-logo-16bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-16bpp-bottom-left.tga
new file mode 100644
index 0000000..3427825
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-16bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-16bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-16bpp-bottom-right.tga
new file mode 100644
index 0000000..42eec0f
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-16bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-16bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-16bpp-top-left.tga
new file mode 100644
index 0000000..57c6433
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-16bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-16bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-16bpp-top-right.tga
new file mode 100644
index 0000000..948c4c5
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-16bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-24bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-24bpp-bottom-left.tga
new file mode 100644
index 0000000..21c4175
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-24bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-24bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-24bpp-bottom-right.tga
new file mode 100644
index 0000000..4996e43
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-24bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-24bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-24bpp-top-left.tga
new file mode 100644
index 0000000..5da4c1f
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-24bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-24bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-24bpp-top-right.tga
new file mode 100644
index 0000000..05edea5
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-24bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-32bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-32bpp-bottom-left.tga
new file mode 100644
index 0000000..79986c6
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-32bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-32bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-32bpp-bottom-right.tga
new file mode 100644
index 0000000..fefe92e
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-32bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-32bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-32bpp-top-left.tga
new file mode 100644
index 0000000..3ba4683
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-32bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-32bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-32bpp-top-right.tga
new file mode 100644
index 0000000..afbe0e9
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-32bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-left.tga
new file mode 100644
index 0000000..0de138f
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-right.tga
new file mode 100644
index 0000000..cbbda19
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-8bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-8bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-cmap-8bpp-top-left.tga
new file mode 100644
index 0000000..04e3a50
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-8bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-8bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-cmap-8bpp-top-right.tga
new file mode 100644
index 0000000..5bdda53
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-8bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-left.tga
new file mode 100644
index 0000000..e5df6d5
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-right.tga
new file mode 100644
index 0000000..de3e417
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-left.tga
new file mode 100644
index 0000000..aa75ab3
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-right.tga
new file mode 100644
index 0000000..fbde5d6
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-cmap-rle-8bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-left.tga
new file mode 100644
index 0000000..03b9ec4
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-right.tga
new file mode 100644
index 0000000..0b2a9a5
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-16bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-16bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-gray-16bpp-top-left.tga
new file mode 100644
index 0000000..7ea1546
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-16bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-16bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-gray-16bpp-top-right.tga
new file mode 100644
index 0000000..4c0e413
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-16bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-left.tga
new file mode 100644
index 0000000..428aa93
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-right.tga
new file mode 100644
index 0000000..58c9250
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-8bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-8bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-gray-8bpp-top-left.tga
new file mode 100644
index 0000000..80c1a0e
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-8bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-8bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-gray-8bpp-top-right.tga
new file mode 100644
index 0000000..e846052
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-8bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-left.tga
new file mode 100644
index 0000000..6264808
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-right.tga
new file mode 100644
index 0000000..fcb941f
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-left.tga
new file mode 100644
index 0000000..28f34f2
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-right.tga
new file mode 100644
index 0000000..c9432c8
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-16bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-left.tga
new file mode 100644
index 0000000..3a1fe6d
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-right.tga
new file mode 100644
index 0000000..0d8ec83
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-left.tga
new file mode 100644
index 0000000..5370ede
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-right.tga
new file mode 100644
index 0000000..354f6f5
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-gray-rle-8bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-left.tga
new file mode 100644
index 0000000..c4e3932
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-right.tga
new file mode 100644
index 0000000..aefb548
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-24bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-24bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-rle-24bpp-top-left.tga
new file mode 100644
index 0000000..dfcdb8f
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-24bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-24bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-rle-24bpp-top-right.tga
new file mode 100644
index 0000000..1917ab0
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-24bpp-top-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-left.tga 
b/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-left.tga
new file mode 100644
index 0000000..9f5e8fe
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-right.tga 
b/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-right.tga
new file mode 100644
index 0000000..6b42d4d
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-32bpp-bottom-right.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-32bpp-top-left.tga 
b/tests/test-images/tga/gtk-logo-rle-32bpp-top-left.tga
new file mode 100644
index 0000000..bc8421e
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-32bpp-top-left.tga differ
diff --git a/tests/test-images/tga/gtk-logo-rle-32bpp-top-right.tga 
b/tests/test-images/tga/gtk-logo-rle-32bpp-top-right.tga
new file mode 100644
index 0000000..baec40d
Binary files /dev/null and b/tests/test-images/tga/gtk-logo-rle-32bpp-top-right.tga differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]