Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
zbwu86
Old
(Last edited by zbwu86; 17th January 2012 at 06:06 AM.)
#1  
Junior Member - OP
Thanks Meter 729
Posts: 12
Join Date: Jan 2009
Location: Dong Guan
Default Ace ICS camera solution (more photos and source)

Click image for larger version

Name:	100_2322m.jpg
Views:	15958
Size:	83.6 KB
ID:	859045
Click image for larger version

Name:	100_2325m.jpg
Views:	9576
Size:	86.0 KB
ID:	859422
Click image for larger version

Name:	100_2329m.jpg
Views:	9377
Size:	77.7 KB
ID:	859432
Click image for larger version

Name:	100_2328m.jpg
Views:	9257
Size:	75.1 KB
ID:	859431

First of all, I am from China, my English is poor.

Camera solution:
1.Revert the commit about offset in MemoryHeapBase, make MemoryHeapPmem binary compatible.(commit: f24c4cd0f204068a17f61f1c195ccf140c6c1d67)
2.Add Overlay stub to libui, make libcamera.so symbol compatible
3.Implement a adapter CameraHardwareInterface.h to camera.h

sample implement, this a snapshot of local git repo

all source based on aosp ics-mr1 branch

libcamera.so liboemcamera.so libmmipl.so libmmjpeg.so from 2.36.405.8

I code patch and hal last weekend, but I do not have time to do it better, but it can work.

my git repo github.com/zbwu, but don't include libcamera now.

enjoy~
Attached Files
File Type: zip libcamera.zip - [Click for QR Code] (9.1 KB, 3049 views)
File Type: txt MemoryHeapBase.patch.txt - [Click for QR Code] (6.0 KB, 2278 views)
File Type: txt Overlay.patch.txt - [Click for QR Code] (6.2 KB, 1805 views)
The Following 572 Users Say Thank You to zbwu86 For This Useful Post: [ Click to Expand ]
 
zbwu86
Old
(Last edited by zbwu86; 16th January 2012 at 08:31 AM.)
#2  
Junior Member - OP
Thanks Meter 729
Posts: 12
Join Date: Jan 2009
Location: Dong Guan
hello everyone

Now is office hour
I will post the source and detail tonight(GMT +8:00)
The Following 54 Users Say Thank You to zbwu86 For This Useful Post: [ Click to Expand ]
 
babijoee
Old
#3  
babijoee's Avatar
Retired Forum Moderator
Thanks Meter 159
Posts: 1,517
Join Date: Dec 2008
Location: Melbourne

 
DONATE TO ME
Quote:
Originally Posted by peiminglei View Post
牛逼!

兄弟,你的大名将会永远被xda论坛所永记!

还是咱们中国人聪明,哈哈哈!
English only thanks.

Quote:
Originally Posted by Bornin View Post
So, is this for real or is this guy gently squeezing our balls?
Just wait and see. From the pic in the first post it looks promising


| TOUCHPRO | NEXUS ONE | DESIRE HD | GALAXY S III | GALAXY NEXUS | GALAXY S III 4G

 
johrie
Old
#4  
Senior Member
Thanks Meter 153
Posts: 1,024
Join Date: Jan 2010
Could this work on other devices also? Like the desire s or z?

Sent from my HTC Vision using XDA App
 
dh.harald
Old
#5  
Member
Thanks Meter 199
Posts: 91
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by johrie View Post
Could this work on other devices also? Like the desire s or z?

Sent from my HTC Vision using XDA App
You can found several libcamera wrapper, for example TwistedUmbrella is working on it, but this problems are HTC specific. I think it can be used in most of HTC devices.

Here's some examples:
E/HAL ( 1207): Cannot load library: link_image[2048]: 1207 could not load needed library 'libcamera.so' for 'camera.default.so' (reloc_library[1384]: 1207 cannot locate '_ZN8SkMatrix10setRotateZEf'...

It's the first test, you can easily pass it with some smart google search

Here's my step:

E/HAL ( 1203): Cannot load library: link_image[1965]: 1203 could not load needed library 'libcamera.so' for 'camera.default.so' (reloc_library[1314]: 1203 cannot locate '_ZN7android7Overlay5setFdEi'...

Here am I, I tried to make a wrapper to overlay::eek:verlay::* to android::eek:verlay::*

But i'll w8 for source... It will be faster
The Following User Says Thank You to dh.harald For This Useful Post: [ Click to Expand ]
 
dh.harald
Old
#6  
Member
Thanks Meter 199
Posts: 91
Join Date: May 2010

 
DONATE TO ME
Quote:
Originally Posted by frits666 View Post
Something like Ndiswrapper used on some Linux distro's???
Like gpsshim (https://github.com/CyanogenMod/android_hardware_gpsshim)
The Following User Says Thank You to dh.harald For This Useful Post: [ Click to Expand ]
 
zbwu86
Old
#7  
Junior Member - OP
Thanks Meter 729
Posts: 12
Join Date: Jan 2009
Location: Dong Guan
I have posted more photos and source
The Following 26 Users Say Thank You to zbwu86 For This Useful Post: [ Click to Expand ]
 
zbwu86
Old
#8  
Junior Member - OP
Thanks Meter 729
Posts: 12
Join Date: Jan 2009
Location: Dong Guan
I scale photos in gimp, not edit
The Following 16 Users Say Thank You to zbwu86 For This Useful Post: [ Click to Expand ]
 
buzzboy
Old
#9  
buzzboy's Avatar
Senior Member
Thanks Meter 978
Posts: 2,614
Join Date: Oct 2010
Location: Canterbury

 
DONATE TO ME
Quote:
Originally Posted by zbwu86 View Post
I scale photos in gimp, not edit
You alone have cured the threads of CQP (Camera questioning plague).
And for that, I commend you.
Someone give this man an OBE.

Regards
The Following 4 Users Say Thank You to buzzboy For This Useful Post: [ Click to Expand ]
 
NoxinHH
Old
#10  
Member
Thanks Meter 33
Posts: 79
Join Date: Jul 2008
Please stop writing Chinese. Thank you!

The Following User Says Thank You to NoxinHH For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...