Giter Club home page Giter Club logo

Comments (3)

Shouheng88 avatar Shouheng88 commented on June 9, 2024

具体的栈有吗

from icamera.

oudengding avatar oudengding commented on June 9, 2024

原因找到了:我预先设置了指定的预览拍照的尺寸expectSize,首次执行时默认从后摄像头开始预览,通过CameraSizeCalculatorImpl.getPictureSize( )方法计算出后摄像头所支持的最佳预览尺寸,并记录了它,
但切换为前摄像头时,这个值并没有被重置,再次调用CameraSizeCalculatorImpl.getPictureSize( )时,直接返回了后摄像头使用的这个尺寸,而前摄像头所支持的预览和拍照尺寸列表里并没有这个尺寸,所以出错:android java lang RuntimeException setParameters failed

from icamera.

Shouheng88 avatar Shouheng88 commented on June 9, 2024

之前的计算存在问题,缓存的数值没有区分 Camera1 还是 Camera2,代码已更新,计算策略已更新,可拉最新代码查看

from icamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.