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; }
private void MediaForm_Load(object sender, EventArgs e) { mediaPlay = OeipManager.Instance.GetMediaPlay(); mediaPlay.OnOpenEvent += MediaPlay_OnOpenEvent; mediaPlay.OnVideoFrameEvent += MediaPlay_OnVideoFrameEvent; var pipe = OeipManager.Instance.CreatePipe <OeipPipe>(OeipGpgpuType.OEIP_DX11); mediaPipe = new OeipLivePipe(pipe); mediaPipe.OnLiveImageChange += MediaPipe_OnLiveImageChange; }
void Awake() { pipe = OeipManager.Instance.CreatePipe <OeipPipe3D>(OeipGpgpuType.OEIP_CUDA); LivePipe = new OeipLivePipe(pipe); //显示 LivePipe.OnLiveImageChange += LivePipe_OnLiveImageChange; OeipLiveManager.Instance.OnVideoFrameEvent += Instance_OnVideoFrameEvent; Loom.QueueOnMainThread(() => { Debug.Log("init loom."); }); }