Skip to content

Commit

Permalink
Reduce SDF granularity for better compression.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhahn committed Jun 2, 2014
1 parent f2524ba commit c213c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ make_distance_map(unsigned char *img,
if (outside[i] > 255) {
outside[i] = 255;
}
out[i] = 255 - (unsigned char) outside[i];
out[i] = ((255 - (unsigned char) outside[i])/8) * 8;
//out[i] = (unsigned char) outside[i];
}

Expand Down

0 comments on commit c213c12

Please sign in to comment.