diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2015-06-07 12:26:47 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2015-06-07 12:26:47 +1200 |
commit | 49c77019c2944f3bcf907e856fd1854d4a1da58a (patch) | |
tree | d219adb6490c229c33357da8f353005d04354b98 | |
parent | d27188d0aecb1bf79fda332abce124a22f722b0b (diff) | |
download | fractal-gen-49c77019c2944f3bcf907e856fd1854d4a1da58a.tar.xz |
Changed to output PGMs
-rw-r--r-- | fractal-gen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fractal-gen.c b/fractal-gen.c index bb10dfe..2e06df3 100644 --- a/fractal-gen.c +++ b/fractal-gen.c @@ -75,6 +75,9 @@ int main(int argc, char **argv) for (i = 0; i < cores; i++) pthread_join(sections[i].thread, NULL); + // Output PGM Header + printf("P5\n%d\n%d\n255\n",size,size); + // Vomit the data segments back onto the screen, deinterlacing // TO DO: look at fwrite performance benefits over putchar for (y = 0; y < size; y++) |