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

Method isRowBytesValid

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

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

Callers

nothing calls this directly

Calls 2

getMinRowBytesMethod · 0.95
getShiftPerPixelMethod · 0.95

Tested by

no test coverage detected