comparison src/main.h @ 413:9e521adbf312

Add two new options to control image read buffer at runtime. They are available in Preferences > Advanced > Image loading and caching. Default read buffer size was set to 4096 instead of 512. These options are saved to rc file.
author zas_
date Fri, 18 Apr 2008 22:15:01 +0000
parents 0226daf8c30b
children 4f7362028062
comparison
equal deleted inserted replaced
412:eb5ae19a62f6 413:9e521adbf312
90 #define COLOR_PROFILE_INPUTS 4 90 #define COLOR_PROFILE_INPUTS 4
91 91
92 #define DEFAULT_THUMB_WIDTH 96 92 #define DEFAULT_THUMB_WIDTH 96
93 #define DEFAULT_THUMB_HEIGHT 72 93 #define DEFAULT_THUMB_HEIGHT 72
94 94
95 #define IMAGE_LOADER_READ_BUFFER_SIZE_DEFAULT 4096
96 #define IMAGE_LOADER_READ_BUFFER_SIZE_MIN 512
97 #define IMAGE_LOADER_READ_BUFFER_SIZE_MAX 16*1024*1024
98
99 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_DEFAULT 1
100 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MIN 1
101 #define IMAGE_LOADER_IDLE_READ_LOOP_COUNT_MAX 16
102
95 #if 1 /* set to 0 to disable debugging code and related options */ 103 #if 1 /* set to 0 to disable debugging code and related options */
96 # ifndef DEBUG 104 # ifndef DEBUG
97 # define DEBUG 1 105 # define DEBUG 1
98 # endif 106 # endif
99 #endif 107 #endif