Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 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.");
     });
 }