diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-28 10:25:40 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:45 +0200 |
commit | 02e5b6af7df001cc105e874ade35b47d560b1f83 (patch) | |
tree | 866241a14487cbd2dd63677025dcdde7ff7eea45 /main.c | |
parent | 9841a4e5fa5b3b17f3b95f4e3c2c0e5ed8b445fd (diff) | |
download | pucket-02e5b6af7df001cc105e874ade35b47d560b1f83.tar.gz pucket-02e5b6af7df001cc105e874ade35b47d560b1f83.tar.bz2 pucket-02e5b6af7df001cc105e874ade35b47d560b1f83.zip |
Drop oversampling
Just scale it down.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -33,7 +33,7 @@ const char *argp_program_version = typedef struct { bool verbose; - unsigned int threads, bpc, quality, oversample; + unsigned int threads, bpc, quality; float scale; } render_arguments; @@ -51,16 +51,6 @@ static error_t parse_render_opt (int key, char *arg, break; } - case 'o': { - int i = atoi (arg); - if (i < 1) { - argp_error (state, "Oversample must be >= 1"); - } else { - arguments->oversample = i; - } - break; - } - case 'q': { int i = atoi (arg); if (i < 1) { @@ -126,7 +116,6 @@ static void do_render (const render_arguments * const arguments) { genome->height *= arguments->scale; genome->width *= arguments->scale; genome->pixels_per_unit *= arguments->scale; - genome->spatial_oversample = arguments->oversample; flam3_frame f; f.genomes = genome; @@ -510,7 +499,6 @@ int main (int argc, char **argv) { {"scale", 's', "factor", 0, "Scale image dimensions by factor (1.0)" }, {"bpc", 'b', "8|16", 0, "Bits per channel of output image (8)" }, {"quality", 'q', "num", 0, "Average samples per pixel (100)" }, - {"oversample", 'o', "num", 0, "Super-/Oversample image (1)" }, {"width", 'w', "pixels", 0, "Output image width" }, {"height", 'h', "pixels", 0, "Output image height" }, { 0 }, @@ -527,7 +515,6 @@ int main (int argc, char **argv) { .scale = 1.0, .quality = 100, .verbose = true, - .oversample = 1, }; argp_parse (&argp, argc, argv, 0, NULL, &arguments); |