FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

[WIP] - ICS Camera HAL for 2.6 kernel

113 posts
Thanks Meter: 799
 
By rapmv78, Senior Member on 4th January 2012, 07:43 AM
Post Reply Subscribe to Thread Email Thread
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.
Last edited by rapmv78; 7th January 2012 at 05:59 AM.
The Following 144 Users Say Thank You to rapmv78 For This Useful Post: [ View ]
 
 
4th January 2012, 07:44 AM |#2  
OP Senior Member
Thanks Meter: 799
 
Donate to Me
More
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/
Last edited by rapmv78; 9th February 2012 at 08:52 AM.
The Following 55 Users Say Thank You to rapmv78 For This Useful Post: [ View ]
4th January 2012, 07:55 AM |#3  
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.
Last edited by imfloflo; 4th January 2012 at 10:26 AM.
The Following 2 Users Say Thank You to twistedumbrella For This Useful Post: [ View ]
4th January 2012, 08:11 AM |#4  
mulerokeh's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 18
 
More
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..
Last edited by mulerokeh; 4th January 2012 at 08:16 AM.
4th January 2012, 08:14 AM |#5  
OP Senior Member
Thanks Meter: 799
 
Donate to Me
More
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: [ View ]
4th January 2012, 08:15 AM |#6  
Member
Flag Taipei
Thanks Meter: 12
 
More
One step closer!
Thank you!
4th January 2012, 08:22 AM |#7  
OP Senior Member
Thanks Meter: 799
 
Donate to Me
More
Quote:
Originally Posted by twistedumbrella

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: [ View ]
4th January 2012, 08:25 AM |#8  
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
4th January 2012, 08:28 AM |#9  
mulerokeh's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 18
 
More
Quote:
Originally Posted by rapmv78

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..
4th January 2012, 08:37 AM |#10  
OP Senior Member
Thanks Meter: 799
 
Donate to Me
More
Quote:
Originally Posted by mulerokeh

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: [ View ]
4th January 2012, 08:39 AM |#11  
OP Senior Member
Thanks Meter: 799
 
Donate to Me
More
Quote:
Originally Posted by twistedumbrella

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

It is just a wrapper, but is dynamically linked with the libcamera.so file. So, if kernel change does not change structs and constants, things will work fine with a rename as you suggest. Otherwise it will not.
The Following 3 Users Say Thank You to rapmv78 For This Useful Post: [ View ]

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes