yashsingh1/xdaforums huggingface dataset:
[One (M9) General] defcomg:
you somehow have to strip the opcode2 list in order for it to work like that but using freedcam you can bypass that.
[One (M9) General] BLEK0TA:
Why isn't this thread in android development thread?

Odoslané z SM-G900F pomocou Tapatalku
[One (M9) General] onesin:
Confirmed last update works on base 3.38.631.2.
[One (M9) General] sausje85:
After installing this mod, I've now noticed that the front cam sometimes has massive delays (and yes, live makeup is off). The end file does seem to be ok (at least the few times I've checked), but it's very noticeable when recording (and thus bothering me :P ).

Any way to revert back? Without reinstalling the whole rom if possible?

Btw, is this normal? Do others have this too?
[One (M9) General] bobytsekov:
I don't have such problem with front cam. But... I rarely use it :p

A way to revert back is to flash again HTCOneM9_CameraMods_v2.00.zip and select Stock libs in Aroma.
[One (M9) General] hamdir:
just thought you guys would like to see the massive strides HTC went through with the A9 camera and cousin devices, few months ago I moved to the OP2 because i had to bite the bullet and admit that I need a better more functional camera indoor, the OP2 was one of the best phone cameras last year but man Oxygen OS is hilariously slow, anyway I found my remedy: the M9s which is basically the M9 with MTK X10, 2GB RAM, 16GB and the A9 camera combo with OIS, at a much more attractive price

I will let the results speak for themselves if anyone needs some RAW files for testing let me know

remember those are completely on HTC default settings, a miracle :)

HTC totally nailed the processing on their latest mid range camera hardware, we can imagine how well they will do on the M10
[One (M9) General] hamdir:
more M9s samples, sorry for the OT but the improvement on HTC stock settings are unreal
[One (M9) General] defcomg:
seems like the secret is ETTR Exposure
[One (M9) General] skodann:
Can you do some another magic with the libs from this devices?:)
[One (M9) General] krogoth:
Is A9 camera port availible anywhere to download? Can't find it anywhere else than venom hub...
[One (M9) General] aleranol:
Cant open camera app

Guys i have a problem with this mod. Just got my m9 after 3 years of note2 and this is really different kind of android. At least i have rooted and unlocked my m9 but this camera mod have issues.(first modded app try and i failed)

I flashed this with/out wipes but i cant open my camera since my first flash. I dont have any backup and there s no fine rom for me to change cause used note2 for 3 years with crazy mods as experienced guys understand, support for this device is really poor. And im afraid of many thing. Just doin basic stuff.

If im gonna wrap up my problem:

I mustnt flash any rom

I cant open camera since first modded camera flash

Unlocked and rooted.

Android mm installed.

I need camera any ideas?

Edit: also other camera apps too stoppin. Well libs have gone crazy. Can i found original 6.0 libs for camera?
[One (M9) General] skodann:
Are you using a stock rom? If yes you have to flash a custom rom. This modis for deodexed camera. If you are on a stock rom, you have an odexed camera.
[One (M9) General] aleranol:
Right im on stock rom. And can u help me with a nice clean rom? (I mean stable and not stupid stuff :)) i wanna use stock like sense and other stuff but i should change a custom kernel values. If there is something(rom kernel) pls let me know.
[One (M9) General] skodann:
I personally can recommend you MaximusHd rom. You can find here http://xdaforums.com/one-m9/development/rom-maximushd-1-0-0-android-5-0-2-sense-t3076909

It is a rom without any modifications from stock, just optimized for speed and battery life. It is my favorite rom and I use it from the release date till now witout any problem at all.

---------- Post added at 10:59 AM ---------- Previous post was at 10:48 AM ----------

