5,815,133 Members 38,846 Now Online
XDA Developers Android and Mobile Development Forum

ICS Camera fix 8MP/6MP [v0.10]

Tip us?
 
scritch007
Old
(Last edited by scritch007; 14th November 2012 at 07:43 AM.) Reason: New update with exif and scene values changed
#1  
Senior Member - OP
Thanks Meter 3,003
Posts: 306
Join Date: Jan 2011
Location: Reims

 
DONATE TO ME
Default ICS Camera fix 8MP/6MP [v0.10]

Hi everybody,

I've been going around the forum for a few months now without posting anything.

But Today I made my first beta fix for the Camera on ICS.

What works?:

* 8MP
* 6MP
* Others seems OK

It's using the native Jpeg encoding, so the images won't be 6Mega but will be compressed

Unlike the patch from z + J GB lib, the photo is taken each time.

How did I this?

I took the sources from Sony, and removed all the specific parts, face recognition, scenes and so on.
Used missing defines from Zte blade Ics repository.

I'm now testing with FXP CM9.1 and the default camera App

I'm running a FXP-kernel 140 or 139 but they are nearly the same.
I'm mostly using App Camera Zoom for taking picture (because it bought it when it was the one app that worked with htc wildfire ICS camera ) but the default app also takes pictures.

Binaries

Download zip file and apply using ClockWork Recovery

See next post for download links.


Sources

https://github.com/skritchz/android_device_semc_es209ra

The code is pretty a mess with #if and #endif to remove SEMC specific code, I'll clear it up later.

I'll be working on improving the code, but I only get one hour a day to work on this, so it might take some time.

If you find any bug please report, I'll try to fix them as soon as I possible.


Thanks to:

J for the existing camera lib which help me to understand the Sony sources
rapmv78 for the cameraHal.cpp
To the ZTE Blade team I found some missing defines.
Championswimmer for his great How To
DoomLord for his kernel generation script
Vasishta Reddy for his roms
Z for the hw_config.sh patch
THeLogic and kingstonxl for the feedback. Wouldn't be that good without them.
The Following 207 Users Say Thank You to scritch007 For This Useful Post: [ Click to Expand ]
 
scritch007
Old
(Last edited by scritch007; 14th November 2012 at 07:42 AM.) Reason: changelog for v0.9
#2  
Senior Member - OP
Thanks Meter 3,003
Posts: 306
Join Date: Jan 2011
Location: Reims

 
DONATE TO ME
Default ICS Camera fix [beta 1] 8MP/6MP and so on

Binaries
http://www.wuala.com/scritch/Android

Now two version of roms. One with hw_config.sh (for CM9.1 users) and one without.

For people using CM9.1 by ME, don't flash hw_config.sh version, the fix is already included.

ChangeLog


[B]v0.10[/B>
* Add exposure compensation

v0.9
* Add zoom

v0.8

* Fix freeze issue.
* QR Code working (Check if there's no side effect on the lib)
* Iso Speed fixed.
* Update LOGGING with Semc one, for easier file comparison

v0.7-sceneTest
* Changed values for the scene, after kingstonxl feedback.
* Added ExifInfo (somme might not be correct yet. Working on it)
* Rotation now stored in exif, so pictures are now in the correct direction

V0.6-testScene
* Changed value for AutoFocus. Test if it is better. Macro should still be working.
* Added Scene mode. Check Scene mode value.

V0.5-unstable
* Changing quality now works
* White balance works
* Filter works
* Macro should now be working

V0.4-unstable

2 libs now, one with hw_config.sh and one without. For CM9.1 please use the standard one.
For other roms with old Camera fix, please use the -no_hw_config.zip file


* Added working autofocus.

Caution on my phone the default App is having issue when leaving app and reopening App. Please report Rom + Kernel if you get an issue.
Use ICS Camera + instead. (Or CameraZoom)


V0.3
* Ported Flash from J GB library (Torch + On + Off)
* Activated AutoFocus from Qualcomm (Doesn't seem to work)

V0.2

Z isn't required anymore.
* Added hw_config.sh script from Z file
* Fixed Crash when changing resolution
The Following 76 Users Say Thank You to scritch007 For This Useful Post: [ Click to Expand ]
 
scritch007
Old
(Last edited by scritch007; 14th November 2012 at 07:41 AM.) Reason: Quality + WhiteBalance OK
#3  
Senior Member - OP
Thanks Meter 3,003
Posts: 306
Join Date: Jan 2011
Location: Reims

 
DONATE TO ME
Default ICS Camera fix [beta 1] 8MP/6MP and so on

TODO

* Scenes (Done partially)
* Use the Sony Flash module instead of J patch
* CamRecorder
* Anti Banding (Not done)
The Following 47 Users Say Thank You to scritch007 For This Useful Post: [ Click to Expand ]
 
scritch007
Old
(Last edited by scritch007; 14th November 2012 at 09:35 AM.)
#4  
Senior Member - OP
Thanks Meter 3,003
Posts: 306
Join Date: Jan 2011
Location: Reims

 
DONATE TO ME
Default ICS Camera fix [beta 1] 8MP/6MP and so on

Bugs:

* Zoom is lost when focusing and not taking the picture.
* bar code not working only QR code
* Thumbnail issue depending on the picture resolution.
* Exif info not correctly set, some apps are happy with it but some aren't
* -8 Exposure compensation leads to FC.
The Following 30 Users Say Thank You to scritch007 For This Useful Post: [ Click to Expand ]
 
FeraVolt
Old
#5  
FeraVolt's Avatar
Senior Member
Thanks Meter 13,112
Posts: 1,754
Join Date: Dec 2011

 
DONATE TO ME
thanks..that worked.
nice job
***FeraLab***
The Following 2 Users Say Thank You to FeraVolt For This Useful Post: [ Click to Expand ]
 
sdzbwxp
Old
#6  
sdzbwxp's Avatar
Member
Thanks Meter 48
Posts: 56
Join Date: Aug 2012
Location: Victoria
scritch007, welcome to the X10 community, and thank you for working on the camera. We really really need to get the camera fixed in ICS.
 
mrd7rs
Old
(Last edited by mrd7rs; 16th October 2012 at 01:14 AM.)
#7  
mrd7rs's Avatar
Senior Member
Thanks Meter 101
Posts: 263
Join Date: Oct 2009
Quote:
Originally Posted by scritch007 View Post
Hi everybody,

I've been going around the forum for a few months now without posting anything.

But Today I made my first beta fix for the Camera on ICS.

What works?:

* 8MP
* 6MP
* Others?? didn't test it
8mp, 6mp, 2.1mp and vga works on fxp142-cm9. thanks scritch007.
 
mhdsanto85
Old
#8  
mhdsanto85's Avatar
Senior Member
Thanks Meter 135
Posts: 569
Join Date: Jul 2008
Location: São José dos Campos SP

 
DONATE TO ME
great news for all in X10 comunity....!!! thanks.!
The Following User Says Thank You to mhdsanto85 For This Useful Post: [ Click to Expand ]
 
sdzbwxp
Old
#9  
sdzbwxp's Avatar
Member
Thanks Meter 48
Posts: 56
Join Date: Aug 2012
Location: Victoria
any hope to get the camcorder working as well?
 
brenty108
Old
#10  
brenty108's Avatar
Senior Member
Thanks Meter 233
Posts: 873
Join Date: Jan 2011
Location: santa flora

 
DONATE TO ME
Quote:
Originally Posted by sdzbwxp View Post
any hope to get the camcorder working as well?
Small steps for now small steps

Sent from my X10i using xda app-developers app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes