performance - 如何更快地解码 JPEG 文件?

标签 performance delphi delphi-xe2 jpeg

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/

相关文章:

delphi - JCLMAPI Delphi 非模态电子邮件弹出窗口

delphi - 在 Delphi 中获取正确的相对路径

delphi - 我如何检测其他控件何时更改其边界?

mysql - 无法将 Delphi 应用程序连接到 mySQL 数据库

python - 查找列表中第 n 个项目的索引

c# - 通过 ID 列表在数据库中搜索记录

delphi - Jpeg 到 Bmp 的转换需要不合理的时间

performance - ASP.NET MVC3 Razor View - 在 VS2010 中编辑速度极慢

c++ - 与更具可读性的方法相比,C++ 中按位异或的效率

delphi - 如何在Delphi窗体的OnClose事件中使用MessageDlg?