public OryxCameraSettings(OryxCamera cam) { this.cam = cam; settingsFileName = this.cam.sessionPath + @"\" + "cam" + cam.camNumber.ToString() + @"_cameraSettings.txt"; settingsToLoad = cam.setupInfo.settingsToLoad; foreach (KeyValuePair <Util.OryxSettingName, Util.SettingInfo> entry in settingsToLoad) { SetSetting(entry.Value); } EnableChunkData(); }
public BasicStreamController(OryxCamera oryxCamera) { manager = oryxCamera.manager; if (manager.output.nChannels != 1) { throw new Exception(message: "BasicStreamInfo accommodates only one output channel!"); } messageQueue = oryxCamera.messageQueue; Console.WriteLine("messageQueue: {0}", messageQueue); managedCamera = oryxCamera.managedCamera; inputSize = manager.input.inputChannel.imageSize; streamQueue = manager.output.streamQueue; outputSize = manager.output.outputChannels[0].imageSize; enqueueRate = manager.output.outputChannels[0].enqueueOrDequeueRate; isResizeNeeded = !Equals(objA: manager.input.inputChannel.imageSize, objB: manager.output.outputChannels[0].imageSize); handler = new MessageHandler.BasicMessageHandler(style: MessageHandlerStyle.Basic); state = BasicCamLoopState.Waiting; }