示例#1
0
        /// <summary>
        /// Cleans up any unmanaged resources. It is intended for this method to be run when no more activity is to be done with MMAL.
        /// </summary>
        public void Cleanup()
        {
            MMALLog.Logger.LogDebug("Destroying final components");

            var tempList = new List <MMALDownstreamComponent>(MMALBootstrapper.DownstreamComponents);

            tempList.ForEach(c => c.Dispose());

            VideoCore.Uninitialize();
            //BcmHost.bcm_host_deinit();
        }
示例#2
0
 private MMALStandalone()
 {
     VideoCore.Initialize();
     //BcmHost.bcm_host_init();
 }
示例#3
0
 private MMALCamera()
 {
     //BcmHost.bcm_host_init();
     VideoCore.Initialize();
     this.Camera = new MMALCameraComponent();
 }