MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / spec

Method spec

tools/imageio/imageio.h:464–470  ·  view source on GitHub ↗

Return a full copy of the ImageSpec of the designated subimage & level. If there is no such subimage and miplevel it returns an ImageSpec whose format returns true for isUnknown(). This default method assumes no subimages.

Source from the content-addressed store, hash-verified

462 // whose format returns true for isUnknown().
463 // This default method assumes no subimages.
464 virtual ImageSpec spec (uint32_t /*subimage*/, uint32_t /*miplevel=0*/) {
465 ImageSpec ret;
466 if (curSubimage < images.size()) {
467 ret = images[curSubimage].spec;
468 }
469 return ret;
470 }
471
472 // Return a copy of the ImageSpec but only the dimension and type fields.
473 // TODO: Determine if this is necessary.

Callers 12

executeCreateMethod · 0.80
loadInputImageMethod · 0.80
convertMethod · 0.80
determineSourceOriginMethod · 0.80
checkSpecsMatchMethod · 0.80
mainMethod · 0.80
createImageMethod · 0.80
checkSpecsMatchMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected