添加契约和网络传输类库

This commit is contained in:
2025-12-29 08:09:14 +08:00
parent 231247c80f
commit 8cd36f44ac
14 changed files with 748 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ namespace SHH.CameraSdk;
/// </summary>
public class SmartFrame : IDisposable
{
public List<string> SubscriberIds { get; } = new List<string>(16);
#region --- (Private Resources & States) ---
/// <summary> 所属帧池:用于引用归零后自动回收复用 </summary>
@@ -114,6 +116,10 @@ public class SmartFrame : IDisposable
TargetMat = null;
}
ScaleType = FrameScaleType.None;
// 2. [核心逻辑] 清空订阅者列表
// 注意Clear() 只是把 Count 设为 0底层数组容量不变不会触发 GC
SubscriberIds.Clear();
}
#endregion