Exemple #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;
        }
Exemple #2
0
        public void NativeLoad(OeipGpgpuType gpuType, VideoFormat obj)
        {
            var pipe = OeipManager.Instance.CreatePipe <OeipPipe>(gpuType);

            BlendPipe = new BlendViewPipe(pipe);
            this.displayDx111.NativeLoad(BlendPipe, obj);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
 public void SetPipeId(int id)
 {
     this.PipeId = id;
     OeipHelper.setPipeDataAction(PipeId, onProcessDelegate);
     GpgpuType = OeipHelper.getPipeType(PipeId);
 }
Exemple #6
0
 public static extern int initPipe(OeipGpgpuType gpgpuType);