예제 #1
0
        // ctor
        public DShowMFVGraph(Log logInfo)
        {
            LogInfo = logInfo;

            AppSettingsReader appConfig = new AppSettingsReader();

            videoSource  = (string)appConfig.GetValue("VideoSource", typeof(string));
            filePath     = (string)appConfig.GetValue("FilePath", typeof(string));
            videoPreview = (bool)appConfig.GetValue("VideoPreview", typeof(bool));

            videoFrame = GlobalMemClass.CreateSharedMem("globalmem");

            InitializeInternal();
        }
예제 #2
0
 /// <summary> Clean up any resources being used. </summary>
 public void Dispose() // Dispose()
 {
     CloseInterfaces();
     GlobalMemClass.Cleanup();
     LogInfo(LogGroups.Console, "DShowMFVGraph disposed.");
 }