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

+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include "IO/PSD/PSDTypes.h"
#include <map>
struct PSDImport {
int width;
int height;
double resolution;
std::vector<ImageLayer> layers;
std::vector<PSDConversion> conversions;
};
// A read Photoshop file as layers, with its conversions.
namespace PSDDocumentBuilder {
// Each pixel record's asset and thumbnail, off the UI thread.
std::map<QUuid, ImportedImage> assets(const PSDDocument &document);
PSDImport makeImport(const PSDDocument &document, const std::map<QUuid, ImportedImage> &assets = {});
}