[Q] can we change jpg compression - AT&T HTC One (M8)

I'm thinking and wondering if changing a value in the build.prop will make for better pics? I've been able to do it in the past but lat time I did it was with the gs2. As you can imagine, im rusty. Before I attempt this, has anyone else tried removing all the compression? Did it make a difference? What value did we have to change again?
I saw something that improved the camera that could be flashed in recovery. But I'm on a gpe ROM and I don't know if it'll work. Not gpe conversion, just the ROM.
Thanks

From my understanding its hardcoded into the camera apk, build props dont work any longer...may be able to improve the quality of the pics being taken a bit by modifying the system\etc\media_profiles.xml

Related

Request: RAW image capture

hi all, im curious if this can be done. is there any way to enable RAW image capturing on the thunderbolt? i know the files would be huge but seriously, we have 40gb of space, it wouldnt be a big deal. i vaguely remember reading something about gingerbread and up being compatible with raw formats, so i dont think its impossible. any ideas? could this be as simple as editing a build.prop?
Thread moved to q&a.
ok. anyone have any ideas?

[Q] Development questions

Hi,
I am slowly getting through the basics of apk decompiling, Editing, Debugging & recompiling.
Using tools like Apk Tool, Winrar, Notepad++ Winmerge, Adb .
first time I have touched an android or even done any kind of stuff like this was Early August 2012. So not long at all, now i have a question to the more experienced Devs. Eg; Lets just say I dont want increasing ringtone How do you pin point where in the apk to start editing i mean there are heaps of files its like looking for a needle in a haystack. One way I came close and pin pointed it is using a previous made mod and then used Winmerge to compare the differences, Problem is the differences in these to Apks is not just the Increasing ringtone, so when I winmerged them it picked out out the other differences Now this deffinatley narrowed it down. I have a feeling it has something to do with the Callnotifier.xml is this the only Xml?
Also Lets just say you dont have another apk to compare it to , how to you find out this stuff..
Another thing is I want to cook up a rom, but the way I want to do it is modding my own rom untill I am happy with it and then creating something like a nandroid without my personal data. then making it flashable for people. What tools is best used for this? I was thinking editing my nandroid and adding it to a cwm flash. but I think there is an easier way.
Thanks for you help

[REQUEST] Modify AOSP Camera for 16:9 Resolution

