File indexing completed on 2024-12-22 04:15:56
0001 /* 0002 * SPDX-FileCopyrightText: 2005-2006 Cyrille Berger <cberger@cberger.net> 0003 * SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KIS_TIFF_OPTIONS_H 0009 #define KIS_TIFF_OPTIONS_H 0010 0011 #include <kis_types.h> 0012 0013 struct KisTIFFOptions { 0014 quint16 compressionType = 0; 0015 quint16 predictor = 1; 0016 // Disable alpha by default because the test suite 0017 // doesn't run the dialog's color space checks. 0018 bool alpha = false; 0019 bool saveAsPhotoshop = false; 0020 quint16 psdCompressionType = 0; 0021 bool flatten = true; 0022 quint16 jpegQuality = 80; 0023 quint16 deflateCompress = 6; 0024 quint16 pixarLogCompress = 6; 0025 bool saveProfile = true; 0026 0027 KisPropertiesConfigurationSP toProperties() const; 0028 void fromProperties(KisPropertiesConfigurationSP cfg); 0029 }; 0030 0031 #endif // KIS_TIFF_OPTIONS_H