Browse Source

storyboard.c: tuned the output file name.

examples/.gitignore: ignore storyboard.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3347 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam 16 years ago
parent
commit
77016401db
2 changed files with 5 additions and 4 deletions
  1. +1
    -0
      examples/.gitignore
  2. +4
    -4
      examples/storyboard.c

+ 1
- 0
examples/.gitignore View File

@@ -6,4 +6,5 @@ histogram
img2rubik
line
sharpen
storyboard
*.exe

+ 4
- 4
examples/storyboard.c View File

@@ -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);


Loading…
Cancel
Save