aboutsummaryrefslogtreecommitdiffstats
path: root/src/yawa.h
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-11 01:51:02 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-11 01:52:35 +0100
commit66acb21dbbe3e8fb69b2bbd950bc225d4ed4cb4f (patch)
treee70a2e03909d6050182b778b9f01561356268996 /src/yawa.h
parentdd669776d758cd41762d9961d8a7f29fe650525f (diff)
downloadyawa-66acb21dbbe3e8fb69b2bbd950bc225d4ed4cb4f.tar.xz
Fix alpha, blur, sharpen, constast, brightness, and gamma switches
Diffstat (limited to 'src/yawa.h')
-rw-r--r--src/yawa.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/yawa.h b/src/yawa.h
index e9cc2c8..458050b 100644
--- a/src/yawa.h
+++ b/src/yawa.h
@@ -40,9 +40,9 @@ struct arguments {
signed angle;
unsigned blur_radius;
unsigned sharpen_radius;
- unsigned contrast_amount;
- unsigned brightness_amount;
- unsigned gamma_amount;
+ double contrast_amount;
+ double brightness_amount;
+ double gamma_amount;
unsigned alpha_amount;
bool add: 1;
@@ -89,11 +89,11 @@ static struct argp_option options[] = {
{0, 0, 0, 0, "Manipulations:", 4},
{"tint", 'T', "COLOR", 0, "Tint current image", 4},
- {"blur", 'b', "RADIUS", 0, "Blur the current image", 4}, // Not implemented
- {"sharpen", 'S', "RADIUS", 0, "Sharpen the current image", 4}, // Not implemented
- {"contrast", 'o', "AMOUNT", 0, "Adjust the contrast of the current image", 4}, // Not implemented
- {"brightness", 'B', "AMOUNT", 0, "Adjust the bightness of the current image", 4}, // Not implemented
- {"gamma", 'G', "AMOUNT", 0, "Adjust the gamma level of the current image", 4}, // Not implemented
+ {"blur", 'b', "RADIUS", 0, "Blur the current image", 4},
+ {"sharpen", 'S', "RADIUS", 0, "Sharpen the current image", 4},
+ {"contrast", 'o', "AMOUNT", 0, "Adjust the contrast of the current image", 4},
+ {"brightness", 'B', "AMOUNT", 0, "Adjust the bightness of the current image", 4},
+ {"gamma", 'G', "AMOUNT", 0, "Adjust the gamma level of the current image", 4},
{"flipv", 'v', 0, 0, "Flip the current image vertically", 4},
{"fliph", 'h', 0, 0, "Flip the current image horizontally", 4},
{"flipd", 'd', 0, 0, "Flip the current image diagonally", 4},