Skip to content

Commit

Permalink
Allocate direct
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Nov 22, 2024
1 parent a630ff8 commit caa1be5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static byte[] captureGray(Gray8Bits quantization) {

public static byte[] captureColors() {
final int[] ints = captureRGB(sharedScreenSize);
ByteBuffer bb = ByteBuffer.allocate(4 * ints.length);
ByteBuffer bb = ByteBuffer.allocateDirect(4 * ints.length);
bb.asIntBuffer().put(ints);
return bb.array();
}
Expand Down

0 comments on commit caa1be5

Please sign in to comment.