Add metadata-only PPI save automation

This commit is contained in:
2026-06-02 10:10:30 +02:00
parent b0445382dd
commit 374cb5b075
8 changed files with 345 additions and 0 deletions

View File

@@ -118,6 +118,13 @@ struct PpiDecodedProjectImages {
std::vector<PpiDecodedFacePayload> faces;
};
struct PpiMinimalProjectConfig {
std::uint32_t width = 0;
std::uint32_t height = 0;
std::string layer_name;
std::uint32_t frame_duration_ms = 100;
};
[[nodiscard]] pp::foundation::Result<PpiHeaderInfo> parse_ppi_header(
std::span<const std::byte> bytes) noexcept;
@@ -143,4 +150,7 @@ struct PpiDecodedProjectImages {
[[nodiscard]] pp::foundation::Result<PpiDecodedProjectImages> decode_ppi_project_images(
std::span<const std::byte> bytes);
[[nodiscard]] pp::foundation::Result<std::vector<std::byte>> create_minimal_ppi_project(
PpiMinimalProjectConfig config);
}