Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__C-Ray__Bench
comparison c-ray-mt.c @ 1:b6c9e5f46e98
DataSet print out
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 28 Sep 2011 15:12:17 +0200 |
| parents | 11a4bcadac2a |
| children | 8e3accb31ff3 |
comparison
equal
deleted
inserted
replaced
| 0:3a419e74fa58 | 1:02f9e506a659 |
|---|---|
| 246 fprintf(stderr, "unrecognized argument: %s\n", argv[i]); | 246 fprintf(stderr, "unrecognized argument: %s\n", argv[i]); |
| 247 fputs(usage, stderr); | 247 fputs(usage, stderr); |
| 248 return EXIT_FAILURE; | 248 return EXIT_FAILURE; |
| 249 } | 249 } |
| 250 } | 250 } |
| 251 | 251 |
| 252 snprintf(DataSet,255,"file: %s\nsize: %dx%d\nrays per pixel: %d\nthreads: %d\n", | |
| 253 infile, xres, yres, rays_per_pixel, thread_num); | |
| 252 | 254 |
| 253 if(!(pixels = malloc(xres * yres * sizeof *pixels))) { | 255 if(!(pixels = malloc(xres * yres * sizeof *pixels))) { |
| 254 perror("pixel buffer allocation failed"); | 256 perror("pixel buffer allocation failed"); |
| 255 return EXIT_FAILURE; | 257 return EXIT_FAILURE; |
| 256 } | 258 } |
