• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/console/panic_ui/

Lines Matching defs:image

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"
105 "\t-bw\t\tConvert the input image to shades of gray\n"
106 "\t-n24\t\tConvert an image from 8 bit to 24 bit mode before\n"
108 "\t-n8\t\tDon't convert an image from 24 bit to 8 bit mode before \n"
111 "\t\t\tfile containing the input image in 8-bit format\n"
112 "\t-r\t\tCreate a Quicktime uncompressed image of the 8-bit\n"
114 "\t-f\t\tCreate a Quicktime uncompressed image of the 8x16\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\
143 image. The second possibility is to create a binary version of the same\n\
169 long dataSize; /* if known, the size of data for this image descriptor */
179 static int convert = 8; // default is to convert image to 8 bit uncompressed .tgif
216 if (strcmp(argv[next], "-i") == 0) // image file in raw QT uncompressed format (.qtif)
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
295 // Begin to process the image
302 printf("No image file was processed...\n\n");
308 printf("Verifing image file...\n");
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");
353 // Read the image data
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");
411 struct panicimage image;
415 fprintf(stderr, "Err: could not open WHD raw image file.\n\n");
419 fread(&image, sizeof(image), 1, stream);
421 if ( image.pd_tag != 'RNMp' )
424 if ( image.pd_depth != 1 )
427 width = image.pd_width;
428 height = image.pd_height;
429 depth = image.pd_depth;
431 printf("Image info: width: %d height: %d depth: %d...\n", image.pd_width, image.pd_height, image.pd_depth);
434 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
438 if ( !(fileArr = (char *)malloc(image.pd_dataSize))) {
439 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image.pd_dataSize);
444 fread(fileArr, image.pd_dataSize, 1, stream);
447 encodedSize = image.pd_dataSize - (256 * 3);
457 if ( sum != image.pd_sum )
470 if ( debug) printf("es = %d H*W = %d sum = %x\n", encodedSize, image.pd_height*image.pd_width, image.pd_sum);
511 panic_clut = CreateCLUTarry( &fileArr[image.pd_dataSize-(256*3)] );
525 printf("Creating image %s in QuickTime No Compression %s %s format...\n", qtraw,
538 printf("Encoding image file...\n");
557 // write raw image suitable for kernel panic dialog
615 fprintf( out_stream, "/* autogenerated with genimage.c using %s as image input */\n", file);
948 /* encode_rle applies a "modified-RLE encoding to a given image. The encoding works as follows: