I am looking to integrate OpenCamera in an application as a library. To do this, there is the advice from opencamera_source.txt:
It mentions three possible implementation levels: CameraController, Preview and Application. I was opting for the Preview implementation.
Preview: At a higher level, you might want to take the classes in Preview/ as well as CameraController/. Note the Preview class is a bit of a misnomer - as well as the camera preview, it also includes much of the functionality required to operate the camera. This level would provide you with a camera, but still leave you to define all the higher level parts of the application, such as user-interface, preferences, image processing and saving. As well as controlling the Preview by calling its methods, an instance of ApplicationInterface must be supplied, to allow the Preview to communicate to the application. It is recommended to subclass BasicApplicationInterface, which provides a dummy default implementation of many of the methods. (As an alternative, you may prefer to start with Open Camera's MyApplicationInterface as a sample, and modify it to your needs.)
However, when copying these two folders to my project, there are many incompatibility issues: renderscript, R.string values, Toasts, ... Solving all these issues is nearly a rewrite of the entire Preview class, especially considering the renderscript stuff.
I'm guessing in the past this worked pretty well but isn't given much attention.
Is there any place that I'm missing wherea prepacked library is served, or are there any plans to improve the library support?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am looking to integrate OpenCamera in an application as a library. To do this, there is the advice from opencamera_source.txt:
It mentions three possible implementation levels: CameraController, Preview and Application. I was opting for the Preview implementation.
However, when copying these two folders to my project, there are many incompatibility issues: renderscript, R.string values, Toasts, ... Solving all these issues is nearly a rewrite of the entire Preview class, especially considering the renderscript stuff.
I'm guessing in the past this worked pretty well but isn't given much attention.
Is there any place that I'm missing wherea prepacked library is served, or are there any plans to improve the library support?