public virtual void Close() { if (_pool != null) { MMal.mmal_pool_destroy(_pool); } _pool = null; }
public MMalPortPool(MMalPort port) { MMal.MMAL_POOL_T *pool = MMal.mmal_port_pool_create(port.Pointer, port.Pointer->buffer_num, port.Pointer->buffer_size); if (pool == null) { throw new Exception(String.Format("failed to create buffer header pool for port {0}", port.Name)); } Port = port; base.Initialize(pool); }
protected void Initialize(MMal.MMAL_POOL_T *pool) { _pool = pool; _queue = new MMALQueue(_pool->queue); }