Lines Matching refs:out_stream

34     FILE *	stream, *out_stream;
152 out_stream = fopen(out, "w");
154 if(out_stream == NULL) {
161 fprintf( out_stream, "/* generated c file */\n\n");
162 fprintf( out_stream, "static const struct {\n");
163 fprintf( out_stream, " unsigned int pd_width;\n");
164 fprintf( out_stream, " unsigned int pd_height;\n");
165 fprintf( out_stream, " unsigned int bytes_per_pixel; /* 1: CLUT, 3:RGB, 4:RGBA */\n");
166 fprintf( out_stream, " unsigned char image_pixel_data[%#4.2x];\n", (filePos));
168 fprintf( out_stream, "} panic_dialog = {\n");
169 fprintf( out_stream, "\t%d, ", width); /* panic dialog x */
170 fprintf( out_stream, "%d, ", height); /* panic dialog y */
171 fprintf( out_stream, "1,\n"); /* bytes per pixel */
174 fprintf( out_stream, "0x%.2x,0x%.2x", fileArr[i], fileArr[i+1]);
180 fprintf( out_stream, ",0x%.2x", fileArr[i++]);
185 fprintf( out_stream, "\n};");
186 else fprintf( out_stream, ", ");
189 fprintf( out_stream, "\n");
195 fclose( out_stream );
221 FILE *out_stream;
283 out_stream = fopen(outfile, "w");
285 if(out_stream == NULL) {
290 fprintf( out_stream, " /* generated c file */\n\n");
295 fprintf( out_stream, "static const struct {\n");
296 fprintf( out_stream, " unsigned int num_w;\n");
297 fprintf( out_stream, " unsigned int num_h;\n");
298 fprintf( out_stream, " unsigned char num_pixel_data[%#4.2x];\n", numPos[item]); // num elems
299 item == 16 ? fprintf( out_stream, "} num_colon = {\n") : fprintf( out_stream, "} num_%x = {\n", item);
300 fprintf( out_stream, "/* w */ %d,\n", width[item]);
301 fprintf( out_stream, "/* h */ %d,\n", height);
302 fprintf( out_stream, "/* pixel_data */ \n");
306 fprintf( out_stream, "0x%.2x,0x%.2x", pixmap[item][col], pixmap[item][col+1]);
308 fprintf( out_stream, "\n};\n\n");
309 else fprintf( out_stream, ", ");
313 fprintf( out_stream, "\n");
320 fclose( out_stream );