Photoshop PSD import (Compositor 1.2.0, part one)

This commit is contained in:
雷电芽衣 committed 2026-09-27 04:41:08 -04:00
1 parent 3d56688ce4
commit 2cd0d1b86d
41 files changed
+3912 -31

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include <QByteArray>
#include <QImage>
#include <vector>
// Photoshop's layer channels: raw and PackBits (Adobe's 2019 specification).
namespace PSDChannelCoder {
std::vector<uchar> decode(int compression, int width, int height, const QByteArray &data);
// Straight planes into premultiplied RGBA, sRGB.
QImage rgbaImage(int width, int height, const std::vector<uchar> &red, const std::vector<uchar> &green,
const std::vector<uchar> &blue, const std::vector<uchar> &alpha);
QImage maskImage(int width, int height, const std::vector<uchar> &gray);
}