12345678910111213141516171819202122232425262728293031323334353637383940414243 |
-
- namespace NRKernal.Record
- {
- using System.Collections.Generic;
-
- public class FrameCaptureContextFactory
- {
-
- private static List<FrameCaptureContext> m_ContextList = new List<FrameCaptureContext>();
-
-
- public static FrameCaptureContext Create()
- {
- FrameCaptureContext context = new FrameCaptureContext();
- m_ContextList.Add(context);
- return context;
- }
-
- public static void DisposeAllContext()
- {
- foreach (var item in m_ContextList)
- {
- if (item != null)
- {
- item.StopCapture();
- item.Release();
- }
- }
- }
- }
- }
|