15 #include "config_pnmimage.h"
16 #include "pnmFileType.h"
17 #include "pnmFileTypeRegistry.h"
21 Configure(config_pnmimage);
22 NotifyCategoryDef(pnmimage,
"");
24 ConfigureFn(config_pnmimage) {
29 (
"pfm-force-littleendian",
false,
30 PRC_DESC(
"This forces a pfm file to be read as a sequence of little-endian "
31 "floats, even if its scale factor is given as a positive number."));
34 (
"pfm-reverse-dimensions",
false,
35 PRC_DESC(
"Understands that the width and height of a pfm file are given "
36 "backwards, in the form height width instead of width height, "
37 "on input. Does not affect output, which is always written width height."));
40 (
"pfm-resize-quick",
true,
41 PRC_DESC(
"Specify true to implement PfmFile::resize() with a \"quick\" filter, "
42 "but only when the pfm is being downsampled (to a smaller size). "
43 "This just controls the behavior of resize(); you can "
44 "always call quick_filter() explicitly."));
47 (
"pfm-resize-gaussian",
true,
48 PRC_DESC(
"Specify true to implement PfmFile::resize() with a higher-quality "
49 "Gaussian filter, or false to implement it with a faster box "
50 "filter. If pfm-resize-quick is also true, this only takes effect "
51 "when the pfm is being upsampled. This just controls the behavior "
52 "of resize(); you can always call box_filter() or gaussian_filter() "
56 (
"pfm-resize-radius", 1.0,
57 PRC_DESC(
"Specify the default filter radius for PfmFile::resize(). "
58 "This just controls the behavior of resize(); you can "
59 "always call box_filter() or gaussian_filter() explicitly with "
60 "a specific radius."));
72 static bool initialized =
false;
78 PNMFileType::init_type();
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.