summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/test
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-02 16:44:53 +0200
committermanuel <manuel@nc8430.lan>2009-05-02 16:44:53 +0200
commitbcadfa267f976fe9f29afa50a635cbe3ea174e38 (patch)
treeb069a34c9d100dcc9229311b47cbfa0697ee7fc9 /ue2/imgsynth2/test
parentbca08c6de2b156cbec90944c809e5e7faecd231d (diff)
downloadooprog-bcadfa267f976fe9f29afa50a635cbe3ea174e38.tar.gz
ooprog-bcadfa267f976fe9f29afa50a635cbe3ea174e38.tar.bz2
ooprog-bcadfa267f976fe9f29afa50a635cbe3ea174e38.zip
- colortable now uses uint32_t as identifier
- rewrote xpm colortable parsing to convert their identifiers to our own and vica vi - implemented indexed8::setpixel/getpixel - moved rowsize to member variable in cbitmap - added second test for xpm/indexed8
Diffstat (limited to 'ue2/imgsynth2/test')
-rw-r--r--ue2/imgsynth2/test/input_yellow_man1_indexed84
-rw-r--r--ue2/imgsynth2/test/input_yellow_man2_indexed813
-rw-r--r--ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm27
-rw-r--r--ue2/imgsynth2/test/yellow_man2_indexed8_in.xpm27
-rw-r--r--ue2/imgsynth2/test/yellow_man2_indexed8_ref.xpm29
5 files changed, 87 insertions, 13 deletions
diff --git a/ue2/imgsynth2/test/input_yellow_man1_indexed8 b/ue2/imgsynth2/test/input_yellow_man1_indexed8
index c0385c3..84c4604 100644
--- a/ue2/imgsynth2/test/input_yellow_man1_indexed8
+++ b/ue2/imgsynth2/test/input_yellow_man1_indexed8
@@ -4,7 +4,7 @@
4 4
5read(XPM, test/yellow_man1_indexed8_in.xpm) 5read(XPM, test/yellow_man1_indexed8_in.xpm)
6 6
7#fillrect(0,3,6,5,0,255,0) 7fillrect(0,3,6,5,0,255,0)
8#fillrect(2,13,7,4,0,0,255) 8fillrect(2,13,7,4,0,0,255)
9 9
10write(XPM, test/yellow_man1_indexed8_out.xpm) 10write(XPM, test/yellow_man1_indexed8_out.xpm)
diff --git a/ue2/imgsynth2/test/input_yellow_man2_indexed8 b/ue2/imgsynth2/test/input_yellow_man2_indexed8
new file mode 100644
index 0000000..440c653
--- /dev/null
+++ b/ue2/imgsynth2/test/input_yellow_man2_indexed8
@@ -0,0 +1,13 @@
1#in: test/yellow_man2_indexed8_in.xpm
2#out: test/yellow_man2_indexed8_out.xpm
3#ref: test/yellow_man2_indexed8_ref.xpm
4
5read(XPM, test/yellow_man2_indexed8_in.xpm)
6
7fillrect(0,3,6,5,0,255,0)
8fillrect(2,13,7,4,0,0,255)
9mirror_x()
10mirror_y()
11invert()
12
13write(XPM, test/yellow_man2_indexed8_out.xpm)
diff --git a/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm b/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm
index bd3beb4..7526656 100644
--- a/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm
+++ b/ue2/imgsynth2/test/yellow_man1_indexed8_ref.xpm
@@ -3,22 +3,27 @@ static char * yellow_man1_default_xpm[] = {
3"9 17 4 1 0 0 XPMEXT", 3"9 17 4 1 0 0 XPMEXT",
4". c #000000", 4". c #000000",
5"# c #FFF200", 5"# c #FFF200",
6"+ c #00FF00", 6"b c #00FF00",
7"@ c #0000FF", 7"c c #0000FF",
8".........", 8".........",
9".........", 9".........",
10"...###...", 10"...###...",
11"++++++...", 11"bbbbbb...",
12"++++++...", 12"bbbbbb...",
13"++++++...", 13"bbbbbb...",
14"++++++#..", 14"bbbbbb#..",
15"++++++.#.", 15"bbbbbb.#.",
16".#.###.#.", 16".#.###.#.",
17".#.###.#.", 17".#.###.#.",
18".#.###.#.", 18".#.###.#.",
19"...#.#...", 19"...#.#...",
20"...#.#...", 20"...#.#...",
21"..@@@@@@@", 21"..ccccccc",
22"..@@@@@@@", 22"..ccccccc",
23"..@@@@@@@", 23"..ccccccc",
24"..@@@@@@@"}; 24"..ccccccc",
25"XPMEXT ext1 data1",
26"XPMEXT ext2",
27"data2_1",
28"data2_2",
29"XPMENDEXT"}; \ No newline at end of file
diff --git a/ue2/imgsynth2/test/yellow_man2_indexed8_in.xpm b/ue2/imgsynth2/test/yellow_man2_indexed8_in.xpm
new file mode 100644
index 0000000..bd11b48
--- /dev/null
+++ b/ue2/imgsynth2/test/yellow_man2_indexed8_in.xpm
@@ -0,0 +1,27 @@
1/* XPM */
2static char * yellow_man1_default_xpm[] = {
3"9 17 2 1 0 0 XPMEXT",
4". c #000000 g4 #000000",
5"# c #FFF200",
6".........",
7".........",
8"...###...",
9"...###...",
10"...###...",
11"....#....",
12"..#####..",
13".#.###.#.",
14".#.###.#.",
15".#.###.#.",
16".#.###.#.",
17"...#.#...",
18"...#.#...",
19"...#.#...",
20"...#.#...",
21".........",
22".........",
23"XPMEXT ext1 data1",
24"XPMEXT ext2",
25"data2_1",
26"data2_2",
27"XPMENDEXT"};
diff --git a/ue2/imgsynth2/test/yellow_man2_indexed8_ref.xpm b/ue2/imgsynth2/test/yellow_man2_indexed8_ref.xpm
new file mode 100644
index 0000000..5ff048f
--- /dev/null
+++ b/ue2/imgsynth2/test/yellow_man2_indexed8_ref.xpm
@@ -0,0 +1,29 @@
1/* XPM */
2static char * yellow_man1_default_xpm[] = {
3"9 17 4 1 0 0 XPMEXT",
4". c #FFFFFF",
5"# c #000DFF",
6"b c #FF00FF",
7"c c #FFFF00",
8"ccccccc..",
9"ccccccc..",
10"ccccccc..",
11"ccccccc..",
12"...#.#...",
13"...#.#...",
14".#.###.#.",
15".#.###.#.",
16".#.###.#.",
17".#.bbbbbb",
18"..#bbbbbb",
19"...bbbbbb",
20"...bbbbbb",
21"...bbbbbb",
22"...###...",
23".........",
24".........",
25"XPMEXT ext1 data1",
26"XPMEXT ext2",
27"data2_1",
28"data2_2",
29"XPMENDEXT"}; \ No newline at end of file