MCPcopy Create free account
hub / github.com/HumbleUI/Skija / computeMinByteSize

Method computeMinByteSize

shared/java/ImageInfo.java:240–242  ·  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

238 * @return least memory required by pixel buffer
239 */
240 public long computeMinByteSize() {
241 return computeByteSize(getMinRowBytes());
242 }
243
244 /**
245 * 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