gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 15:30:57 26 4
gpt4 key购买 nike

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com