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

Method open_specs

src/python/py_imageoutput.cpp:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76bool ImageOutputWrap::open_specs (const std::string &name, tuple &specs)
77{
78 const size_t length = len(specs);
79 if (length == 0)
80 return false;
81 std::vector<ImageSpec> Cspecs (length);
82 for (size_t i = 0; i < length; ++i) {
83 extract<ImageSpec> s (specs[i]);
84 if (! s.check()) {
85 // Tuple item was not an ImageSpec
86 return false;
87 }
88 Cspecs[i] = s();
89 }
90 return m_output->open (name, int(length), &Cspecs[0]);
91}
92
93
94

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected