forked from Dwayne-Phillips/CIPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstupid.c
executable file
·286 lines (179 loc) · 4.74 KB
/
stupid.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/**************************
November 2020
This file contained segments of code
for testing. It does not compile
and that is okay.
**************************/
/* silly change */
/* another silly change */
read_tiff_header(file_name, image_header)
char file_name[];
struct tiff_header_struct *image_header;
{
} /* ends read_tiff_header */
short **allocate_image_array(length, width)
long length, width;
{
} /* ends allocate_image_array */
int free_image_array(the_array, length)
short **the_array;
long length;
{
} /* ends free_image_array */
read_tiff_image(image_file_name, the_image)
char image_file_name[];
short **the_image;
{
} /* ends read_tiff_image */
read_line(image_file, the_image, line_number,
image_header, ie, le)
FILE *image_file;
int ie, le, line_number;
short **the_image;
struct tiff_header_struct *image_header;
{
} /* ends read_line */
seek_to_first_line(image_file, image_header, il)
FILE *image_file;
int il;
struct tiff_header_struct *image_header;
{
} /* ends seek_to_first_line */
seek_to_end_of_line(image_file, le, image_header)
FILE *image_file;
int le;
struct tiff_header_struct *image_header;
{
} /* ends seek_to_end_of_line */
create_file_if_needed(in_name, out_name, out_image)
char in_name[], out_name[];
short **out_image;
{
} /* ends create_file_if_needed */
create_allocate_tiff_file(file_name,
image_header)
char file_name[];
struct tiff_header_struct *image_header;
{
} /* ends create_allocate_tiff_file */
write_tiff_image(image_file_name, array)
char image_file_name[];
short **array;
{
} /* ends write_tiff_image */
write_line(image_file, array, line_number,
image_header, ie, le)
FILE *image_file;
int ie, le, line_number;
short **array;
struct tiff_header_struct *image_header;
{
} /* ends write_line */
does_not_exist(file_name)
char file_name[];
{
} /* ends does_not_exist */
read_bmp_file_header(file_name,
file_header)
char *file_name;
struct bmpfileheader *file_header;
{
} /* ends read_bmp_file_header */
print_bmp_file_header(struct bmpfileheader *file_header)
{
}
read_bm_header(file_name,
bmheader)
char *file_name;
struct bitmapheader *bmheader;
{
} /* ends read_bm_header */
print_bm_header(bmheader)
struct bitmapheader *bmheader;
{
}
read_color_table(file_name, rgb, size)
char *file_name;
struct ctstruct *rgb;
int size;
{
} /* ends read_color_table */
print_color_table(struct ctstruct *rgb, int size)
{
} /* ends print_color_table */
flip_image_array(the_image, rows, cols)
long cols, rows;
short **the_image;
{
} /* ends flip_image_array */
read_bmp_image(file_name, array)
char *file_name;
short **array;
{
} /* ends read_bmp_image */
create_allocate_bmp_file(file_name,
file_header,
bmheader)
char *file_name;
struct bmpfileheader *file_header;
struct bitmapheader *bmheader;
{
} /* ends create_allocate_bmp_file */
create_bmp_file_if_needed(in_name, out_name, out_image)
char in_name[], out_name[];
short **out_image;
{
} /* ends bmp_file_if_needed */
write_bmp_image(file_name, array)
char *file_name;
short **array;
{
} /* ends write_bmp_image */
int calculate_pad(width)
long width;
{
} /* ends calculate_pad */
int get_image_size(file_name, rows, cols)
char *file_name;
long *cols, *rows;
{
} /* ends get_image_size */
int get_bitsperpixel(file_name, bitsperpixel)
char *file_name;
long *bitsperpixel;
{
} /* ends get_image_size */
int is_a_bmp(file_name)
char *file_name;
{
} /* ends is_a_bmp */
int is_a_tiff(file_name)
char *file_name;
{
} /* ends is_a_tiff */
read_image_array(file_name, array)
char *file_name;
short **array;
{
} /* ends read_image_array */
write_image_array(file_name, array)
char *file_name;
short **array;
{
} /* ends write_image_array */
equate_tiff_headers(src, dest)
struct tiff_header_struct *src, *dest;
{
} /* ends equate_tiff_headers */
equate_bmpfileheaders(src, dest)
struct bmpfileheader *src, *dest;
{
} /* ends equate_bmpfileheaders */
equate_bitmapheaders(src, dest)
struct bitmapheader *src, *dest;
{
} /* ends equate_bitmapheader */
int are_not_same_size(file1, file2)
char *file1, *file2;
{
} /* ends are_not_same_size */