public void NativeLoad(OeipGpgpuType gpuType, int index = 0, bool bCpu = false) { var pipe = OeipManager.Instance.CreatePipe <OeipPipe>(gpuType); LivePipe = new OeipLivePipe(pipe); LivePipe.OnLiveImageChange += LivePipe_OnLiveImageChange; }
public void NativeLoad(OeipGpgpuType gpuType, VideoFormat obj) { var pipe = OeipManager.Instance.CreatePipe <OeipPipe>(gpuType); BlendPipe = new BlendViewPipe(pipe); this.displayDx111.NativeLoad(BlendPipe, obj); }
public T CreatePipe <T>(OeipGpgpuType oeipGpgpuType) where T : OeipPipe, new() { int pipeId = OeipHelper.initPipe(oeipGpgpuType); if (pipeId < 0) { return(null); } T pipe = new T(); pipe.SetPipeId(pipeId); //OeipPipes.Add(pipe); return(pipe); }
public void NativeLoad(OeipGpgpuType gpuType, int index = 0, bool bCpu = false) { var pipe = OeipManager.Instance.CreatePipe <OeipPipe>(gpuType); VideoPipe = new OeipVideoPipe(pipe); VideoPipe.Pipe.OnProcessEvent += Pipe_OnProcessEvent; VideoPipe.SetOutput(bCpu, !bCpu); camera = OeipManager.Instance.GetCamera <OeipCamera>(index); camera.OnReviceEvent += Camera_OnReviceEvent; var cameraList = OeipManager.Instance.OeipDevices; OeipDeviceInfo nullDevice = new OeipDeviceInfo(); nullDevice.id = -1; cbx_cameraList.Items.Add(nullDevice); foreach (var camera in cameraList) { cbx_cameraList.Items.Add(camera); } cbx_cameraList.SelectedIndex = Math.Min(index + 1, cameraList.Count); }
public void SetPipeId(int id) { this.PipeId = id; OeipHelper.setPipeDataAction(PipeId, onProcessDelegate); GpgpuType = OeipHelper.getPipeType(PipeId); }
public static extern int initPipe(OeipGpgpuType gpgpuType);