protected MMALPortBase(MMAL_PORT_T *ptr, MMALComponentBase comp, PortType type) { this.Ptr = ptr; this.Comp = ptr->Component; this.ComponentReference = comp; this.PortType = type; }
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(); }
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(); } }
public MMALPortImpl(MMAL_PORT_T *ptr, MMALComponentBase comp, PortType type) : base(ptr, comp, type) { }