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

Method isRowBytesValid

shared/java/ImageInfo.java:249–254  ·  view source on GitHub ↗

Returns true if rowBytes is valid for this ImageInfo. @param rowBytes size of pixel row including padding @return true if rowBytes is large enough to contain pixel row and is properly aligned

(long rowBytes)

Source from the content-addressed store, hash-verified

247 * @return true if rowBytes is large enough to contain pixel row and is properly aligned
248 */
249 public boolean isRowBytesValid(long rowBytes) {
250 if (rowBytes < getMinRowBytes())
251 return false;
252 int shift = getShiftPerPixel();
253 return rowBytes >> shift << shift == rowBytes;
254 }
255}

Callers

nothing calls this directly

Calls 2

getMinRowBytesMethod · 0.95
getShiftPerPixelMethod · 0.95

Tested by

no test coverage detected