Krita Source Code Documentation
Loading...
Searching...
No Matches
compression.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef COMPRESSION_H
8#define COMPRESSION_H
9
10#include "kritapsdutils_export.h"
11
12#include <QByteArray>
13#include <psd.h>
14
15class KRITAPSDUTILS_EXPORT Compression
16{
17public:
18 static QByteArray uncompress(int unpacked_len, QByteArray bytes, psd_compression_type compressionType, int row_size = 0, int color_depth = 0);
19 static QByteArray compress(QByteArray bytes, psd_compression_type compressionType, int row_size = 0, int color_depth = 0);
20};
21
22#endif // PSD_COMPRESSION_H
psd_compression_type
Definition psd.h:39