[HELP] LG L FINO Camera Hangs on taking still image and jpeg is not saved - LG L Fino Questions & Answers

Hello,
I am trying to port CyanogenMod 12.1 to LG L Fino (Qualcomm msm8610). The project has its own thread on xda forums: http://forum.xda-developers.com/android/development/rom-cyanogenmod-12-1-lg-l-fino-t3305625
I am in the process of getting the cameras to work. I am using some prebuilt libraries and binaries from the stock android kitkat rom:
mm_qcamera_daemon
libmmcamera_interface
libmmjpeg_interface
libqomx_core
libqomx_jpegnec/liqomx_jpegdec
liboemcamera
libmmqjpeg_codec
libjpegdhw/libjpegehw
all the chromatix/mmcamera2/mmcamera/morpho libraries
I am able to record video using both cameras and take snapshots using the front camera. The rear camera (some models have the sony imx219 sensor and some the hynix hi841 sensor) can only take snapshots of sizes 320x240 and 320x480. On bigger sizes, the camera preview hangs and the jpeg is not saved. Also, after restarting the camera app, the app cannot connect to the camera. This is the logcat (using the hi841 sensor, highest image resolution):
http://pastebin.com/PpfBKLPx
The mmjpeg_inf seems to never complete the task of encoding the jpeg image(I can provide a log of the process for the front camera if needed), and the line
Code:
"E/mm-camera( 409): select_linear_table: lux = 2, aec_ratio : 1.000000 :: awb_ratio : 0.000000"
keeps repeating in the android log forever, until the device is restarted.
What am I missing here?
Thank you very much in advance

Related

[Q] Any chance to get raw Bayer or at least non-denoised pictures?

Hi,
After briefly checking available camera parameters of the LG G2 (stock), I found this:
picture-format-values=jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp
So I've started to work on a small app that will get unprocessed images to process them later on. But I've faced the following issues:
None of the eight bayer modes give me any callbacks for "PictureCallback raw" and "PictureCallback jpeg".
Is there any chance to get the raw image from this device's camera? With root? Different rom / kernel?
In addition the camera's images are extremely blurred due to aggressive denoise. Since I prefer to clean the noise in photoshop later on, I would like to disable the denoise filter. Unfortunately, params.set("denoise", "denoise-off") does nothing...
Is there a way to disable it?
Thank! :fingers-crossed:
Questions go in Q and A, not General - http://forum.xda-developers.com/showthread.php?t=2443934
Sorry... Now it is there.
How do I delete this thread?

[GUIDE] Workaround(s) for taking RAW Photos on Sultanxda's CAF Rom

Intro:
As many of us, (myself included), we already knew that @Sultanxda said that his ROM and Camera HAL he developed on it, doesn't support RAW picturing. Months ago, I discovered a way to get ride into it, and manage to taking RAW photos. I'm not claiming I've developed by myself, I just found it as curious I'm. As I didn't see any post or thread informing about this, I decided to start this one to discuss about it. So, let start.
Requisites:
Obvious thing, you have to root, unlock, blah blah and install the pertinent ROM from the Sultanxda's thread. It works on all CM 12.1 builds. I haven't tested it on OxygenOS 1.0.0, OxygenOS 2.1.4, or Sultan's CM 13. Try and let me know.
***ANY SUGGESTIONS OR INFO ARE VERY WELCOME, AS I SAID, I'M NOT A DEVELOPER - I'M JUST SHARING IN SOMEONE DON'T KNOW ABOUT THIS***
Update! March 28th, 2016
Now you can test and use the CM12.1 Sultanxda's Snapdragon Camera, merged with the features I will detail below in the post. The user @gwindlord, sent me this incredible app. You can try it out flashing this zip.
Also, I've just realized that, this is a DNG photo tutorial! Because, the .raw file generated is pretty obsolete in the SnapCam. And the newer Bacon Camera app, doens't generate a .raw file. It is just a .dng with a .jpeg preview file. FreeDCam, doens't generate any .jpeg or .raw, that's why you can't edit these files on Snapseed.
Steps:
1.- You have to install these two apps.
SnapCam 0.6 by @fgnm - http://forum.xda-developers.com/oneplus-one/themes-apps/app-snapdragon-camera-mod-t3210978
Snapseed by Google- https://play.google.com/store/apps/details?id=com.niksoftware.snapseed
2.- Before you open the SnapCam, make sure that the Snapdragon Camera that comes with the ROM, is already closed. When you open it, change the picture resolution to 13 MP (I guess theres a bug that makes appear a 21.5 MP resolution, maybe due the app was build to work entirely with the original CM Camera HAL).
3.- Then, go to Settings > More Settings
4.- Uncheck the Zero Shutter Lag option, and swipe down to find "Select Picture Format" option. Tap on it.
5.- Now, I'll try to explain the options that appears there, as far as I know due the results I got before;
JPEG - Normal .jpeg picture, as any camera does. Duh.
YUV422SP - This seems to be a Generic RAW codec, the camera app will crash after taking a picture, and just a .dng file will be dumped.
BayerQ10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a minor warm color temperature. *RECOMMENDED*
BayerM10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a minor warm color temperature, BUT, with a few last pixels on the right side, corrupted.
BayerIQ10RGGB - Qualcomm codec. - A pure RAW file will be dumped, with a highly green tint quality.
Select the one as you desire.
6.- Make sure that the "Save DNG raw" option is checked. If not, it will not work. (Dunno why).
7.- Take any photo. The picture will take around 5 secs to process, have a still hand!
8.- Go to the gallery app (stock one recommended), and there will be a new "raw" folder on it. All RAW photos taken will appear there. No one will have a preview, but you can read a few metadata info on the details.
9.- Now, go to the Snapseed app and open a pic normally. Select any of these pictures with no preview on it. You will have to guide using the date was taken.
10.- If everything goes right, the RAW editing welcome splash screen should appears. Pass over it, and you'll see the taken photo.
11.- Make the adjustments that you desire (you can manipulate it a lot, the quality is incredible). And then, save the picture. A progress bar should appear on the notification panel.
12.- When if finished, voilá! A processed .jpeg file will appear on you gallery. It's done!
Alternative Workarounds:
- Using the FreeDCam app by @troopii - https://play.google.com/store/apps/details?id=troop.com.freedcam
With this app, beside it can get all parameters directly from the camera driver, there's a way to take pictures in .dng format. No RAW will be generated, so you will not be able to edit it on Snapseed. The colors on this one will be totally natural and untouched, as well as exposure, contrast and sharpness.
- Using the Bacon Camera app by @fgnm (Paid app!) - https://play.google.com/store/apps/details?id=com.fgnm.baconcamera
As it is based on his deprecated SnapCam app, this app have the same method to work. But, the behaviour seems to be diferent. In case you use the BayerM10RGGB, a weird corruped picture will be dumped. I recommend the BayerQ10RGGB codec again, the result will be different; the white balance will appears 'cold' in this case, and the photo will have the normal resolution of 4208x3120. The main problem is, all pictures will be in potrait mode, no matters how you rotate the device.
Bugs - Curiosities:
I've noticed a few weird thing that I can't find an explanation, but well;
Pictures dumped will have a weird resolution; 4212x3082.
There are a few manual modes you can't use on this, like as; sharpness, contrast, saturation, and white balance.
Using the FreeDCam you can take .dng pictures using the front camera.
The .raw file is undecodable, but the .dng one is not. If you use RawTherapee for Windows, you may get able to edit your files even more.
The RAW file need the .dng one to work and viceversa on Snapseed.
Thanks to:
I want to give a lot of thanks to Sultanxda for his incredible ROM and Camera HAL, to fgnm; to develop an exclusive camera app designed for the OnePlus. And now also to gwindlord, to merge these functions into the original CM12.1's Snapdragon Camera.
Conclusion:
I remember I saw a post of Sultan saying that he got a kinda RAW picturing while he was developing his HAL, but it was undecodable. I really love this partial funtion, because I found the camera of the OPO a very good tool. And I hope that this tutotial work for all of you, or at least find it useful. I'm not have a technical knowledge of how this works, but it works. So, let's give it a try.
Good luck for everyone, and regards!
Interesting! Since Sultanxda's camera HAL was developed from the Oxygen OS's one, I wonder if this method also works on Oxygen OS? Maybe more people can try and report
FreeDCam has issues focusing on Sultanxda latest stable 6.0 and SnapCam 0.6 force closes when I tried to use it though
firenxe said:
FreeDCam has issues focusing on Sultanxda latest stable 6.0 and SnapCam 0.6 force closes when I tried to use it though
Click to expand...
Click to collapse
I had not any focus problems con FreeDCam. SnapCam 0.6 might not work on MM roms.
I'm using the latest sultan MM rom from 18/04 and can confirm that it is possible to save dng files with FreeDCam!
I didn't flashed any of the zip files or anything else.
The exposure of the photos is not correct. Everything is too bright, but I can correct that by "underexposing" in RAW postproduction.
firenxe said:
Interesting! Since Sultanxda's camera HAL was developed from the Oxygen OS's one, I wonder if this method also works on Oxygen OS? Maybe more people can try and report
Click to expand...
Click to collapse
Sultans hal was picked from caf and not oxygen os. He is using camera libraries from oxygen os. This is sth different.
Sent from my A0001 using XDA-Developers mobile app
With sultans MM rom snapseed can't see the dngs from the FreeDcam folder but you can share them into the app. A bit awkward.
While Adobe's Lightroom app does view and edit them nicely!
Sent from my A0001 using XDA-Developers mobile app

Coolpad cool 1 dual digital image stabilization for camera

Cool 1 dual camera supports digital image stabilization
To start digital image stabilization
Download ::::. FreeDcam
Just enable digital enable stabilization and start recording . It will not show any error. If any error is show then also just start recording.
Queries on cool 1 camera..
Hey,
Though cool 1 dual is pretty old, still I recently purchased 1 3gb/32gb. But I've some quaries on the camera..i've upgraded err downgraded to ota supported 5.8.17s eui .. can u pls tell me
1. Does cool 1 supports burst shot?(my old le1s shoots faster than cool 1 though le1 has bad camera)
2. Does it take a few seconds to save an image after clicking(for me its showing: Dual camera improving image effect.
3. With HDR on there is considerable lag in clicking a pic and the shutter sound also it shows processing for 1.5-2 sec..and sometime the result is blurry.
I'm sceptical is it me or everyone has the same issue.

best camera app? [nougat]

Which camera apps are people using? Curious to also know what the latest version of Google Camera is that you found can work (fully) with our phone?
I managed to get 3.2 working (only 720p recording though).
Any recommendations are highly appreciated.
Hi. I'm using Google Camera 2.5.052
https://www.apkmirror.com/apk/google-inc/camera/camera-2-5-052-release/
latest fully working camera apk for nexus 4 Google Camera 2.7.008 (this version in apkmirror) panaroma and photo sphere and also so is working
if you don't want google camera maybe you like camera mx. camera mx is fully working too. (latest version in google play )
xda-dvlprs said:
latest fully working camera apk for nexus 4 Google Camera 2.7.008 (this version in apkmirror) panaroma and photo sphere and also so is working
if you don't want google camera maybe you like camera fx. camera fx is fully working too. (latest version in google play )
Click to expand...
Click to collapse
I have been testing out Camera zoom FX, it seems to have all the features that the N4 can use, but i don't like the way it handles HDR.
The thing is that Google Camera (at least the 3.2 version i have) is the quickest to open (<3 sec), which is something I care about.
Open Camera is also ok, while "perfectly clear" is complete **** (which i was very surprised about).
camera mx
sorry, maybe you try camera mx, I think is so good.
HubrisRev5 said:
I have been testing out Camera zoom FX, it seems to have all the features that the N4 can use, but i don't like the way it handles HDR.
The thing is that Google Camera (at least the 3.2 version i have) is the quickest to open (<3 sec), which is something I care about.
Open Camera is also ok, while "perfectly clear" is complete **** (which i was very surprised about).
Click to expand...
Click to collapse
Does Nexus 4 support Camera 2 API to use HDR+? I doubt it but I ask just to be sure.
Stuart0610 said:
Does Nexus 4 support Camera 2 API to use HDR+? I doubt it but I ask just to be sure.
Click to expand...
Click to collapse
I never found a complete answer for this, but what i understood is that N4 does not go beyond LEGACY level for Camera 2 API. (other options being LIMITED and FULL).
This may be due to firmware issues, sensor limitation, or DSP/ISP.
So, max I think devs can do is make an app install on the N4 but none of the "extra" features will work (like manual controls, RAW images).
I did want to mention that there are apps out there that seem to "reproduce" some of the features of more modern cameras.
For example burst mode, or some exposure settings, even ISO. (e.g., Camera FV-5).
This is mainly why I asked this question here, to find out if there is a full feature packed app out there that N4 users prefer. Since most of these camera apps might have more features than the stock google cam one but the end results are crap...
Google Camera 4.1.006 seems to work fine if you have a ROM running 6.0+ (I think). I have encountered a few bugs though.
Best two camera APK
take spherical 360 panoramic photo with any android phone
You just have to install : Specific version of HTC Camera on your phone
You can see the explanation here:
i can't post youtube link cause i'm new users, so search on youtube with this title:
How to take spherical 360 panoramic photo with any android phone
Ghuria Channel
and the apk URL under the video
-----------------------------------------------------------------------------------------------------------
take portrait mode photo ( blur / bokeh background ) on any android phone
You just have to install : Specific version of Google Camera Apk on your phone
You can see the explanation here:
i Can't post youtube link cause i'm new users, so search on youtube with this title:
How to take portrait mode photo ( blur / bokeh background ) on any android phone
Ghuria Channel
and you'll find the apk URL under the video
I use Cameringo
footej camera
Stock camera app from LineageOS 15.1, works for me.
Latest Google Camera working on LineageOS 15.1 Android Pie
The Nexus 4 is a ARM device (arm-v7a). I tested Google Camera APKs from APKMirror on Nexus 4 running LineageOS 15.1 Android Pie. I had to manually uninstall the app between versions, otherwise the other versions refused to install.
Google Camera 4.2.035 doesn't work. Force closes on start up.
Google Camera 4.2.022 doesn't work. Force closes on start up.
Google Camera 4.1.006 works. Video @ 1080 causes app to crash. To work around this, go to settings and change video resolution to 720p.
Google Camera 3.2.045 works. To get past the tutorial, change to selfie camera. Video @ 1080 causes app to crash. To work around this, go to settings and change video resolution to 720p.
Overall v4.1.006 is the latest version that works on the Nexus 4.

[DEV][NEED HELP] Wrong raw pictures with s5k3l8 back sensor

As you may know, our phone is capable of taking picture in raw format. Unfortunately, this is a non-official feature and even worse xiaomi uses three different sensors for the same device (sony, samsung, omnivision).
While for some people (sony and omnivision?) this feature may be working, this isn't the case with samsung sensor. Raw pictures are extremely desaturated and overexposed.
I don't know if this is caused by a bug in the software stack, or cheap material used for the sensor itself. Obviously raw pictures need some post-processing, but I have a Canon that takes nearly-perfect raw pictures even with 0 elaboration.
Since i know a bit of java/c/c++, I was thinking to write patch in order to fix this behavior; but I never worked in such a large project like the android source code and I don't know where to start. I am aware that the camera stack is composed at least by a kernel driver and an HAL, but in both of these there are bilion of strange function and I'm unable to find an entry point.
Some more experienced developer is interested in this project? These are some photo samples:
imgur. com/a/SxhPGYm (raw)
imgur. com/a/ozxOamG (camera jpeg)
(fix the link if you want, xda says I can't before 10 post)

Categories

Resources