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

Method init

src/libOpenImageIO/imageio.cpp:736–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734
735
736void
737DeepData::init (int npix, int nchan,
738 const TypeDesc *chbegin, const TypeDesc *chend)
739{
740 clear ();
741 npixels = npix;
742 nchannels = nchan;
743 channeltypes.assign (chbegin, chend);
744 nsamples.resize (npixels, 0);
745 pointers.resize (size_t(npixels)*size_t(nchannels), NULL);
746}
747
748
749

Callers 2

metadata_val_testFunction · 0.45
attributeMethod · 0.45

Calls 2

resizeMethod · 0.80
clearFunction · 0.50

Tested by 2

metadata_val_testFunction · 0.36
attributeMethod · 0.36