File indexing completed on 2024-04-28 15:40:25

0001 /* SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <blackie@kde.org>
0002 
0003    SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef FASTJPEG_H
0007 #define FASTJPEG_H
0008 #include <QImage>
0009 #include <QString>
0010 
0011 namespace DB
0012 {
0013 class FileName;
0014 }
0015 
0016 namespace Utilities
0017 {
0018 bool loadJPEG(QImage *img, const DB::FileName &imageFile, QSize *fullSize, int dim = -1);
0019 bool loadJPEG(QImage *img, const DB::FileName &imageFile, QSize *fullSize, int dim = -1, char *membuf = nullptr, size_t membufSize = 0);
0020 bool loadJPEG(QImage *img, const QByteArray &data, QSize *fullSize, int dim = -1);
0021 bool isJPEG(const DB::FileName &fileName);
0022 }
0023 
0024 #endif /* FASTJPEG_H */
0025 
0026 // vi:expandtab:tabstop=4 shiftwidth=4: