| int main(int argc, char *argv) |
| n = gimp_image.width * gimp_image.height; |
| x = gimp_image.pixel_data; |
| printf(" unsigned width;\n"); |
| printf(" unsigned height;\n"); |
| printf(" unsigned cwidth;\n"); |
| printf(" unsigned cheight;\n"); |
| printf(" unsigned char rundata[];\n"); |
| printf(" .width = %d,\n .height = %d,\n .cwidth = %d,\n .cheight = %d,\n", gimp_image.width, gimp_image.height, |
| gimp_image.width / 96, gimp_image.height); |
| printf(" .rundata = {\n"); |
| run_val = (*x ? 0 : 255); |
| unsigned val = (*x ? 0 : 255); |
| if((val == run_val) && (run_count < 127)) { |
| printf("0x%02x,",run_count | (run_val ? 0x80 : 0x00)); |
| printf("0x%02x,",run_count | (run_val ? 0x80 : 0x00)); |