annotate tests/encbr1test.c @ 2024:f41bc7203a16

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