Can any devs help with this? I'm not a dev, but this should be an easy mod. I tried using apktool and the framework from CM, but I get errors in styles.xml (which I didn't even touch) when building.
If a dev can point me in the right direction, it would be greatly appreciated. (If you take it upon yourself to do it, can you at least tell me what you did. Its been driving me crazy.)
I'm not sure of the other resolutions, but 8MP should be 4128x2322. I found the entries in arrays.xml, but because of the styles.xml errors, I can't go much further.
Thanks.
SonicJoe said:
Can any devs help with this? I'm not a dev, but this should be an easy mod. I tried using apktool and the framework from CM, but I get errors in styles.xml (which I didn't even touch) when building.
If a dev can point me in the right direction, it would be greatly appreciated. (If you take it upon yourself to do it, can you at least tell me what you did. Its been driving me crazy.)
I'm not sure of the other resolutions, but 8MP should be 4128x2322. I found the entries in arrays.xml, but because of the styles.xml errors, I can't go much further.
Thanks.
Click to expand...
Click to collapse
I've been searching for months about this very same issue with 16:9 ratio photo's. I've tried compiling just as you have and I get the same error in styles.xml which I didn't touch at all...
bb12489 said:
I've been searching for months about this very same issue with 16:9 ratio photo's. I've tried compiling just as you have and I get the same error in styles.xml which I didn't touch at all...
Click to expand...
Click to collapse
It happens because the decompile is missing something. I've tried multiple versions of apktool and aapt on both Windows and Linux. I'm thinking that I need to get the source and modify there then rebuild. I just need to do a lot more reading before attempting that.
Its possible, because I have found threads where devs have modded it for other phones. Unfortunately, I can't find a single thread that explains how they did it.
SonicJoe said:
It happens because the decompile is missing something. I've tried multiple versions of apktool and aapt on both Windows and Linux. I'm thinking that I need to get the source and modify there then rebuild. I just need to do a lot more reading before attempting that.
Its possible, because I have found threads where devs have modded it for other phones. Unfortunately, I can't find a single thread that explains how they did it.
Click to expand...
Click to collapse
Something interesting I found out lastnight when I decompiled Gallery2.apk from CM 10.1 ( I'm on a Droid DNA btw) is that there are camera preference strings for up to 12.8mp, as well as 6mp. The only thing is, these never show up as selectable options on my rom. Definitely need a dev to step in and help..
Broke down, setup a CM build environment, found the file, and its compiling now. Seeing the source vs. what apktool spits out, I can see why it refuses to build.
After I test it myself, if I didn't break something, I will share.
Success! I have tested the 8MP pictures on the Verizon S4, and my new Gallery2.apk now takes full 16:9 pictures. I'll try to get a link up tomorrow nite, or, if anyone is willing to host it, send me a PM and I'll send you the file. Also, I'm not sure if any of the other resolutions are supposed to be 16:9. If they are, can someone either send me a sample of a picture on stock, or read me the resolution (e.g. 4128x2322)? I can make further changes.
If anyone is interested in a modified AOSP camera that takes 16:9 pics at 8MP(4128x2322), here's a link: http://db.tt/mC5LclAE
Sorry its not a flashable zip. Just copy it to /system/apps with root explorer or equivalent and set permissions to rw-r--r-- (644). Then reboot. Its a system app, so every time you update you'll need to do this again.
This was built from CM source, and I've tested it on the Verizon S4 running CM10.1 with no issues. I don't see any reason why it wouldn't work on any other carrier's S4, or on another AOSP based ROM, but do so at your own risk. You may want to backup your original Gallery2.apk to your SD Card first.

[Q] Changing audio resampling in Android by modifying buid.prop

I have seen a multitude of websites and audio mods which provide mixed opinions on the following line found in build.prop:
af.resampler.quality=X
​And also adding a line to build.prop called:
af.resample=X
​Do either of these actually make a difference to the processing of Audio in Android (note: I am using a Nexus 4, if that makes any difference)? And because "af.resampler.quality=4" was already part of build.prop (I'm running stock Android 4.3), does anyone know for fact what the parameters for this option are?
Thanks to all replies in advance!
UPDATE: If there's another forum where there's a better chance of me getting a reply, please do move it. Thank You.
Sorry, had to bump to keep the thread up.
Sorry, had to bump yet again. Would really like answers to this Q. Isn't there anyone with experience on this topic?
i would like to know and i notice that this isn't on my HP Touchpad by default.

[MOD] Stock Camera Mod for Android 6.0 - Increased video bitrates, max image quality

THIS IS EXPERIMENTAL. DON'T BLAME ME IF SOMETHING BREAKS. EVERYTHING IS DISCLOSED BELOW.
​So I was using @Droopdead's mod back on stock 5.0 because I really wanted the best quality photographs I could get and I needed [email protected] for rolling shots of cars at speed. This is my attempt at porting it to 6.0.
Tested on an LG G3 LS990 with the stock MM D855 port RC1.
The following features have been ported and seems to be working:
Code:
720p/[email protected] for slo-mo
1080p/[email protected]
2160p/[email protected]
Increased photo quality to max setting
I am not able to get 1080p/[email protected] working, however. Seems that the framerate can't be locked to 60fps by design and you can only hit 60fps under a set of specific conditions (see: http://forum.xda-developers.com/showpost.php?p=63580804&postcount=860). This explanation is supported by a few things I saw while porting this. I'll tinker around to see if I can force it, but it might have some negative effects.
Report your findings below and I'll take a look at it, but I cannot guarantee anything, of course.
I have included a package for you to restore back to stock functions in the event that you experience a boot loop or other complications. I don't think it'll cause any booting problems because this is tailored to 6.0, but I suggest you download it anyways and have it on hand.
Other things to note:
You can flash droopdead's v7 mod onto 6.0, but it'll change all the icons due to it using different parameters. My port does not do that.
I don't see an option to switch from saving onto the SD card to saving Internally. Not sure if this is a ROM-port-specific problem, since it was never there to begin with on my device.
Changelog:
Code:
v1: Initial release.
Thanks to:
@Droopdead (see: http://forum.xda-developers.com/lg-g3/themes-apps/kitkat-lollipop-camera-mod-v7-t3014796)
htcmania, by association of droopdead
xda-dev
Looking forward to try
I flashed it and could not find the [email protected] option. Recorded something in 720p, but it is 29fps.
It is showing me [email protected], but the recorded video is [email protected]
And in my device it is showing the option to switch from sdcard do internal
going to try it
Why is it that only on 5.0.1 it actually locks at 60fps? I try using xcam and mods on 5.0 and like you said only works where there is good lighting. Same with stock 6.0 only when there is good lighting but like i said on 5.0.1 no matter if its dark or bright 60fps works like a charm. Any idea?
It seems like this mod works on the RC1 version of the LS990 port.
TrancëJay said:
I flashed it and could not find the [email protected] option. Recorded something in 720p, but it is 29fps.
It is showing me [email protected], but the recorded video is [email protected]
And in my device it is showing the option to switch from sdcard do internal
Click to expand...
Click to collapse
Thanks for the feedback! I believe that [email protected] at 40mbps is for slow-mo only. I don't recall setting it for normal video recording. I'll edit the original post accordingly. Sorry for the confusion.
Where is that option located? I couldn't find it and I'm not sure if it's because of my resolution change to 534 DPI lol
raven213 said:
Why is it that only on 5.0.1 it actually locks at 60fps? I try using xcam and mods on 5.0 and like you said only works where there is good lighting. Same with stock 6.0 only when there is good lighting but like i said on 5.0.1 no matter if its dark or bright 60fps works like a charm. Any idea?
Click to expand...
Click to collapse
Yeah, I never understood why it happened, but some theories include changes to the framework code and the release of the G4. If I recall correctly, the G3 had the ability to shoot RAW sometime in the past and then it was later removed. Whatever the reason was for that change most likely influenced the framerate mod issues we experience today.
auriculogenesis said:
It seems like this mod works on the RC1 version of the LS990 port.
Thanks for the feedback! I believe that [email protected] at 40mbps is for slow-mo only. I don't recall setting it for normal video recording. I'll edit the original post accordingly. Sorry for the confusion.
Where is that option located? I couldn't find it and I'm not sure if it's because of my resolution change to 534 DPI lol
Yeah, I never understood why it happened, but some theories include changes to the framework code and the release of the G4. If I recall correctly, the G3 had the ability to shoot RAW sometime in the past and then it was later removed. Whatever the reason was for that change most likely influenced the framerate mod issues we experience today.
Click to expand...
Click to collapse
Damn that sucks its the only thing still keeping me on stock 5.0.1 on a d850 also i wasnt able to see [email protected]
---------- Post added at 09:49 PM ---------- Previous post was at 09:48 PM ----------
Cant wait for xcam hopefully it can lock at 60fps

Categories

Resources