public void _createImageProcessor() { var t = _getTargetImageProcessorType(); if (_imageProcessor != null && t == _currImageProcessorType) { _imageProcessor.Invalidate(); return; } _currImageProcessorType = t; if (_imageProcessor != null) { _imageProcessor.Destroy(); } _imageProcessor = null; if (_currImageProcessorType == typeof(TxOVRVisionImageProcessor)) { var proc = new TxOVRVisionImageProcessor(this); _imageProcessor = proc; proc._optimizedOVR = Configuration.CamSettings.OptimizeOVRVision; Output._eyesCoords = new Rect[1] { new Rect(0, 0, 1, 1) }; Output._scalingFactor = new Vector2[1] { new Vector2(1, 1) }; } else if (_currImageProcessorType == typeof(TxFoveatedRenderingImageProcessor)) { _imageProcessor = new TxFoveatedRenderingImageProcessor(this); } else if (_currImageProcessorType == typeof(TxOVRFoveatedRenderingImageProcessor)) { _imageProcessor = new TxOVRFoveatedRenderingImageProcessor(this); Output._eyesCoords = new Rect[1] { new Rect(0, 0, 1, 1) }; Output._scalingFactor = new Vector2[1] { new Vector2(1, 1) }; } else if (_currImageProcessorType == typeof(TxGeneralImageProcessor)) { _imageProcessor = new TxGeneralImageProcessor(this); } }
public ProcessorThread(TxOVRVisionImageProcessor o) { owner = o; }