(int size)
| 1686 | /// images that fall under the Simd minimum size (16) we fall back to a plain |
| 1687 | /// `int[]` since `Simd.allocInt` requires `size >= 16`. |
| 1688 | static int[] allocateRgbArray(int size) { |
| 1689 | if (size >= 16) { |
| 1690 | return Simd.get().allocInt(size); |
| 1691 | } |
| 1692 | return new int[size]; |
| 1693 | } |
| 1694 | |
| 1695 | /// Replaces the alpha (top byte) of every non-fully-transparent pixel in `arr` |
| 1696 | /// with the alpha bits in `alphaInt`, leaving fully-transparent pixels unchanged. |
no test coverage detected