载入中...
搜索中...
未找到
FrameCaptureImage.h
浏览该文件的文档.
1#pragma once
3
4namespace eve {
6struct FramePixel {
7 std::array<double, 4> stored{};
8 std::array<double, 4> decoded{};
9 std::array<std::string_view, 4> labels{}; // Static semantic names, independent of snapshot memory.
10 size_t channels = 4;
11};
14 uint32_t y);
17 const FrameCaptureBuffer& buffer, uint32_t x, uint32_t y, const std::array<float, 16>& inverseProjection);
18} // namespace eve
double y
double x
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::unique_ptr< gpgpu::GpuBuffer > buffer
Definition OnnxGpgpu.cpp:26
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
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.
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...
Immutable CPU attachment with producer-provided decoding metadata.
One pixel with native storage and decoded attachment semantics.
std::array< double, 4 > decoded
std::array< double, 4 > stored
std::array< std::string_view, 4 > labels