public void release() { if (this.mLensEngine != null) { this.mLensEngine.Release(); this.mLensEngine = null; } }
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(); }
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(); }
public void start(LensEngine lensEngine) { if (lensEngine == null) { this.stop(); } this.mLensEngine = lensEngine; if (this.mLensEngine != null) { this.mStartRequested = true; this.startIfReady(); } }
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; } } }
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; } } }
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; } } }
public void start(LensEngine lensEngine, GraphicOverlay overlay) { this.mOverlay = overlay; this.start(lensEngine); }