载入中...
搜索中...
未找到
FrameCaptureImage.cpp
浏览该文件的文档.
9 return Result<T>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, std::move(message), "frame_capture"));
46 } else if (b.attachment == FrameAttachment::Velocity || b.attachment == FrameAttachment::Depth) {
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
Status invalid(const char *message)
Definition OceanBindingInternal.h:21
@ InvalidArgument
constexpr size_t framePixelBytes(FramePixelFormat format)
Packed CPU bytes per pixel; pure value query, callable on any thread.
Definition FrameCapture.h:46
Result< double > frameCaptureLinearDepth(const FrameCaptureBuffer &b, uint32_t x, uint32_t y, const std::array< float, 16 > &matrix)
Reconstruct positive view depth using this snapshot's projection. @thread Any thread with CPU leases.
Definition FrameCaptureImage.cpp:58
Result< FramePixel > frameCapturePixel(const FrameCaptureBuffer &b, uint32_t x, uint32_t y)
Read CPU snapshot only; no callback, rendering, or GPU wait. @thread Any thread with a snapshot lease...
Definition FrameCaptureImage.cpp:12
@ Depth32Float
@ Bgra8
@ Rgba16Float
@ HwDepth
@ Depth
@ Velocity
@ Normal
@ PbrParams
@ Albedo
Immutable CPU attachment with producer-provided decoding metadata.
Definition FrameCapture.h:71
One pixel with native storage and decoded attachment semantics.
Definition FrameCaptureImage.h:6