Lines Matching defs:file
1 /* converts a QT RAW 8-bit image file into format the kernel panic ui expects.
45 "\t-i <file>\tUse file containing QuickTime uncompressed raw image as\n"
47 "\t-o <file>\tWrite the output as a compressed kernel RAW image suitable\n"
49 "\t-c <file>\tUse file containing 256 RGB values for 8-bit indexed \n"
107 char *file = NULL;
121 if (strcmp(argv[next], "-i") == 0) // image file in raw QT uncompressed format (.qtif)
122 file = argv[++next];
124 else if (strcmp(argv[next], "-o") == 0) // output file for WHD image
133 else if (strcmp(argv[next], "-c") == 0) // input file for clut
142 if (!(file || kraw) ) {
162 if( file == NULL)
164 printf("No image file was processed...\n\n");
169 printf("Verifing image file...\n");
170 if ( file != NULL )
172 stream = fopen(file, "r");
174 fprintf(stderr, "Err: could not open .qtif image file.\n\n");
207 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
213 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image_header.dataSize);
227 printf("Converting image file to 8 bit raw...\n");
243 printf("Encoding image file...\n");
270 fprintf(stderr,"Err: Could not open output file %s.\n\n", kraw);
274 printf("Writing to binary panic dialog file %s, which is suitable for loading into kernel...\n", kraw);
482 filePos = 0; // position in the file we're writing out
880 fprintf(stderr,"Err: Could not open input clut file %s.\n\n", iname);