MCPcopy Create free account
hub / github.com/JetBrains/skija / computeMinByteSize

Method computeMinByteSize

shared/java/ImageInfo.java:239–241  ·  view source on GitHub ↗

Returns storage required by pixel array, given ImageInfo dimensions, and ColorType. Uses #getMinRowBytes() to compute bytes for pixel row. Returns zero if height is zero. @return least memory required by pixel buffer

()

Source from the content-addressed store, hash-verified

237 * @return least memory required by pixel buffer
238 */
239 public long computeMinByteSize() {
240 return computeByteSize(getMinRowBytes());
241 }
242
243 /**
244 * Returns true if rowBytes is valid for this ImageInfo.

Callers

nothing calls this directly

Calls 2

computeByteSizeMethod · 0.95
getMinRowBytesMethod · 0.95

Tested by

no test coverage detected