载入中...
搜索中...
未找到
ActionGuideExport.cpp
浏览该文件的文档.
38 {"backgroundRgba", Value::array({Value(canvas.backgroundRgba[0]), Value(canvas.backgroundRgba[1]),
46 Value(camera.projection == ActionGuideProjection::Perspective ? "perspective" : "orthographic")},
52 {"target", Value::array({Value(camera.target[0]), Value(camera.target[1]), Value(camera.target[2])})},
58 return fail<std::vector<uint8_t>>(DiagnosticCode::InvalidArgument, "AOV buffer is empty", aov.aov);
60 return fail<std::vector<uint8_t>>(DiagnosticCode::InvalidArgument, "AOV RGBA size mismatch", aov.aov);
80 if (aov == "silhouette" || aov == "guide.silhouette") return Result<std::string>::success("silhouette");
85 if (aov == "final" || aov == "whitebox_final") return Result<std::string>::success("whitebox_final");
86 return fail<std::string>(DiagnosticCode::InvalidArgument, "unsupported guide AOV name", std::string(aov));
153 shotIndex.emplace_back(Value::object({{"shotId", Value(shot.shotId)}, {"folder", Value(folder)}}));
Write a Ready guide-capture snapshot to the guide-pack artifact directory layout.
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Result< std::string > toJson() const
Serialize this value as deterministic compact JSON.
Definition Value.cpp:187
Definition ActionGuideExport.cpp:13
Result< Value > writeActionGuideArtifactPack(const ActionGuideCaptureSnapshot &snapshot, const std::filesystem::path &root)
Encode Ready silhouette/depth(/bone) buffers as PNG + manifest under root.
Definition ActionGuideExport.cpp:89
Result< FramePreview > frameCapturePreview(const FrameCaptureBuffer &b, const FramePreviewOptions &o)
Definition FrameCapturePreview.cpp:29
Result< std::string > actionGuideAovFileStem(std::string_view aov)
Map pack AOV name to export file stem (silhouette → silhouette.png).
Definition ActionGuideExport.cpp:79
@ InvalidArgument
@ Failed
@ Perspective
@ Rgba8
@ Final
One lease-owned CPU AOV buffer (always RGBA8 for PNG export). @ownership rgba8 is immutable shared st...
Definition ActionGuidePack.h:177
std::shared_ptr< const std::vector< std::uint8_t > > rgba8
Definition ActionGuidePack.h:181
Offscreen guide camera; never mutates the live gameplay camera.
Definition ActionGuidePack.h:53
Output canvas contract for guide images and landmark pixels.
Definition ActionGuidePack.h:44
std::array< double, 4 > backgroundRgba
Definition ActionGuidePack.h:48
Immutable CPU snapshot for one guide-capture job. @lifetime Bytes remain valid until releaseCapture; ...
Definition ActionGuidePack.h:198
Immutable CPU attachment with producer-provided decoding metadata.
Definition FrameCapture.h:71
Explicit CPU preview transformation, separate from costly GPU capture.
Definition FrameCapturePreview.hpp:5
std::string revision
Definition ProjectIndexInternal.hpp:29