File indexing completed on 2024-05-12 15:59:43

0001 /*
0002  *  SPDX-FileCopyrightText: 2010 Boudewijn Rempt <boud@valdyas.org>
0003  *  SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 #ifndef COMPRESSION_H
0008 #define COMPRESSION_H
0009 
0010 #include "kritapsdutils_export.h"
0011 
0012 #include <QByteArray>
0013 #include <psd.h>
0014 
0015 class KRITAPSDUTILS_EXPORT Compression
0016 {
0017 public:
0018     static QByteArray uncompress(int unpacked_len, QByteArray bytes, psd_compression_type compressionType, int row_size = 0, int color_depth = 0);
0019     static QByteArray compress(QByteArray bytes, psd_compression_type compressionType, int row_size = 0, int color_depth = 0);
0020 };
0021 
0022 #endif // PSD_COMPRESSION_H