@hamdir : can you please extract the camera libs from M9s and upload them somewhere for testing on M9? Or those libs will not work on M9? Thank you.
[One (M9) General] hamdir:
its better for someone to get them from A9, the M9s is MTK and wouldnt work
[One (M9) General] skodann:
Ok, I understand.
[One (M9) General] ampedsilence:
Would this mod work with the ATT m9 that has a firmware of 2.11.502.18?
[One (M9) General] ziaulh.ch:
I don't see any difference in NR with the lib posted here..
[One (M9) General] LLegion:
so many issues with camera, im using mod works fine
[One (M9) General] LLegion:
Hi pals! wish you have this weekend AMAZING!!!
[MENTION=1144067]hamdir[/MENTION] and [MENTION=377973]defcomg[/MENTION] I have a couple of silly questions, hope not bothering you guys...

1- I have the "HTCOneM9_CameraMods_v2.00" zip flasheable zip file, is this the lastes, most updated one? Ive seen some guys posting to have version 3, but Im not able to find it anywhere on this topic and replies.

Can you please, if possible, provide link for V3?

2- I have also the "blackVenoM9_Camera&Gallery_A9_port_ivicask" (only version i guess), so my real question is....on stock or Custom, which mod is better, i mean for your personal use and personal recommendation, should I use Camera Mods v2 (or v3 if existing) or the BalckVenom A9 port?

I feel really sorry for these silly questions I guess you are the only ones capable of answering.

Thanks in advanced Bros!!
[One (M9) General] Mostafa Wael:
AFAIK v2.00 is the latest one
[One (M9) General] wick0704:
I update to A9 port Camera app yesterday and flash V2 mod. It's seems working fine together.
[One (M9) General] ampedsilence:
Was this for me?
[One (M9) General] skodann:
Can you please provide a download link for A9 camera port and tell me the version of rom that you are using? Thank you
[One (M9) General] krogoth:
Maybe we should look at HTC 10 libs?
[One (M9) General] ziaulh.ch:
I was on Viper 4.3.0.

v2 with nr http://xdaforums.com/showpost.php?p=65075578&postcount=434

v3 http://xdaforums.com/showpost.php?p=65009999&postcount=430
[One (M9) General] skodann:
Thank you
[One (M9) General] bobytsekov:
This "v2" IS final version which include this.

v2, v3... are different test libs, they are not consecutive versions

the final version as flashable zip is here

;)
[One (M9) General] LLegion:
man thanks for the clarification

---------- Post added at 10:15 AM ---------- Previous post was at 10:14 AM ----------

man thanks for the clarificaton XD
[One (M9) General] fmedrano1977:
For Marshmallow?

HTC One M9 on T-Mobile's LTE Network
[One (M9) General] bobytsekov:
Yes, for 3.x firmware.
[One (M9) General] miatawnt2b:
Hey Guys,

Will this work with CM13 based roms?
[One (M9) General] LLegion:
Man just to know...in the aroma installer flasheable ZIP, what is the recommendation, EIS on or off??? and is it for pictures or videoz???
[One (M9) General] bobytsekov:
[MENTION=5024297]LLegion[/MENTION]

Look at this:

you can try and decide for yourself

and I suppose it is for both - pictures and videos

:)
[One (M9) General] SmashTime1904:
I saw someone say they put this mod over the A9.zip - makes for really pics that get a lot of detail bit also gets a lot of noise(mainly black surfaces). Trying to see how this compares to A9 and M10 as those two don't have a lot of feedback.
[One (M9) General] Matt Westfield:
Faster Shuttertimes possible?

Has anybody an idea how to get faster shuttertimes in automatic mode?

Maybe by editing one of the libs?

I have installed the denoise-mod and i am absolutely happy with it!!!! Thanks again to the developer!!! The camera is nearly perfect now for me.

Since i can go up to Iso 800 without too much noise, to my opinion the shuttertimes in low light conditions are too slow.

I have a problem with shaky hands.

For instance i would get 1/8 sec shutter at iso 200 with iso max set to 800.

At this point 1/15 sec shutter at iso 400 would be much better for me, because i can't hold quiet 1/8 sec.

