载入中...
搜索中...
未找到
ActionGuideIngestIO.hpp
浏览该文件的文档.
1#pragma once
2
9#include "common/Export.h"
10#include "common/Result.h"
11#include "common/Value.h"
12
13#include <filesystem>
14#include <span>
15#include <string>
16#include <vector>
17
18namespace eve::dev {
19
25[[nodiscard]] EVENGINE_API_FOUNDATION Result<ActionGuideCandidateFrame> decodeActionGuideCandidatePng(
26 std::span<const std::uint8_t> pngBytes);
27
32[[nodiscard]] EVENGINE_API_FOUNDATION Result<std::vector<ActionGuideCandidateFrame>> loadActionGuideCandidates(
33 const std::filesystem::path& candidateDir, const ActionGuidePack& pack);
34
40[[nodiscard]] EVENGINE_API_FOUNDATION Result<Value> writeActionGuideIngestPack(
41 const ActionGuideIngestDraft& draft, std::span<const ActionGuideCandidateFrame> frames,
42 const std::filesystem::path& outputRoot);
43
44} // namespace eve::dev
Candidate-frame validation and ability/clip draft builders for guide ingest.
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
ActionGuidePack pack
Move-only, checked operation results for the common layer.
RoadPresetDraft draft
Owning, renderer-independent dynamic values.
Result< Value > writeActionGuideIngestPack(const ActionGuideIngestDraft &draft, std::span< const ActionGuideCandidateFrame > frames, const std::filesystem::path &outputRoot)
Atomically write frames + clip/ability drafts under outputRoot.
Result< std::vector< ActionGuideCandidateFrame > > loadActionGuideCandidates(const std::filesystem::path &candidateDir, const ActionGuidePack &pack)
Load NNNN/{meta.json,frame.png} under candidateDir into an ordered frame list. @cost Disk IO + PNG de...
Result< ActionGuideCandidateFrame > decodeActionGuideCandidatePng(std::span< const std::uint8_t > pngBytes)
Decode an 8-bit RGBA PNG into an owning RGBA8 buffer.