MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / allocateRgbArray

Method allocateRgbArray

CodenameOne/src/com/codename1/ui/Image.java:1688–1693  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

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.

Callers 4

getRGBImplMethod · 0.95
modifyAlphaMethod · 0.95
getRGBImplMethod · 0.95
modifyAlphaMethod · 0.95

Calls 2

getMethod · 0.95
allocIntMethod · 0.45

Tested by

no test coverage detected