コード例 #1
0
 public void release()
 {
     if (this.mLensEngine != null)
     {
         this.mLensEngine.Release();
         this.mLensEngine = null;
     }
 }
コード例 #2
0
        private void CreateLensEngine()
        {
            Context context = this.ApplicationContext;

            // Create LensEngine.
            this.mLensEngine = new LensEngine.Creator(context, this.analyzer).SetLensType(this.lensType)
                               .ApplyDisplayDimension(960, 720)
                               .ApplyFps(25.0f)
                               .EnableAutomaticFocus(true)
                               .Create();
        }
コード例 #3
0
        private void CreateLensEngine()
        {
            Context context = this.ApplicationContext;

            // Create LensEngine. Recommended image size: large than 320*320, less than 1920*1920.
            this.mLensEngine = new LensEngine.Creator(context, this.analyzer)
                               .SetLensType(this.lensType)
                               .ApplyDisplayDimension(640, 480)
                               .ApplyFps(25.0f)
                               .EnableAutomaticFocus(true)
                               .Create();
        }
コード例 #4
0
        public void start(LensEngine lensEngine)
        {
            if (lensEngine == null)
            {
                this.stop();
            }

            this.mLensEngine = lensEngine;
            if (this.mLensEngine != null)
            {
                this.mStartRequested = true;
                this.startIfReady();
            }
        }
コード例 #5
0
 private void StartLensEngine()
 {
     if (this.mLensEngine != null)
     {
         try
         {
             this.mPreview.start(this.mLensEngine, this.mOverlay);
         }
         catch (Exception e)
         {
             Log.Error(Tag, "Failed to start lens engine.", e);
             this.mLensEngine.Release();
             this.mLensEngine = null;
         }
     }
 }
コード例 #6
0
 private void StartLensEngine()
 {
     if (this.mLensEngine != null)
     {
         try
         {
             this.mPreview.start(this.mLensEngine, this.mGraphicOverlay);
         }
         catch (Exception e)
         {
             Log.Error(Live3DFaceAnalyseActivity.Tag, "Failed to start lens engine.", e);
             this.mLensEngine.Release();
             this.mLensEngine = null;
         }
     }
 }
コード例 #7
0
 private void StartLensEngine()
 {
     if (this.mLensEngine != null)
     {
         try
         {
             this.mPreview.start(this.mLensEngine, this.mOverlay);
         }
         catch (Exception e)
         {
             Log.Info(LiveObjectAnalyseActivity.Tag, "Failed to start lens engine.", e);
             this.mLensEngine.Release();
             this.mLensEngine = null;
         }
     }
 }
 /// <summary>
 /// Start lens engine
 /// </summary>
 private void StartLensEngine()
 {
     if (this.mLensEngine != null)
     {
         try
         {
             this.mPreview.start(this.mLensEngine, this.graphicOverlay);
         }
         catch (IOException e)
         {
             Log.Info(LiveSkeletonAnalyseActivity.Tag, "Failed to start lens engine." + e.Message);
             this.mLensEngine.Release();
             this.mLensEngine = null;
         }
     }
 }
コード例 #9
0
 public void start(LensEngine lensEngine, GraphicOverlay overlay)
 {
     this.mOverlay = overlay;
     this.start(lensEngine);
 }