File indexing completed on 2025-01-19 03:51:00

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2007-08-02
0007  * Description : JPEG image export settings widget.
0008  *
0009  * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DIMG_JPEG_EXPORT_SETTINGS_H
0016 #define DIGIKAM_DIMG_JPEG_EXPORT_SETTINGS_H
0017 
0018 // Local includes
0019 
0020 #include "dimgloadersettings.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class DImgJPEGExportSettings : public DImgLoaderSettings
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit DImgJPEGExportSettings(QWidget* const parent = nullptr);
0032     ~DImgJPEGExportSettings()                   override;
0033 
0034     /**
0035      * This widget manage 2 parameters for the image encoding:
0036      * "quality"  as integer [1 - 100].
0037      * "subsampling" as integer [0 - 3].
0038      */
0039     void setSettings(const DImgLoaderPrms& set) override;
0040     DImgLoaderPrms settings() const             override;
0041 
0042 private:
0043 
0044     class Private;
0045     Private* const d;
0046 };
0047 
0048 } // namespace Digikam
0049 
0050 #endif // DIGIKAM_DIMG_JPEG_EXPORT_SETTINGS_H