コード例 #1
0
 protected MMALPortBase(MMAL_PORT_T *ptr, MMALComponentBase comp, PortType type)
 {
     this.Ptr  = ptr;
     this.Comp = ptr->Component;
     this.ComponentReference = comp;
     this.PortType           = type;
 }
コード例 #2
0
 protected MMALConnectionImpl(MMAL_CONNECTION_T *ptr, MMALPortBase output, MMALPortBase input, MMALDownstreamComponent inputComponent, MMALComponentBase outputComponent)
 {
     this.Ptr                 = ptr;
     this.OutputPort          = output;
     this.InputPort           = input;
     this.DownstreamComponent = inputComponent;
     this.UpstreamComponent   = outputComponent;
     this.Enable();
 }
コード例 #3
0
        protected MMALConnectionImpl(MMAL_CONNECTION_T *ptr, MMALPortBase output, MMALPortBase input, MMALDownstreamComponent inputComponent, MMALComponentBase outputComponent, bool useCallback)
        {
            this.Ptr                 = ptr;
            this.OutputPort          = output;
            this.InputPort           = input;
            this.DownstreamComponent = inputComponent;
            this.UpstreamComponent   = outputComponent;


            if (useCallback)
            {
                this.ConfigureConnectionCallback(output, input);
            }

            this.Enable();

            if (useCallback)
            {
                this.OutputPort.SendAllBuffers();
            }
        }
コード例 #4
0
 public MMALPortImpl(MMAL_PORT_T *ptr, MMALComponentBase comp, PortType type) : base(ptr, comp, type)
 {
 }