Camera hack(OVERCLOCK) I've done on LGOG,GNEX

Crwolv

Senior Member
Mar 28, 2012
1,265
434
0
Metro Detroit
www.reverbnation.com
Directions up in OP . did them now instead of waiting for my pro friends to avoid yucky comments. Just trying to help Cuz hack has helped me especially on my LGOG. it raised max pic size from 5+ megs to 9+ megs on 13 mp and hack does not interfere with photosphere like other camera mods. Only known problem is with one apk in playstore (tested 17 of them) jelly bean camera(brand name not native aosp camera lol) won't work with hack .
 
S

StatusQuo209

Guest
Thanks for posting this! Will try this tonight!

Edit: works awesome thanks!

Sent from my LG-LS970 using xda app-developers app
Did you change the numbers next to the ImageEncoding Quality? mine has 90|80|70|60|50|40 by default..

Or was it a different setting? He only gave us 3 sets of numbers. as you can see, I have 6
 

PartimusPrime

Senior Member
Apr 30, 2012
2,483
2,302
0
San Antonio
www.youtube.com
Did you change the numbers next to the ImageEncoding Quality? mine has 90|80|70|60|50|40 by default..

Or was it a different setting? He only gave us 3 sets of numbers. as you can see, I have 6
This is what the original looked like...

Sent from my LG-LS970 using xda app-developers app
 

Attachments

ThaiDai

Senior Member
May 28, 2011
2,536
2,573
203
Aachen/หนองบัวลำภู
Modifications of entries in the media_profiles.xml can be found a lot when searching (I just did).
And I found an external link describing the parameters a little bit more structured and in detail.
Using values above 100 doesn't seem to make sense (as these values are %).

I'll try this mod now with the following changes from the above link. I didn't change the value of memCap because it is high enough (5 MP camera means 5.000.000 - following the advice above the memCap entry should be more than 2 times the camera resolution, so 20.000.000 is enough).
I set all quality settings to 100%. Let's see what results I get.

But: this definitely only changes the compression of the jpegs. No other changes like different exposure (for snapshots, when changing video parameters like frame rate then it might change).

And: this is not overclocking.

Code:
/system/etc/media_profiles.xml
...
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
...
<ImageEncoding quality="100" />
<ImageEncoding quality="100" />
<ImageEncoding quality="100" />
<ImageDecoding memCap="20000000" />
Will post some impressions later.

But one more question: does this belong to "Android development"?
It simply changing an existing value in a profile.
Should be in the "Apps&Themes" or in "General".
 
  • Like
Reactions: Pfeffernuss

tni.andro

Senior Member
May 30, 2013
173
173
0
I'll try this mod now with the following changes from the above link. I didn't change the value of memCap because it is high enough (5 MP camera means 5.000.000 - following the advice above the memCap entry should be more than 2 times the camera resolution, so 20.000.000 is enough).
memCap doesn't make any difference whatsoever. It's actually a parameter used for the software JPEG decoder, not the encoder (the N7 has a hardware encoder/decoder). It only limits the amount of memory the decoder is allowed to use, if that is exceeded, the decoder uses temporary files (similar to swapping). Nothing to do with quality whatsoever.
I set all quality settings to 100%. Let's see what results I get.
Those levels are for the low/medium/high setting. So using 100% for everything, you just limit your options.

The quality difference between the stock 95% and 100% is absolutely minimal, but you get 50% bigger file. Even tiny amounts of camera shake or different focus have MUCH larger effect.

Conclusion: the stock settings are perfectly fine.
 

Crwolv

Senior Member
Mar 28, 2012
1,265
434
0
Metro Detroit
www.reverbnation.com
Did you change the numbers next to the ImageEncoding Quality? mine has 90|80|70|60|50|40 by default..

Or was it a different setting? He only gave us 3 sets of numbers. as you can see, I have 6
Wrong place. SRGB,OK gonna post pics .was afraid this would happen,I suck at explaining stuff.
See I go to attachments and I go to choose a file and nothing happens. Arggg I'll try in next post
 

Crwolv

Senior Member
Mar 28, 2012
1,265
434
0
Metro Detroit
www.reverbnation.com
N7 browser won't let me post a pic,scroll down file till u see
Image encoding (95)
Image encoding (80)
Image encoding (70)
Memory cap blah blah blah

That's what it look like, not the place where it says 95 80 70. In a row like that,that will do nothing.
And its in 2 different spots,scroll down after u do the first set and do again,that's for video. I'll try to get screen shots up,if your confused cuz I suck at explaining this gtalk(hangouts) me. Motown stations gmail (don't email plz)
 

Crwolv

Senior Member
Mar 28, 2012
1,265
434
0
Metro Detroit
www.reverbnation.com
memCap doesn't make any difference whatsoever. It's actually a parameter used for the software JPEG decoder, not the encoder (the N7 has a hardware encoder/decoder). It only limits the amount of memory the decoder is allowed to usat is exceeded, the decoder uses temporary files (similar to swapping). Nothing to do with quality whatsoever.

Those levels are for the low/medium/high setting. So using 100% for everything, you just limit your options.

The quality difference between the stock 95% and 100% is absolutely minimal, but you get 50% bigger file. Even tiny amounts of camera shake or different focus have MUCH larger effect.

Conclusion: the stock settings are perfectly fine.
Has made a HUGE difference on my log and for many on other devices,does not seem to do as much on my n7 but the difference is noticeable. lgog pic sizes went from 4+ megs to 9+ megs. So u guess ita up to you all weather u do it or not. I did itnon my s4 and daaaaaam . thanx for tech info though,its much appreciated. Stay around and help cuz you know more than many many Devs and even LG. Not being a smarty I'm serious,they contacted me on how I improved there camera. So please help out, brains like you are needed here. Thank you again,seriously
 

Crwolv

Senior Member
Mar 28, 2012
1,265
434
0
Metro Detroit
www.reverbnation.com
Modifications of entries in the media_profiles.xml can be found a lot when searching (I just did).
And I found an external link describing the parameters a little bit more structured and in detail.
Using values above 100 doesn't seem to make sense (as these values are %).

I'll try this mod now with the following changes from the above link. I didn't change the value of memCap because it is high enough (5 MP camera means 5.000.000 - following the advice above the memCap entry should be more than 2 times the camera resolution, so 20.000.000 is enough).
I set all quality settings to 100%. Let's see what results I get.

But: this definitely only changes the compression of the jpegs. No other changes like different exposure (for snapshots, when changing video parameters like frame rate then it might change).

And: this is not overclocking.

Code:
/system/etc/media_profiles.xml
...
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
...
<ImageEncoding quality="100" />
<ImageEncoding quality="100" />
<ImageEncoding quality="100" />
<ImageDecoding memCap="20000000" />
Will post some impressions later.

But one more question: does this belong to "Android development"?
It simply changing an existing value in a profile.
Should be in the "Apps&Themes" or in "General".
Well I figured since i changed embeded settings it should go in development,sorry if wrong. And according to some here its a waste of time. Sorry I even posted this in the first place,works great for me and many others so im officially asking for this to be taken down.Im was just trying to help others with something that has helped me and my friends. Sorry all
 
  • Like
Reactions: PartimusPrime