Skip to content

Commit

Permalink
remove the comment in ppm format
Browse files Browse the repository at this point in the history
  • Loading branch information
ouj committed Jan 25, 2013
1 parent f32e734 commit 9ec2412
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -3,6 +3,24 @@ overview
This package contains the source code implementation of our [safegi paper](http://www.cs.dartmouth.edu/~ouj/site/Research/Entries/2010/6/28_SafeGI__Type_Checking_to_Improve_Correctness_in_Rendering_System_Implementation.html).


build
-----------------------------------------------------------
__MacOSX__

cd src
./cmake-xcode.sh

__Linux__

cd src
./cmake-mk.sh

execution
-----------------------------------------------------------
run the executable directly, the images will be generated in the same folder. Image files are ppm format, it can be convert to other formats using ImageMagick.



folder structure
-----------------------------------------------------------
#### README.md ####
Expand Down
2 changes: 1 addition & 1 deletion src/libs/gi_aux/fileio_t.h
Expand Up @@ -7,7 +7,7 @@ void save(const image<spectrum<radiance_d>>& img, const string& filename, const

FILE* f = fopen(filename.c_str(), "wt");

fprintf(f, "P3\n#safegi\n");
fprintf(f, "P3\n");
fprintf(f, "%d %d\n", w, h);
fprintf(f, "255\n");

Expand Down
2 changes: 1 addition & 1 deletion src/libs/gi_aux/fileio_u.h
Expand Up @@ -6,7 +6,7 @@ void save(const image<spectrum>& img, const string& filename, const real& s) {

FILE* f = fopen(filename.c_str(), "wt");

fprintf(f, "P3\n#safegi\n");
fprintf(f, "P3\n\n");
fprintf(f, "%d %d\n", w, h);
fprintf(f, "255\n");

Expand Down

0 comments on commit 9ec2412

Please sign in to comment.