summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2018-01-19 12:22:09 +0100
committerulteq <ulteq@web.de>2018-03-03 12:05:53 +0100
commit05e745a519248c1907340c7f5b0b7bc65f0409eb (patch)
tree7030dce8b812e6ffb3de1f3a511f21ba7c827cdb /src/options.c
parentb7867141037ce8c64df54bddb8f636b2545425a0 (diff)
Utilize dcraw to preview RAW files
Uses the camera-generated thumbnail to display RAW images that could otherwise not be loaded.
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 3d11482..29ce836 100644
--- a/src/options.c
+++ b/src/options.c
@@ -55,6 +55,7 @@ void init_parse_options(int argc, char **argv)
opt.display = 1;
opt.aspect = 1;
opt.slideshow_delay = 0.0;
+ opt.dcraw_timeout = -1;
opt.magick_timeout = -1;
opt.thumb_w = 60;
opt.thumb_h = 60;
@@ -415,6 +416,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
{"insecure" , 0, 0, 240},
{"no-recursive" , 0, 0, 241},
{"cache-size" , 1, 0, 243},
+ {"dcraw-timeout" , 1, 0, 245},
{"version-sort" , 0, 0, 246},
{0, 0, 0, 0}
};
@@ -781,6 +783,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
if (opt.cache_size > 2048)
opt.cache_size = 2048;
break;
+ case 245:
+ opt.dcraw_timeout = atoi(optarg);
+ break;
case 246:
opt.version_sort = 1;
break;