| 1 | // Copyright (C) 2019 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | #ifndef QIMAGESCALE_P_H |
| 4 | #define QIMAGESCALE_P_H |
| 5 | |
| 6 | // |
| 7 | // W A R N I N G |
| 8 | // ------------- |
| 9 | // |
| 10 | // This file is not part of the Qt API. It exists purely as an |
| 11 | // implementation detail. This header file may change from version to |
| 12 | // version without notice, or even be removed. |
| 13 | // |
| 14 | // We mean it. |
| 15 | // |
| 16 | |
| 17 | #include <qimage.h> |
| 18 | #include <private/qglobal_p.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | /* |
| 23 | This version accepts only supported formats. |
| 24 | */ |
| 25 | QImage qSmoothScaleImage(const QImage &img, int w, int h); |
| 26 | |
| 27 | namespace QImageScale { |
| 28 | struct QImageScaleInfo { |
| 29 | int *xpoints{nullptr}; |
| 30 | const unsigned int **ypoints{nullptr}; |
| 31 | int *xapoints{nullptr}; |
| 32 | int *yapoints{nullptr}; |
| 33 | int xup_yup{0}; |
| 34 | int sh = 0; |
| 35 | int sw = 0; |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | QT_END_NAMESPACE |
| 40 | |
| 41 | #endif |
| 42 | |