Lines Matching refs:out_stream

204 	FILE *  stream, *out_stream;
606 out_stream = fopen(out, "w");
608 if(out_stream == NULL) {
615 fprintf( out_stream, "/* autogenerated with genimage.c using %s as image input */\n", file);
620 fprintf( out_stream, "/* and %s for the color look up table (CLUT) */\n\n", s);
623 fprintf( out_stream, "static const struct panicimage {\n");
624 fprintf( out_stream, "\tunsigned int\tpd_sum;\n");
625 fprintf( out_stream, "\tunsigned int\tpd_dataSize;\n");
626 fprintf( out_stream, "\tunsigned int\tpd_tag;\n");
627 fprintf( out_stream, "\tunsigned short\tpd_width;\n");
628 fprintf( out_stream, "\tunsigned short\tpd_height;\n");
629 fprintf( out_stream, "\tunsigned char\tpd_depth;\n");
630 fprintf( out_stream, "\tunsigned char\tpd_info_height;\n");
631 fprintf( out_stream, "\tunsigned char\tpd_info_color[2];\n");
632 fprintf( out_stream, "\tunsigned char\tdata[];\n");
634 fprintf( out_stream, "} panic_dialog_default = {\n\t");
635 fprintf( out_stream, "0x%08x, ", sum); /* panic dialog x */
636 fprintf( out_stream, "0x%08x, ", encodedSize+(256*3)); /* panic dialog x */
637 fprintf( out_stream, "0x%08x, ", 'RNMp'); /* panic dialog x */
638 fprintf( out_stream, "%d, ", width); /* panic dialog x */
639 fprintf( out_stream, "%d, ", height); /* panic dialog y */
640 fprintf( out_stream, "%d, ", depth); /* bytes per pixel */
641 fprintf( out_stream, "%d, ", lines); /* lines reserved for panic info */
642 fprintf( out_stream, "0x%02x, ", fg); /* font foreground color: indexed */
643 fprintf( out_stream, "0x%02x, ", bg); /* font background color: indexed */
645 fprintf( out_stream, "\n");
648 fprintf( out_stream, "{\n");
652 chars_this_line += fprintf( out_stream, "0x%.2x,", fileArr[i++]);
658 fprintf( out_stream, "\n");
670 fprintf(out_stream, "\n\n");
675 if ( (i % 16) == 0 ) fprintf(out_stream, "// %02X\n", i);
677 fprintf(out_stream, "\t0x%02X,0x%02X,0x%02X, ", c.clut.red, c.clut.green, c.clut.blue);
679 fprintf(out_stream, "0x%02X,0x%02X,0x%02X, ", c.clut.red, c.clut.green, c.clut.blue);
681 fprintf(out_stream, "0x%02X,0x%02X,0x%02X, ", c.clut.red, c.clut.green, c.clut.blue);
683 fprintf(out_stream, "0x%02X,0x%02X,0x%02X%s\n", c.clut.red, c.clut.green, c.clut.blue, ((i!=(256-4))?",":""));
686 fprintf(out_stream, "}\n");
687 fprintf(out_stream, "};\n");
689 fclose( out_stream );