Delphi 的默认 JPEG 库非常慢。如何提高其性能?我需要更快地保存和加载 jpeg 图像。
我只测试了 Jpeg.TJPEGImage
最佳答案
您可以使用 libJpeg 或 libJpegTurbo。后者绝对是非常快的。
来自单位:
{
libJPEG Header conversion by Steffen Xonna. (21-03-2008)
http://www.dev-center.de/index.php?cat=header&file=libjpeg
Below you find an copy from the original libJPEG header.
/* jpeglib.h
*
* Copyright (C) 1991-1998, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file defines the application interface for the JPEG library.
* Most applications using the library need only include this file,
* and perhaps jerror.h if they want to know the exact error codes.
*/
}
关于performance - 如何更快地解码 JPEG 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14211347/