MCPcopy Create free account
hub / github.com/RustCV/RustCV / AvfFrameData

Class AvfFrameData

rustcv-backend-avf/src/delegate.rs:37–48  ·  view source on GitHub ↗

从单帧回调中提取的原始帧数据。

Source from the content-addressed store, hash-verified

35
36/// 从单帧回调中提取的原始帧数据。
37pub struct AvfFrameData {
38 /// 像素数据(深拷贝自 CVPixelBuffer)
39 pub data: Vec<u8>,
40 /// 图像宽度(像素)
41 pub width: usize,
42 /// 图像高度(像素)
43 pub height: usize,
44 /// 每行字节数(步长 / stride / bytes_per_row)
45 pub bytes_per_row: usize,
46 /// 硬件时间戳(CMTime 转换为纳秒,单调递增)
47 pub timestamp_ns: u64,
48}
49
50// ---------------------------------------------------------------------------
51// Ivar 包装类型

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected