MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / declare_imagecache

Function declare_imagecache

src/python/py_imagecache.cpp:176–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void declare_imagecache()
177{
178 class_<ImageCacheWrap, boost::noncopyable>("ImageCache", no_init)
179 .def("create", &ImageCacheWrap::create,
180 (arg("shared")),
181 return_value_policy<manage_new_object>())
182 .staticmethod("create")
183 .def("destroy", &ImageCacheWrap::destroy)
184 .staticmethod("destroy")
185 .def("clear", &ImageCacheWrap::clear)
186 .def("attribute", &ImageCacheWrap::attribute)
187 .def("attribute", &ImageCacheWrap::attribute_int)
188 .def("attribute", &ImageCacheWrap::attribute_float)
189 .def("attribute", &ImageCacheWrap::attribute_double)
190 .def("attribute", &ImageCacheWrap::attribute_char)
191 .def("attribute", &ImageCacheWrap::attribute_string)
192 .def("getattribute", &ImageCacheWrap::attribute)
193 .def("getattribute", &ImageCacheWrap::getattribute_int)
194 .def("getattribute", &ImageCacheWrap::getattribute_float)
195 .def("getattribute", &ImageCacheWrap::getattribute_double)
196 .def("getattribute", &ImageCacheWrap::getattribute_char)
197 .def("getattribute", &ImageCacheWrap::getattribute_string)
198 .def("resolve_filename", &ImageCacheWrap::resolve_filename)
199 .def("get_image_info", &ImageCacheWrap::get_image_info)
200 .def("get_imagespec", &ImageCacheWrap::get_imagespec)
201 .def("get_pixels", &ImageCacheWrap::get_pixels)
202// .def("get_tile", &ImageCacheWrap::get_tile)
203// .def("release_tile", &ImageCacheWrap::release_tile)
204// .def("tile_pixels", &ImageCacheWrap::tile_pixels)
205
206//added _ to the method names for consistency
207 .def("geterror", &ImageCacheWrap::geterror)
208 .def("getstats", &ImageCacheWrap::getstats)
209 .def("invalidate", &ImageCacheWrap::invalidate)
210 .def("invalidate_all", &ImageCacheWrap::invalidate_all)
211 ;
212
213}
214
215} // namespace PyOpenImageIO
216

Callers 1

OIIO_DECLARE_PYMODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected