Code Monkey home page Code Monkey logo

Comments (4)

CainKernel avatar CainKernel commented on June 26, 2024

from caincamera.

mengyaCS avatar mengyaCS commented on June 26, 2024

你好,这个是我昨天下载的,刚才重新编译了一下C++,还是一样的问题。然后把那一段注释掉之后可以安转,但是在《滤镜相机》模块 报错,好像是比较器出错了。
Process: com.cgfay.caincamera, PID: 7932
java.util.NoSuchElementException
at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:576)
at java.util.Collections.max(Collections.java:1626)
at com.cgfay.utilslibrary.CameraUtils.calculatePerfectSize(CameraUtils.java:771)
at com.cgfay.utilslibrary.CameraUtils.setPictureSize(CameraUtils.java:434)
at com.cgfay.utilslibrary.CameraUtils.openCamera(CameraUtils.java:91)
at com.cgfay.utilslibrary.CameraUtils.openCamera(CameraUtils.java:60)
at com.cgfay.cainfilter.core.RenderThread.surfaceCreated(RenderThread.java:131)
at com.cgfay.cainfilter.core.RenderHandler.handleMessage(RenderHandler.java:85)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)

from caincamera.

CainKernel avatar CainKernel commented on June 26, 2024

我后来提交了一个更新,之前由于网络问题,并没有提交到github 上,sdl 部分的话,需要加载动态库:

查找Android存在的库

find_library( OpenGLES-lib OpenSLES )
find_library( EGL-lib EGL )
find_library( GLESv2-lib GLESv2 )

链接库文件

target_link_libraries( sdl

                   ${log-lib}
                   ${OpenGLES-lib}
                   ${EGL-lib}
                   ${GLESv2-lib} )

后面你说的比较器出错问题,应该是查找相机分辨率的时候出错了,在大于期望分辨率的时候没有处理好导致的

from caincamera.

CainKernel avatar CainKernel commented on June 26, 2024

你现在再更新一次,看看是否问题已经解决?

from caincamera.

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.