19 lines
539 B
C++
19 lines
539 B
C++
#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 = {});
|
|
}
|