Package java.nio

Examples of java.nio.IntBuffer.mark()


        @Override
        public long test(BufferedImage image, int iterations) {
            final IntBuffer sumIntegralImage = IntBuffer.allocate((image.getWidth() + 1) * (image.getHeight() + 1));
            final LongBuffer sumSQIntegralImage = LongBuffer.allocate(sumIntegralImage.capacity());

            sumIntegralImage.mark();
            sumSQIntegralImage.mark();

            startTimer();
            for (int i = 0; i < iterations; i++) {
                sumIntegralImage.reset();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.