2026-05-21 18:31:36 +01:00
|
|
|
namespace Mimir.Runtime.Synchronization;
|
|
|
|
|
|
|
|
|
|
public enum MimirVideoPixelFormat
|
|
|
|
|
{
|
|
|
|
|
Unknown,
|
|
|
|
|
Gray8,
|
|
|
|
|
R8,
|
|
|
|
|
Rg8,
|
2026-05-22 00:37:24 +01:00
|
|
|
Bayer8,
|
|
|
|
|
Yuy2,
|
|
|
|
|
Mjpg,
|
|
|
|
|
H264,
|
2026-05-21 18:31:36 +01:00
|
|
|
Bgra8,
|
|
|
|
|
Nv12,
|
|
|
|
|
LeapStereoIr,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public sealed record MimirVideoFrameDescriptor(
|
|
|
|
|
int Width,
|
|
|
|
|
int Height,
|
|
|
|
|
MimirVideoPixelFormat PixelFormat,
|
|
|
|
|
int StrideBytes,
|
|
|
|
|
long DeviceTimestampNs,
|
|
|
|
|
ulong NativeHandle = 0,
|
2026-05-27 13:29:48 +01:00
|
|
|
string NativeHandleKind = "",
|
|
|
|
|
string ResourceKey = "",
|
2026-05-27 17:22:30 +01:00
|
|
|
ulong ProducerFenceHandle = 0,
|
2026-05-27 14:11:48 +01:00
|
|
|
ulong ProducerFenceValue = 0,
|
|
|
|
|
int UnavoidableCopyCount = 0);
|