public Texture GetRawEyeTexture(int e) { if (!SeparateStreams) { e = 0; } if (m_Texture != null && m_Texture.PlayerTexture() != null && (int)e < m_Texture.PlayerTexture().Length) { return(m_Texture.PlayerTexture() [(int)e]); } return(null); }
public override void ProcessMainThread(ref TxVisionOutput result) { if (_processorThread == null || _processorThread.IsDone || _texture == null || _texture.PlayerTexture() == null || _texture.PlayerTexture().Length == 0) { return; } /* * * var t = _texture.PlayerTexture ()[0]; * result.SetTexture (t, 0); * result.SetTexture (t, 1); * * return;*/ if (!_inited) { _config = result.Configuration.CamerConfigurationsStr; } _InitTextures(result.Configuration.FrameSize); Process(); //if (_ready) _updateTextures(); result.Configuration.PixelShiftLeft.x = result.Configuration.PixelShiftLeft.y = 0; result.Configuration.PixelShiftRight.x = result.Configuration.PixelShiftRight.y = 0; { for (int i = 0; i < 2; ++i) { result.SetTexture(_flipProcessor[i].ProcessTexture(_textures[i]), i); } result.SetSourceTexture(_texture.PlayerTexture()[0], 0); // _ready = false; } }