Okay, i can do that in manual mode, but i'd like to have it more comfortable in automatic mode.

I am greatful for any suggestions.
[One (M9) General] defcomg:
It's editable in the chromatix files they contain exposure table the alternative is to increase preview fps in libmmcamera_t4ka7.so probably easier to just set it manually
[One (M9) General] Matt Westfield:
thanx a lot. where are the files located? just to have a look
[One (M9) General] defcomg:
/system/vendor/lib/
[One (M9) General] defcomg:
Double post my bad
[One (M9) General] Golv:
+1

Thanks in advance! [MENTION=456666]starbase64[/MENTION] [MENTION=377973]defcomg[/MENTION] [MENTION=1144067]hamdir[/MENTION] [MENTION=1779752]m4jkee[/MENTION] [MENTION=2401586]jsaxon2[/MENTION]
[One (M9) General] Golv:
Need your help!

[MENTION=377973]defcomg[/MENTION] [MENTION=456666]starbase64[/MENTION] [MENTION=1144067]hamdir[/MENTION]

I need your help please if possible...

I have installed port rom ICE (InsertCoin) from HTC10 to our M9.

All apps works fine except Camera2 applications from HTC10 in RAW Mode (in other modes Camera2 works flawlessly).

App closes with an error after starting in RAW Mode. It can be opened only after clearing app cache.

But port Camera2 applications from HTC A9 operates in RAW Mode perfectly.

Have I any chance to run Camera2 from HTC10 in RAW Mode? What can we do in this situation, what libs can be replaced for Camera2?

Or Camera2 application from HTC10 need kernel support and some specific libs for camera from HTC10?

Logcat after FC, Camera2 app from HTC10 and Freedcam CameraParameters - attached.

Thanks in advance!

com.htc.camera2_8.10.763406-866031762.rar

logcat_after_Camera2_HTC10_RAW_Mode_crash.rar
[One (M9) General] CommanderLake:
How do I edit the .so files?
[One (M9) General] Golv:
[MENTION=377973]defcomg[/MENTION]

I was able to run Camera2 from HTC10 with API2 support on my HTC One M9.

I added line in build.prop:

persist.camera.HAL3.enabled=1

But after some time app closes with FC.

FreeDCam also able to run in API:Camera2 but there are no picture and no save settings.

I think that is not enough .so libraries from HTC10 in /system/vendor/lib or something else ...

Logcat after run FreeDCam and after FC HTC10 Camera2 app - attached.

logcat_after_crash_HTC10_Camera-in-RAW_Mode.txt

logcat_after_run_FreeDCam.txt

Crash log from /DCIM/FreeDcam/CRASH - HTC One M9_2016-07-21_06.22.21.txt
[One (M9) General] lateral18:
I've recently ,upgrade the phone to MM , this MOD rocks just as before , thanks ,

Maximum HD7.1 plus EX kernel and this one happy Phone .

I'm going to pair it up with the Aukey lens see how that does
[One (M9) General] Spike97:
Does anybody has a copy of stock files?
[One (M9) General] piterdemon:
Lol reflash rom

Wysłane z mojego HTC One M9 przy użyciu Tapatalka
[One (M9) General] defcomg:
try look for the files you need here https://github.com/TheMuppets/proprietary_vendor_htc/tree/cm-14.1/hima-common/proprietary/vendor/lib
[One (M9) General] Myrmeko:
Can somebody port this to Nougat? (S-ROM)

And the Luma Denoise Mod:

https://xdaforums.com/one-m9/general/camera-tweak-thread-to-make-m9s-camera-t3219828/post63298328
[One (M9) General] defcomg:
My device is out of commission and i'm i need of a new one if you liked my mods and would like to donate to help fund a new device that would be greatly appreciated my pay pal link in signature
[One (M9) General] :
I want this mod for stock nougat :p
[One (M9) General] waspa:
Hi.Is this mod work on ViperRom 6.0 based on Android 7?
[One (M9) General] HappyLC:
Does this work on ICE 6.0.0.0 Android 7?
[One (M9) General] trabadura:
Yes v2.0
[One (M9) General] SGH-i200:
Donate to bring this MOD to Oreo?

If you get a M9 funded, will you supply a MOD for Oreo?

Your name is written in the hall of fame of the OP. This quote should be in your signature, if you want to get the funding! ;)
[One (M9) General] defcomg:
There's a better way where you could probably adjust noise reduction to taste it requires proprietary software from Qualcomm dunno if I should share on xda if only XDA had a private section
[One (M9) General] the Doctor:
This is not allowed on XDA.
[One (M9) General] hamdir:
done, i have attached all the t4ka7 so files to my previous post

[MENTION=377973]defcomg[/MENTION] i've added 1.32 and 1.40 to my previous post, the biggest change HTC made to their algorithm was between 1.32 and 1.40, pre 1.40 the M9 sharpness/denoise was pure disaster with 1.40 they've improved sharpness immensely almost perfecting it however the denoise was sadly left too aggressive, actually its too "fuzzy"

if we can half HTC 's values or quarter....
[One (M9) General] Mostafa Wael:
This thread has gone too technical for me :o

I guess i will leave the big heads to do their work together and wait till the OP gets updated then :)

Good job guys :good:
[One (M9) General] hamdir:
something to keep in mind, using Medium or Small is perfect combo with the Build.prop tweaks, as down-sampling will clean some of the noise ;)

so to recap:

HTC camera app (to reduce the low light noise caused by disabling HW denoise)

Sharpness -1

Max ISO400

Resolution Medium (15MP) or Small (10MP)

build.prop

persist.camera.qcwnr.enabled=0

camera.eis.enable=0
[One (M9) General] defcomg:
More ASF this is a smoothing Filter http://homepages.inf.ed.ac.uk/rbf/HIPR2/log.htm

http://note.sonots.com/SciSoftware/SpatialFilter.html

this is how sharpening is done
[One (M9) General] hamdir:
Just tried the combo with medium this evening when going out, definitely a major improvement, pics are beautifully detailed even if a little noisy
[One (M9) General] Mostafa Wael:
You forgot this line

persist.denoise.process.plates=0

Or shall we abandon using it ?!

Btw i use medium res too, but sharpness bumped up to -0.5 :good:
[One (M9) General] throcker:
ok, I've been through this post for good, read everything to make a point....and I want to ask:

I looked at the post #22 shots.....is a very nice comparison and gives some practical view of what happens with this mod

the last image, the one basically stock with subsampling at 2:1, always looks nicer....no noise, eye candy and sharp enough....

why....everyone is suggesting the A configuration?! with all disabled! I mean....these build.prop mods are disabling improvements! why are you suggesting to do this? because a more raw photo is better to be enhanced later? because having sharpness is better than having noise?
[One (M9) General] hamdir:
Yes exactly a detailed image with some noise is better than a melting water painting especially in low light

The HW denoise is so high that the images feel unnatural and has fuzzy colors

Its a matter of choice in the end

---------- Post added at 07:22 AM ---------- Previous post was at 07:20 AM ----------

Any hope of giving me a hex edited file to try :) ? I am not really experienced in this
[One (M9) General] starbase64:
Hi,

i've made two flashable zips with files from base 2.10.401.1

max exposure time:

base 2.7.x = 4.9 seconds

base 2.10.x = 3 seconds

regards

starbase64
[One (M9) General] Mostafa Wael:
So i flash this zip on corresponding base and it will add all the tweaks ?! Or this is a test zip for long exposure settings ?!

Thanks for your tremendous effort, but i don't know why is it recommended NOT to use this line

[MENTION=1144067]hamdir[/MENTION] ?!
[One (M9) General] starbase64:
[MENTION=5060769]Mostafa Wael[/MENTION]

long exposure only
[One (M9) General] hamdir:
because its doesnt much difference, all the plates are pretty similar anyway

we need better denoise still, so i thought its better to leave it default and whatever is faster
[One (M9) General] starbase64:
Hi,

i've made flashable zips for gain test files.

regards

starbase64
[One (M9) General] m4jkee:
OP UPDATE WILL BE TOMORROW, ON MONDAY! Thank you everyone for discussin :)
[One (M9) General] Ajxx16:
You guys are rock stars, will be following this thread. ?
[One (M9) General] hamdir:
[MENTION=377973]defcomg[/MENTION] I did some tests and the difference is minimal, if any, I still prefer HW denoise disabled

Maybe it's because you pushing the value only applies at high iso and I only shoot at ISO 400
[One (M9) General] defcomg:
Hmm I'll try to turn off the luma part of the Wavelet and leave only color noise reduction
[One (M9) General] hamdir:
That's a good idea although in the default implementation, there is quit a bit of color bleed, still good idea

I also wanted to ask about ABF you said it softens and sharpens in the same time?
[One (M9) General] defcomg:
After looking deeper into this chromatix lib Qualcomm does heavy processing on the image

ABF - Adaptive Bayer Filter

Effect: This seems to smooth then apply sharpening at the demosaic stage when raw is converted into yuv

Chroma and Luma Filters

according to the source code, this adds further blurring.

ASF- smoothing filter and Laplacian filter.

effect blurs and sharpen edges

theres two of the 5x5 and 7x7

Chroma aliasing correction. Basically Moire reduction by blurring

Then last but not least Wavelet noise reduction

which further "smudges details by wait for it blurring".

On My Device i have disabled all these and only left Wavelet Noise Reduction with a little luma nr and heavy chroma nr.

i tried an iso 1600 image in low light with wavelet i was able to retain details in the wall with wavelet enabled.

This is probably why Samsung has always opted for an external isp on their QCOM devices.
[One (M9) General] jsaxon2:
I like the looks of that. Are we able to get those files to try or you have more testing to do?
[One (M9) General] defcomg:
its all stored in snapshot chromatix

you can test the modified lib below
[MENTION=1144067]hamdir[/MENTION]

copied changes i made from my device which i basically got from the nexus 6 and modified a little
[One (M9) General] m4jkee:
Op updated!
[One (M9) General] blueberry60:
I tried long exposure both in manual mod and raw mode as 4.9 second,but camera instantly closes and I couldn't find any photo in gallery.
[One (M9) General] hamdir:
this is what i have been saying, the way Qualcomm is treating these pixels is butchery and they are proud of it!

i am surprised to know that Samsung use their own ISP, also i think Sony relies on their own processing which is highly effective but i am not sure if its HW or SW, HTC used to do this with their imagechip before dropping it on the M9

i will test the file immediately, however i am wondering if i need to test it with the original "libchromatix_t4ka7_snapshot.so" or your modified one from last time
[One (M9) General] Mostafa Wael:
[MENTION=1144067]hamdir[/MENTION]

I saw a previous comment from you saying that you don't shoot with high ISO

Is that due to the awful state of the M9 camera with high ISO? I mean, if we are able to get the camera to extract more details when using high ISO for low light, will it be safe to use ISO 1600 for extremely low light situations?
[One (M9) General] hamdir:
high ISO is always bad for the photo, on any phone, it means either more smudging or more noise

regardlesss the M9 operates pretty well around ISO400, in fact compared to many small sensor phones it can capture very good light in low light with very accurate colors, the problem is that the shutter slows down and fighting motion blur becomes a struggle
[One (M9) General] Mostafa Wael:
I guess motion blur is a reason to rise ISO ;) thanks to the absence of OIS

Anyway, have you given the modified libs a shot ? I am so interested to try it, but since i don't use my camera that much these days, and i need my phone to be stable these days in university, i can't manage to try them :D
[One (M9) General] hamdir:
[MENTION=377973]defcomg[/MENTION]

i tried the NR_test_2 cpp_snapshot with the original snapshot file

everything back to default including sharpness value, build.prop mods removed, only cap ISO per test shot

i know this will sound weird, but i think its working only in one scenario, macro!

i took the same four shots as my previous comparison using auto mode and only the one in which i focus really close to the green toy where i could see difference in denoise, luma noise is there and only colour is denoised

i tried it twice and it gave the same result

check IMAG1814 (your cpp) and IMAG1809 (your cpp) vs IMAG1804 (htc cpp)

https://www.dropbox.com/s/2cnfwhh2cdn5hfw/NR_Test_2.rar?dl=0

the other three comparisons came out with the old denoise

should i try again with your previous modified snapshot?
[One (M9) General] starbase64:
max exposure time on base 2.10.x is 3 seconds
[One (M9) General] LLegion:
ill be reading the whole post to hve my precise comments thanks a lot bros!
[One (M9) General] defcomg:
can you test with freedcam with denoise on and zero shutter lag off then with denoise on and zero shutter lag on .

i think when using HTC camera it does not use the snapshot lib but instead uses the preview if the above test yields different results then it definitely in the preview cpp
[One (M9) General] hamdir:
but did you check my samples? something odd is going on with that close up shot

and can you double check your request? :)
[One (M9) General] defcomg:
sorry i read your post while sleepy, i read it as it didn't work :o i just looked now at the samples and indeed it did work on the close up shot which is strange i think whats happening here it jumping to some other chromatix lib while in auto mode.

probably auto switching to night_cpp let me duplicate the nr configs across all the chromatix libs
[One (M9) General] hamdir:
waw isnt it hard to do, what are you configs doing exactly? general reduction or disabling luma denoise?
[One (M9) General] defcomg:
disabling luma, its basically copy paste lol.

if you do file comparisson between the modified cpp and the original one those changes just copy those them to the same offsets on the other chromatix cpp libs .

by the luma is not completely turned off just set to bare minimum

EDIT.

All these libs have same NR From ISO 50 till ISO 690, ISO 690+ will have the default Noise Reduction of 2.10

[MENTION=1144067]hamdir[/MENTION] incoming ....

Modified snapshot lib for my device using same nr profile as m9

IMG_2015.10.11_15.28.01_hdr_ by defcomk, on Flickr

IMG_2015.10.12_13.47.21 by defcomk, on Flickr

IMG_2015.10.12_13.42.07_hdr_ by defcomk, on Flickr
[One (M9) General] hamdir:
:( i tested it first thing this morning, sadly its still only working on closeups, so weird! i double comfirmed the .so files in my lib folder....

its definitely working on closeups (auto mode) that i can confirm for sure as well

i think the profiles are distributed within cpp_Snapshot

anyway its a headache :) i cant believe they didnt include an outside value to control this mess, maybe we are better off just disabling HW denoise? its not worth all this effort, we will have to redo this process with every new M9 base
[One (M9) General] defcomg:
I Have Mapped all The Wavelet Profiles stored in the CPP file

SW420

SW422

HW420

HW422

The CPP from NR Test 2 i modified HW420 but i stupidly skipped the first profile which is from 1.2 to 1.99 there a switch value to enable will set all the SW ones to 0.

i will copy the modded data from test 2 to a clean lib then overwrite SW420 SW422 and HW422 with the same data as HW420.

as i mentioned HTC has three sets of configs in all these libs the first one i assume is HTC Tuning thats the one im gonna mess with for now if NR still heavy then its a matter of switching between these tuning spec param in build.prop.

Once its working should a new update come we can either just copy the mod cpp into new rom or just load the offset bookmarks
[One (M9) General] defcomg:
NR CPP TEST 4 [MENTION=1144067]hamdir[/MENTION]

inside zip you will find folders named

FIRST SECTION , SECOND Section Third Section

try each set till you see nr change

it should work on first section but added the others to make sure

SECTION Represents Tuning SPEC