@@ -165,40 +165,35 @@ vips_configure_class_init( VipsConfigureClass *class )
165
165
_ ( "Set threadpool size" ),
166
166
VIPS_ARGUMENT_OPTIONAL_INPUT ,
167
167
G_STRUCT_OFFSET ( VipsConfigure , concurrency ),
168
- -1 );
168
+ 0 , 0 , 1024 );
169
169
170
- VIPS_ARG_INT64 ( class , "pipe_read_limit" , 5 ,
170
+ VIPS_ARG_UINT64 ( class , "pipe_read_limit" , 6 ,
171
171
_ ( "Pipe read limit" ),
172
172
_ ( "Maxiumum number of bytes to buffer for pipe read" ),
173
173
VIPS_ARGUMENT_OPTIONAL_INPUT ,
174
174
G_STRUCT_OFFSET ( VipsConfigure , pipe_read_limit ),
175
- -1 );
175
+ 0 , 1024L * 1024L * 1024L , 1024L * 1024L * 1024L * 1024L );
176
176
177
- VIPS_ARG_INT ( class , "cache_max" , 5 ,
177
+ VIPS_ARG_INT ( class , "cache_max" , 7 ,
178
178
_ ( "Cache max size" ),
179
179
_ ( "Maxium number of operations to cache" ),
180
180
VIPS_ARGUMENT_OPTIONAL_INPUT ,
181
181
G_STRUCT_OFFSET ( VipsConfigure , cache_max ),
182
- -1 );
182
+ 0 , 100 , 100000 );
183
183
184
- VIPS_ARG_INT ( class , "cache_max_mem" , 5 ,
184
+ VIPS_ARG_UINT64 ( class , "cache_max_mem" , 8 ,
185
185
_ ( "Cache max memory size" ),
186
- _ ( "Maxium number of operations to cache" ),
186
+ _ ( "Maxium amount of memory for the operation cache" ),
187
187
VIPS_ARGUMENT_OPTIONAL_INPUT ,
188
188
G_STRUCT_OFFSET ( VipsConfigure , cache_max ),
189
- -1 );
190
-
191
- /* Number of recent operations to cache.
192
- */
193
- int cache_max ;
194
-
195
- /* Maximum memory to use for operation caching.
196
- */
197
- int64 cache_max_mem ;
189
+ 0 , 100 * 1024L * 1024L , 1024L * 1024L * 1024L * 1024L );
198
190
199
- /* Maximum number of open files we allow in the cache.
200
- */
201
- int cache_max_files ;
191
+ VIPS_ARG_INT ( class , "cache_max_files" , 9 ,
192
+ _ ( "Cache max open files" ),
193
+ _ ( "Maxium number of open files in operation cache" ),
194
+ VIPS_ARGUMENT_OPTIONAL_INPUT ,
195
+ G_STRUCT_OFFSET ( VipsConfigure , cache_max_files ),
196
+ 0 , 100 , 100000 );
202
197
203
198
}
204
199
0 commit comments