Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,599 Members 38,248 Now Online
XDA Developers Android and Mobile Development Forum

[WIP] - ICS Camera HAL for 2.6 kernel

Tip us?
 
rapmv78
Old
(Last edited by rapmv78; 7th January 2012 at 05:59 AM.)
#1  
Senior Member - OP
Thanks Meter 799
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Default [WIP] - ICS Camera HAL for 2.6 kernel

I have re-written the ICS camera HAL module to be a thin wrapper for the gingerbread libcamera.so and hence it will only work with the 2.6 kernel. The advantage is that getting to gingerbread level functionality should be quick Creating a new thread because there is a slight chance that this will work for all qualcomm devices with existing libcamera.so files (with slight mods ofcourse )

http://www.mediafire.com/download.php?wjf035mz2vzunw4

Here is a zip file which contains the new camera HAL module. README file accompanying it has instructions on the locations for the files. If you already have the previous version of camera HAL working, all you have to do is replace camera.qsd8k.so and libcamera.so with the ones in the zip file.

What works:
1) Preview works.
2) Taking a picture works pretty well.
3) Size of picture is no longer huge.
4) Software zoom works.
5) Most of the other knobs like focus, file size etc. seemed to work as well in my testing.
6) Pretty stable as far as I can see

Not working yet:
Video and other fancy stuff.

If people have requests for other qualcomm devices after having tried the HAL included in the zip file, kindly include the following information.
1) logcat from having used the HAL module.
2) build.prop
3) libcamera.so from gingerbread ROM for the device.
4) liboemcamera.so from gingerbread ROM.

Currently known to work on the following devices:
1) Nexus One.
2) HTC Desire
3) HTC HD2

Enjoy and thanks for all the feedback.
The Following 144 Users Say Thank You to rapmv78 For This Useful Post: [ Click to Expand ]
 
rapmv78
Old
(Last edited by rapmv78; 9th February 2012 at 08:52 AM.)
#2  
Senior Member - OP
Thanks Meter 799
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Updates:

02/09/2012

Working barcode scanner mode

Flashable zip file (should work with texasice's ROMs)
http://www.mediafire.com/?w4fu0u05qtxq3tu

01/30/2012
Working Panorama mode

Flashable zip file (should work with texasice's ROMs)
http://www.mediafire.com/?5r599m5jg5yfaqn

Known issues:
Sometimes screen has some garbage while in Panorama mode viewfinder. Quitting completely from the app and restart or invoking Gallery from inside the app and returning back to camera app should mostly fix it.

Video enabled version:

Fastboot compatible images compiled from evervolv base:

For Stock hboot :
http://www.mediafire.com/?wdlip7h6necetia

For HBoot(s) supporting larger /system partition
http://www.mediafire.com/?f6rz3sz2r97qln0

Source code is now available at
https://github.com/rapmv78/
The Following 55 Users Say Thank You to rapmv78 For This Useful Post: [ Click to Expand ]
 
twistedumbrella
Old
(Last edited by imfloflo; 4th January 2012 at 10:26 AM.)
#3  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter 6,231
Posts: 6,197
Join Date: Sep 2007

 
DONATE TO ME
Your upload doesn't include a HAL, and from your instructions I am not sure if you are implying to use the HAL and the GB libcamera and liboemcamera, or the ones included.
The Following 2 Users Say Thank You to twistedumbrella For This Useful Post: [ Click to Expand ]
 
mulerokeh
Old
(Last edited by mulerokeh; 4th January 2012 at 08:16 AM.)
#4  
mulerokeh's Avatar
Senior Member
Thanks Meter 18
Posts: 142
Join Date: Apr 2010
Location: Jakarta
please show me what i have to type in adb to push these files? (sorry i'm noob)
is camera.qsd8k.so not included?
sorry for my english..
 
rapmv78
Old
#5  
Senior Member - OP
Thanks Meter 799
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Sorry wrong link. Now updated. Please re-download. And yes the files need to pushed through adb.
The Following 6 Users Say Thank You to rapmv78 For This Useful Post: [ Click to Expand ]
 
tonyeva
Old
#6  
Member
Thanks Meter 12
Posts: 85
Join Date: Jan 2010
Location: Taipei
One step closer!
Thank you!
 
rapmv78
Old
#7  
Senior Member - OP
Thanks Meter 799
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by twistedumbrella View Post
Your upload doesn't include a HAL, and from your instructions I am not sure if you are implying to use the HAL and the GB libcamera and liboemcamera, or the ones included.
Link fixed. The files included in the zip are the ones to be used. The generic libs part is only for people with non nexus one devices and would want help enabling camera on them. Hope this clarifies better.
The Following 6 Users Say Thank You to rapmv78 For This Useful Post: [ Click to Expand ]
 
twistedumbrella
Old
#8  
twistedumbrella's Avatar
Recognized Developer
Thanks Meter 6,231
Posts: 6,197
Join Date: Sep 2007

 
DONATE TO ME
Is the code specific to qsd8 or just a generic wrapper function? On most "newer" devices you are looking at msm7x30, but generic qsd8 code, much like the gralloc, would still work with a rename.

Sent from my ADR6400L using Tapatalk
 
mulerokeh
Old
#9  
mulerokeh's Avatar
Senior Member
Thanks Meter 18
Posts: 142
Join Date: Apr 2010
Location: Jakarta
Quote:
Originally Posted by rapmv78 View Post
Sorry wrong link. Now updated. Please re-download. And yes the files need to pushed through adb.
if i have installed the previous version, is it right what i have to type in adb?
Code:
adb remount
adb push libcamera.so /system/lib/libcamera.so
adb push camera.qsd8k.so /system/lib/hw/camera.qsd8k.so
adb reboot bootloader
fastboot flash boot boot-new.img
fastboot reboot
please help, i don't know what to do..
thanks..
 
rapmv78
Old
#10  
Senior Member - OP
Thanks Meter 799
Posts: 113
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by mulerokeh View Post
if i have installed the previous version, is it right what i have to type in adb?
Code:
adb remount
adb push libcamera.so /system/lib/libcamera.so
adb push camera.qsd8k.so /system/lib/hw/camera.qsd8k.so
adb reboot bootloader
fastboot flash boot boot-new.img
fastboot reboot
please help, i don't know what to do..
thanks..
If you have previously working camera, you can skip flashing the boot-new.img file. It is there for people who do not have existing ics camera hal. Rest looks fine to me.

The Following 5 Users Say Thank You to rapmv78 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes