FORUMS
Remove All Ads from XDA

[CLOSED] [PORT] [v1.2] OxygenOS 3.2.0 Camera for OP3

714 posts
Thanks Meter: 778
 
By ghbuur, Senior Member on 29th June 2016, 10:32 AM
Post Reply Email Thread
14th July 2016, 07:35 PM |#101  
AcmE85's Avatar
Senior Member
Thanks Meter: 3,683
 
More
I think I forgot this file. Going into system/bin
Attached Files
File Type: zip system-bin mm-qcamera-daemon.zip - [Click for QR Code] (13.8 KB, 24 views)
The Following User Says Thank You to AcmE85 For This Useful Post: [ View ] Gift AcmE85 Ad-Free
16th July 2016, 06:34 AM |#102  
Senior Member
Thanks Meter: 266
 
More
The last addition seems to make a little difference: Now I am able to use the manuel mode. I have to change ISO and exposure together and then I get a non-black picture.

There must be something missing as I see in the logs a lot errors for lacking support of hardware sensors and a Tap on the screen gives still a FC.

Here ist the current log (Fresh installed as usal, made some pics (normal, hd, hdr, manual mode working and at last the tap on the screen with FC).

EDIT: So it seems that all errors are stick to the same root: Some hardware support do not work correctly. If I look at the FC in the log is see:
Code:
07-16 06:19:43.887 E/AndroidRuntime( 7049): java.lang.IllegalArgumentException: Too many AE regions

07-16 06:19:43.887 E/AndroidRuntime( 7049): 	at com.oneplus.camera.CameraImpl.setAERegionsProp(CameraImpl.java:2623)

07-16 06:19:43.887 E/AndroidRuntime( 7049): 	at com.oneplus.camera.CameraImpl.set(CameraImpl.java:2529)

07-16 06:19:43.887 E/AndroidRuntime( 7049): 	at com.oneplus.camera.ExposureControllerImpl.setAERegionsProp(ExposureControllerImpl.java:279)
I found some infos on this site about it: https://android.googlesource.com/pla...esultTest.java :

Quote:

"Capture result contains AE regions but aeMaxRegions is 0",
...
"Capture result contains AWB regions but awbMaxRegions is 0",
...
"Capture result contains AF regions but afMaxRegions is 0",

So "AE" should be "Auto Exposure", "AWB" == "Auto White Balance" and "AF" == "Auto Focus".

Some optimization libs are missing:
Code:
07-16 06:18:35.666 E/ANDR-PERF-RESOURCEQS(  835): Failed to apply optimization [4, 0]
And at last some missing hardware support:
Code:
07-16 06:18:35.781 E/mm-camera(  570): <SENSOR><ERROR> sensor_get_cur_chromatix_name: 2692: Sensor name:imx298, lens id:0

07-16 06:18:35.782 E/mm-camera(  570): <SENSOR><ERROR> sensor_get_cur_chromatix_name_for_type: 2651: chromatix for res_idx = 0 special_mode_mask = 16777216     module = 4 chromatix_type = 0 is NULL

07-16 06:18:35.782 E/mm-camera(  570): <IFACE ><ERROR> iface_util_set_dis_enable_flag: 4769: iface_util_set_dis_enable_flag:4769 DIS enable flag = 0

07-16 06:18:35.782 E/mm-camera(  570): <IFACE ><ERROR> iface_util_set_hfr: 5010: iface_util_set_hfr: can't find hw stream, only save hfr mode
Thats what I found.
Attached Files
File Type: zip logcat.zip - [Click for QR Code] (138.8 KB, 6 views)
The Following 4 Users Say Thank You to hurray For This Useful Post: [ View ] Gift hurray Ad-Free
16th July 2016, 08:49 AM |#103  
ghbuur's Avatar
OP Senior Member
Thanks Meter: 778
 
Donate to Me
More
new test zip, backup and no guarantee as usual

https://www.dropbox.com/s/n8u7wv1bnf...l%204.zip?dl=0
The Following 7 Users Say Thank You to ghbuur For This Useful Post: [ View ] Gift ghbuur Ad-Free
16th July 2016, 10:42 AM |#104  
AcmE85's Avatar
Senior Member
Thanks Meter: 3,683
 
More
@ghbuur
Maybe @fgnm can give some advice on the logcat as he is known to be quite advanced on bacon with his own camera app
and managed to fix manual focus back then on the stock camera hal. Although it's probably hit and miss without him owning the device.


@hurray does raw and panorama work?
So basically the biggest issue right now is tap to focus?
16th July 2016, 11:25 AM |#105  
Senior Member
Thanks Meter: 266
 
More
No, Panorama does not work: the cam starts but hangs.
I didn't test the raw mode (but next time I think about it)

@ghbuur: I will test the new version this evening

Edit: yes, the fc at tap to screen is the most annoying thing. But to know that there were missing filters and not the full hardware support are also something to find the root cause.
The Following User Says Thank You to hurray For This Useful Post: [ View ] Gift hurray Ad-Free
17th July 2016, 09:32 AM |#106  
Senior Member
Thanks Meter: 266
 
More
So today I tested the new v4. (Fresh install as usal...)

It looks a lot better in the log
Code:
07-17 09:15:43.288 V/CameraImpl( 6572): BaseCamera() - Camera hardwareLevel: FULL
But wa are not finished. RAW Shots will be not saved (the photo was taken but no file on the sdcard), Panorama doesn't work (Camera opens but get stucked) and finally the "Tap to screen"-FC is present.

I appended the new log so we are able to get a deeper look (Tests: Normal, HD, HDR, manual, Raw, Panorama (with manual stopping the camera app), reopen camera app, Tap to screen)

EDIT: I see again the "imx298" message:
Code:
07-17 09:16:45.556 E/mm-camera(  570): <SENSOR><ERROR> sensor_get_cur_chromatix_name: 2692: Sensor name:imx298, lens id:0

07-17 09:16:45.556 E/mm-camera(  570): <SENSOR><ERROR> sensor_get_cur_chromatix_name_for_type: 2651: chromatix for res_idx = 0 special_mode_mask = 134217728     module = 4 chromatix_type = 0 is NULL

07-17 09:16:45.556 E/mm-camera(  570): <IFACE ><ERROR> iface_util_set_hfr: 5010: iface_util_set_hfr: can't find hw stream, only save hfr mode
Attached Files
File Type: zip logcat.zip - [Click for QR Code] (156.1 KB, 6 views)
The Following 9 Users Say Thank You to hurray For This Useful Post: [ View ] Gift hurray Ad-Free
17th July 2016, 08:56 PM |#107  
ghbuur's Avatar
OP Senior Member
Thanks Meter: 778
 
Donate to Me
More
thx to your help i made two new test zips. start with 5 (sensor + panorama libs) and if that works continue with 6 (all imx libs to try)..

https://www.dropbox.com/s/dw1g8v3y6v...l%205.zip?dl=0

https://www.dropbox.com/s/47gjq3e74z...l%206.zip?dl=0
The Following 9 Users Say Thank You to ghbuur For This Useful Post: [ View ] Gift ghbuur Ad-Free
18th July 2016, 07:39 AM |#108  
Senior Member
Thanks Meter: 266
 
More
Okay, tests are done.
This time time the raw pictures are saved They have the extension ".dng" and are about 31 MBytes in size.

So only not working till now is: Panorama (camera gets still stuck and must be closed manually) and the "Tap to screen-FC".

A quick search through the logs (theres a lot more to see in it) tells me that there are some errors but I can't say if these are important:

Code:
V5:
07-18 07:21:10.954 E/WVMExtractor( 6765): Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found

07-18 07:21:11.064 E/OPPictureProcessService( 6826): openOnePlusServiceCamera() - Failed to open op camera service
07-18 07:21:11.064 E/OPPictureProcessService( 6826): java.lang.NoSuchMethodException: openOPService []
Code:
V6:
07-18 07:27:30.950 E/mm-camera(  572): <SENSOR><ERROR> sensor_get_cur_chromatix_name: 2692: Sensor name:imx298, lens id:0
07-18 07:27:30.950 E/mm-camera(  572): <SENSOR><ERROR> sensor_get_cur_chromatix_name_for_type: 2651: chromatix for res_idx = 0 special_mode_mask = 0     module = 4 chromatix_type = 0 is NULL
07-18 07:27:30.951 E/mm-camera(  572): <IFACE ><ERROR> iface_util_set_dis_enable_flag: 4769: iface_util_set_dis_enable_flag:4769 DIS enable flag = 0
07-18 07:27:30.951 E/mm-camera(  572): <IFACE ><ERROR> iface_util_set_hfr: 5010: iface_util_set_hfr: can't find hw stream, only save hfr mode
Sorry for beeing a little bit short but I am short in time. So here are the logfiles from v5 and v6
Attached Files
File Type: zip logcat_v5.zip - [Click for QR Code] (182.0 KB, 2 views)
File Type: zip logcat_v6.zip - [Click for QR Code] (140.6 KB, 6 views)
The Following 8 Users Say Thank You to hurray For This Useful Post: [ View ] Gift hurray Ad-Free
18th July 2016, 09:07 AM |#109  
Senior Member
Flag New Delhi
Thanks Meter: 127
 
More
It seems we are almost there!
18th July 2016, 06:21 PM |#110  
Senior Member
Thanks Meter: 124
 
More
You guys are awesome, keep it up!!
The Following User Says Thank You to js931 For This Useful Post: [ View ] Gift js931 Ad-Free
18th July 2016, 08:42 PM |#111  
Signor Rossi's Avatar
Senior Member
Thanks Meter: 73
 
More
Not good at reading logs.

V6 logs. Opening cam click anywhere, crash, stop log

http://pastebin.com/WWuwzhRu

Hope that helps?


Gesendet von meinem OnePlus 3
The Following User Says Thank You to Signor Rossi For This Useful Post: [ View ] Gift Signor Rossi Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes