Examples of time()


Examples of turbojpeg.utils.StopWatch.time()

                                        (int) TJSAMP.TJSAMP_GRAY.value,
                                        90,
                                        TurbojpegLibrary.TJFLAG_NOREALLOC | TurbojpegLibrary.TJFLAG_FORCESSE3
                                            | TurbojpegLibrary.TJFLAG_FASTDCT);
    }
    final long lCompressionElapsedTime = lCompressionTime.time(TimeUnit.MILLISECONDS);
    System.out.format("Compression: %d ms \n",
                      lCompressionElapsedTime / lNumberOfRepeats);

    System.out.println(ec);
View Full Code Here

Examples of turbojpeg.utils.StopWatch.time()

                                                  512,
                                                  512,
                                                  1024,
                                                  (int) TJPF.TJPF_GRAY.value,
                                                  TurbojpegLibrary.TJFLAG_ACCURATEDCT);
    final long lDecompressionElapsedTime = lDecompressionTime.time(TimeUnit.MILLISECONDS);
    System.out.format("Decompression: %d ms \n",
                      lDecompressionElapsedTime);

    System.out.println(ed);
View Full Code Here

Examples of turbojpeg.utils.StopWatch.time()

                                                        mPointerToCompressedBufferEffectiveSize,
                                                        (int) TJSAMP.TJSAMP_GRAY.value,
                                                        mQuality,
                                                        TurbojpegLibrary.TJFLAG_NOREALLOC | TurbojpegLibrary.TJFLAG_FORCESSE3
                                                            | TurbojpegLibrary.TJFLAG_FASTDCT);
    mLastCompressionElapsedTimeInMs = lCompressionTime.time(TimeUnit.MILLISECONDS);
    mCompressedImageByteBuffer.limit((int) mPointerToCompressedBufferEffectiveSize.getCLong());
    mLastCompressionRatio = ((double) mCompressedImageByteBuffer.limit()) / p8BitImageByteBuffer.limit();

    lPointerTo8BitImageByteBuffer.release();
    return lErrorCode == 0;
View Full Code Here

Examples of turbojpeg.utils.StopWatch.time()

                                                          lHeight,
                                                          (int) TJPF.TJPF_GRAY.value,
                                                          TurbojpegLibrary.TJFLAG_NOREALLOC | TurbojpegLibrary.TJFLAG_FORCESSE3
                                                              | TurbojpegLibrary.TJFLAG_FASTDCT);

    mLastDecompressionElapsedTimeInMs = lCompressionTime.time(TimeUnit.MILLISECONDS);

    lPointerTo8BitImageCompressedByteBuffer.release();
   
   
    return lErrorCode == 0;
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.