• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2422.115.4/osfmk/console/panic_ui/

Lines Matching defs:file

1 /* converts a QT RAW image file into the c structure that the
91 "\t-i <file>\tUse file containing QuickTime uncompressed raw image as\n"
93 "\t-o <file>\tWrite the output as a compressed WHD RAW image suitable\n"
95 "\t-c <file>\tUse file containing 256 RGB values for 8-bit indexed \n"
104 "\t-io <file>\tUse <file> to override the default C source filename\n"
110 "\t-qt <file>\t(requires -i) Write QuickTime uncompressed raw .gtif\n"
121 one that is suitable for the kernel to display. The .qtif image file\n\
141 source file named panic_image.c that contains the panic image in a 8 bit\n\
144 information by using the -o option. This file can then be used to replace\n\
198 char *file = NULL;
216 if (strcmp(argv[next], "-i") == 0) // image file in raw QT uncompressed format (.qtif)
217 file = argv[++next];
219 else if (strcmp(argv[next], "-o") == 0) // output file for WHD image
221 else if (strcmp(argv[next], "-io") == 0) // output file for image
230 else if (strcmp(argv[next], "-c") == 0) // input file for clut
236 else if (strcmp(argv[next], "-co") == 0) // output file for generating appleClut8.h array included in this file
238 else if (strcmp(argv[next], "-a8") == 0) // output file for testing system CLUT 8 in QT RAW (test)
240 else if (strcmp(argv[next], "-r") == 0) // output file for QT clut RAW (test)
242 else if (strcmp(argv[next], "-qt") == 0) // output file for QT RAW (test)
252 else if (strcmp(argv[next], "-w") == 0) // read WHD raw file and output 8 bit tqif
259 if (!(file || clutout || testfont || testclut || whdname) ) {
283 printf("Created C source file of %s...\n", clutout);
297 if( file == NULL)
302 printf("No image file was processed...\n\n");
308 printf("Verifing image file...\n");
309 if ( file != NULL )
311 stream = fopen(file, "r");
313 fprintf(stderr, "Err: could not open .qtif image file.\n\n");
343 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
349 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image_header.dataSize);
360 fprintf(stderr, "Err: The WHD raw file (%s) will not be created when input in is millions of colors\n", kraw);
373 printf("Converting image file to 8 bit...\n");
385 printf("Converting image file to 24 bit...\n");
391 printf("Converting image file to 8 bit raw...\n");
415 fprintf(stderr, "Err: could not open WHD raw image file.\n\n");
434 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
439 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image.pd_dataSize);
473 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", pixels);
521 fprintf(stderr,"Err: Could not open output file %s.\n\n", qtraw);
538 printf("Encoding image file...\n");
564 fprintf(stderr,"Err: Could not open output file %s.\n\n", kraw);
568 printf("Writing to binary panic dialog file %s, which is suitable for loading into kernel...\n", kraw);
603 // it's ok to generate the c file
609 fprintf(stderr,"Err: Couldn't open out file %s.\n\n", out);
615 fprintf( out_stream, "/* autogenerated with genimage.c using %s as image input */\n", file);
871 filePos = 0; // position in the file we're writing out
1426 fprintf(stderr,"Err: Could not open input clut file %s.\n\n", iname);
1449 fprintf(stderr,"Err: Could not open output clut file %s.\n\n", oname);
1551 fprintf(stderr,"Err: Could not open output index file %s.\n\n", name);
1594 fprintf(stderr,"Err: Could not open output index file %s.\n\n", "font.qtif");