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

Method write_image

src/python/py_imageoutput.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196bool
197ImageOutputWrap::write_image (TypeDesc format, object &buffer,
198 stride_t xstride, stride_t ystride,
199 stride_t zstride)
200{
201 imagesize_t size = m_output->spec().image_bytes();
202 const void *array = make_read_buffer (buffer, size);
203 if (array)
204 return m_output->write_image (format, array, xstride, ystride, zstride);
205 return false;
206}
207
208
209bool

Callers 7

convert_filesFunction · 0.45
stitch_imagesFunction · 0.45
test_stitch_thirdsFunction · 0.45
cryptFunction · 0.45
decryptFunction · 0.45
convert_fileFunction · 0.45
copy_subimageFunction · 0.45

Calls 2

image_bytesMethod · 0.80
specMethod · 0.45

Tested by 2

test_stitch_thirdsFunction · 0.36
copy_subimageFunction · 0.36