annotate tests/encbr1test.c @ 2039:210a0041081b

Fix MinGW build of encbr1test.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 30 Nov 2018 06:48:36 +0200
parents f41bc7203a16
children c67d863384a5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2039
210a0041081b Fix MinGW build of encbr1test.
Matti Hamalainen <ccr@tnsp.org>
parents: 2024
diff changeset
1 #include "dmtool.h"
2024
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 #include "dmlib.h"
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #include "dmres.h"
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 #define BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 //#define BR_WRITE
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 enum
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 DMODE_LIT,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 DMODE_RLE,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 };
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 BOOL dmIFFEncodeByteRun1Flush(
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 DMResource *fp, const int mode, const BOOL flush,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 size_t *l_offs, const size_t offs, const Uint8 *buf,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 const Uint8 data, unsigned int *r_count)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 #ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 if (flush)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 printf("FLUSH:\n");
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 if (mode == DMODE_LIT)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 size_t l_count = offs - *l_offs;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 if (l_count > *r_count || flush)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 size_t count = l_count - *r_count;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 Uint8 tmp = count - 1;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 #ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 printf("L: ");
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 for (size_t n = 0; n < count; n++)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 printf("%02x ", buf[*l_offs + n]);
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 printf(" [%" DM_PRIu_SIZE_T " -> %d]\n", count, tmp);
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 #ifdef BR_WRITE
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 if (!dmf_write_byte(fp, tmp) ||
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 !dmf_write_str(fp, buf + *l_offs, count))
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 return FALSE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 (*r_count)++;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 else
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 if (*r_count > 0)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
53 unsigned int count = *r_count;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
54 Uint8 tmp = ((Uint8) count - 2) ^ 0xff;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
55
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56 #ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 printf("R: %02x x %x [%02x]\n", data, count, tmp);
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
59 #ifdef BR_WRITE
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 if (!dmf_write_byte(fp, tmp) ||
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61 !dmf_write_byte(fp, data))
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62 return FALSE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
64 *r_count = 0;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
65 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
66 *l_offs = offs;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
67 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
68
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
69 return TRUE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
70 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
71
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
72
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
73 BOOL dmIFFEncodeByteRun1Row(DMResource *fp, const Uint8 *buf, const size_t bufLen)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
74 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
75 unsigned int r_count = 0;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
76 int prev = -1, mode = DMODE_LIT;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
77 size_t offs, l_offs = 0;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
78
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
79 #ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
80 printf("\n\nByteRUN1ROW: %" DM_PRIu_SIZE_T " = $%" DM_PRIx_SIZE_T "\n", bufLen, bufLen);
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
81 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
82 for (offs = 0; offs < bufLen; offs++)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
83 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
84 Uint8 data = buf[offs];
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85 int next_mode;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
86 BOOL flush;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
87
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
88 if (data == prev)
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
89 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
90 r_count++;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
91 next_mode = DMODE_RLE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
92 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
93 else
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
94 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
95 next_mode = DMODE_LIT;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
96 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
97
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
98 //#ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
99 #if 0
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
100 printf("%08" DM_PRIx_SIZE_T ": %02x | r_count=%x, l_count=%" DM_PRIx_SIZE_T ", mode=%s [%08" DM_PRIx_SIZE_T "]\n",
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
101 offs, data, r_count, offs - l_offs + 1, mode == DMODE_RLE ? "RLE" : "LIT", l_offs);
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
102 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
103
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
104 flush = offs - l_offs >= 128 || r_count >= 128;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
105 if ((next_mode != mode || flush) &&
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
106 !dmIFFEncodeByteRun1Flush(fp, mode, flush, &l_offs, offs, buf, prev, &r_count))
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
107 return FALSE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
108
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
109 mode = next_mode;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
110 prev = data;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
111 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
112
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
113 #ifdef BR_DEBUG
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
114 printf("END\n");
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
115 #endif
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
116
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
117 if (!dmIFFEncodeByteRun1Flush(fp, mode, TRUE, &l_offs, offs, buf, prev, &r_count))
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
118 return FALSE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
119
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
120 return TRUE;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
121 }
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
122
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
123
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
124
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
125 int main(int argc, char *argv[])
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
126 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
127 (void) argc;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
128 (void) argv;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
129
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
130 Uint8 test[] =
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
131 {
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
132 1,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
133 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
134 2,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
135 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
136 3, 3, 3,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
137 2, 2,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
138 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
139 1,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
140 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
141
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
142 1, 2, 3, 4, 5, 6, 7, 8,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
143
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
144 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
145
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
146 32,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
147
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
148 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
149 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
150 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
151 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
152
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
153 // 15,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
154
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
155 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
156 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
157 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
158 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
159
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
160 1
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
161 //0, 0, 0, 0,
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
162 //1
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
163
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
164 };
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
165
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
166 dmIFFEncodeByteRun1Row(NULL, test, sizeof(test));
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
167 return 0;
f41bc7203a16 Add a test program for BR1 compression.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
168 }