#pragma once #include #include #include // Photoshop's layer channels: raw and PackBits (Adobe's 2019 specification). namespace PSDChannelCoder { std::vector 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 &red, const std::vector &green, const std::vector &blue, const std::vector &alpha); QImage maskImage(int width, int height, const std::vector &gray); }