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)
| 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 | } |
nothing calls this directly
no test coverage detected