mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-21 12:49:43 +03:00
0e429b2143
Protos to the rescue again.
26 lines
449 B
Protocol Buffer
26 lines
449 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package NAPS2.Serialization;
|
|
|
|
message SerializedImage {
|
|
bool transferOwnership = 1;
|
|
oneof image {
|
|
string filePath = 2;
|
|
bytes fileContent = 3;
|
|
}
|
|
SerializedImageMetadata metadata = 4;
|
|
bytes thumbnail = 5;
|
|
string renderedFilePath = 6;
|
|
}
|
|
|
|
message SerializedImageMetadata {
|
|
string transformListXml = 1;
|
|
enum BitDepth {
|
|
Color = 0;
|
|
Grayscale = 1;
|
|
BlackAndWhite = 2;
|
|
}
|
|
BitDepth bitDepth = 2;
|
|
bool lossless = 3;
|
|
}
|