载入中...
搜索中...
未找到
RigidPoseTrackFile.cpp
浏览该文件的文档.
85 Diagnostic::error(DiagnosticCode::HashMismatch, "rigid track checksum mismatch", "rigidPoseTrack"));
114 24 + metadataBytes + 16ull * tracks + static_cast<std::uint64_t>(frames) * (4 + 28ull * tracks);
152Result<RigidPoseTrack> RigidPoseTrack::loadForRecipe(std::string_view path, const BakeRecipe& expected) {
166 Diagnostic::error(DiagnosticCode::HashMismatch, "rigid asset provenance mismatch", "rigidPoseTrack"));
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
Bounded provenance builder for explicit-coordinate baked recordings. @ownership Owns names and conten...
Definition BakeRecipe.h:21
Result< std::string > encode() const
Encode complete provenance canonically, sorting dependency and RNG names. @cost Linear in bounded met...
Definition BakeRecipe.cpp:104
static Result< BakeRecipe > decode(std::string_view bytes)
Parse a bounded canonical recipe record, rejecting duplicate names and trailing bytes....
Definition BakeRecipe.cpp:129
Result< RigidTrackPose > sample(float seconds, PersistentId id) const
Sample a known stable identity at finite seconds, clamping outside the recorded interval.
Definition RigidPoseTrack.cpp:85
RigidTrackSpace space() const noexcept
Coordinate contract of every pose in this track.
Definition RigidPoseTrack.cpp:117
Result< void > save(std::string_view path) const
Publish an immutable track without replacing an existing asset. @cost Linear in samples plus filesyst...
Definition RigidPoseTrackFile.cpp:33
static Result< RigidPoseTrack > prepare(RigidTrackSpace space, std::vector< RigidTrackFrame > frames)
Validate, normalize and freeze a bounded recording with stable sorted track identities....
Definition RigidPoseTrack.cpp:44
static Result< RigidPoseTrack > loadForRecipe(std::string_view path, const BakeRecipe &expected)
Load an asset and require exact canonical expected provenance before cache admission....
Definition RigidPoseTrackFile.cpp:152
std::size_t trackCount() const noexcept
Number of identities in the frozen roster.
Definition RigidPoseTrack.cpp:119
static Result< RigidPoseTrack > load(std::string_view path)
Read and validate a bounded EVERIGD1 v1/v2 asset before returning an immutable track....
Definition RigidPoseTrackFile.cpp:62
constexpr std::uint32_t MaxSamples
Definition CollapseAnimationInternal.h:7
@ PlanarPixels
@ Metres3D
std::string bakedAssetContentKey(std::string_view source)
Stable noncryptographic 128-bit content digest, encoded as 32 lowercase hexadecimal bytes....
Definition BakedAssetFile.cpp:14
Result< void > publishBakedAsset(std::string_view path, std::string_view bytes)
Publish complete baked asset bytes atomically without replacing an existing path. @ownership Borrows ...
Definition BakedAssetFile.cpp:64
@ HashMismatch
@ NotFound
@ SerializationError
@ PreconditionViolation
@ Failed
Owning frame at an explicit finite simulation time, starting at zero.
Definition RigidPoseTrack.h:25
std::vector< RigidTrackSample > samples
Definition RigidPoseTrack.h:27
Owning pose; XYZW quaternion, pixels or metres selected by the track. Planar poses require z=qx=qy=0.
Definition RigidPoseTrack.h:15