Searched refs:rgbaBuffer (Results 1 – 1 of 1) sorted by relevance
80 private static ByteBuffer stripAlphaChannel(ByteBuffer rgbaBuffer) { in stripAlphaChannel() argument81 rgbaBuffer.rewind(); in stripAlphaChannel()82 assertEquals(rgbaBuffer.remaining() % 4, 0); in stripAlphaChannel()83 final int numberOfPixels = rgbaBuffer.remaining() / 4; in stripAlphaChannel()85 while (rgbaBuffer.hasRemaining()) { in stripAlphaChannel()88 rgbBuffer.put(rgbaBuffer.get()); in stripAlphaChannel()91 rgbaBuffer.get(); in stripAlphaChannel()