|
|
@@ -50,12 +50,12 @@ int main(int argc, char *argv[]) |
|
|
|
if(argc < 2) |
|
|
|
return EXIT_FAILURE; |
|
|
|
|
|
|
|
strcpy(fmtstr, argv[1]); |
|
|
|
parser = strrchr(argv[1], '/'); |
|
|
|
strcpy(fmtstr, parser ? parser : argv[1]); |
|
|
|
parser = strrchr(fmtstr, '.'); |
|
|
|
if(parser) |
|
|
|
strcpy(parser, "%03i.jpeg"); |
|
|
|
else |
|
|
|
strcat(fmtstr, "%03i.jpeg"); |
|
|
|
*parser = '\0'; |
|
|
|
strcat(fmtstr, ".%03i.jpeg"); |
|
|
|
|
|
|
|
image = pipi_new(TWIDTH * TCOLS, THEIGHT * TROWS); |
|
|
|
p = pipi_get_pixels(image, PIPI_PIXELS_RGBA_U8); |
|
|
|