20#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDA_PNMIMAGE)
21 #error Buildsystem error: BUILDING_PANDA_PNMIMAGE not defined
24Configure(config_pnmimage);
25NotifyCategoryDef(pnmimage,
"");
27ConfigureFn(config_pnmimage) {
32(
"pfm-force-littleendian",
false,
33 PRC_DESC(
"This forces a pfm file to be read as a sequence of little-endian "
34 "floats, even if its scale factor is given as a positive number."));
37(
"pfm-reverse-dimensions",
false,
38 PRC_DESC(
"Understands that the width and height of a pfm file are given "
39 "backwards, in the form height width instead of width height, "
40 "on input. Does not affect output, which is always written width height."));
43(
"pfm-resize-quick",
true,
44 PRC_DESC(
"Specify true to implement PfmFile::resize() with a \"quick\" filter, "
45 "but only when the pfm is being downsampled (to a smaller size). "
46 "This just controls the behavior of resize(); you can "
47 "always call quick_filter() explicitly."));
50(
"pfm-resize-gaussian",
true,
51 PRC_DESC(
"Specify true to implement PfmFile::resize() with a higher-quality "
52 "Gaussian filter, or false to implement it with a faster box "
53 "filter. If pfm-resize-quick is also true, this only takes effect "
54 "when the pfm is being upsampled. This just controls the behavior "
55 "of resize(); you can always call box_filter() or gaussian_filter() "
59(
"pfm-resize-radius", 1.0,
60 PRC_DESC(
"Specify the default filter radius for PfmFile::resize(). "
61 "This just controls the behavior of resize(); you can "
62 "always call box_filter() or gaussian_filter() explicitly with "
63 "a specific radius."));
73 static bool initialized =
false;
79 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.
void init_libpnmimage()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.