CM10.1 Camera/Gallery

Status
Not open for further replies.
Search This thread

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
i am making this thread to release the cm10.1 4.2.2 camera for xperia 2011 phones since they need some modifications.
you can find attached the modified camera.
i'll attach a separate zip with HDR disabled for cm10 users where HDR will not work, in a few minutes.

if you have any suggestions/ feature requests post here

install instructions:
clear Gallery app data from settings
reboot to recovery
flash zip
clear cache and dalvik cache

changelog
20130603:
fixed preview thanks to irii-soft
fixed the face detection problem
focus modes settings.

20130605:
removed panorama option.
removed continuous video focus mode
all cm changes. including the many new resolutions.

20130624:
latest cm changes


you can use the panorama app from here, which works.
http://forum.xda-developers.com/showthread.php?t=2155451


bugs:
if you find any post here, with an adb log.
also see some FAQ
http://forum.xda-developers.com/showpost.php?p=42315597&postcount=73

credits:
irii-soft
fxp
cyanogenmod
mikeioannina
Steph310
all the devs who are supporting cm10.1 for our phones.
 

Attachments

  • Gallery2_20130603.zip
    4.6 MB · Views: 2,487
  • noHDR_Gallery2_20130603.zip
    4.6 MB · Views: 1,134
  • Gallery2_20130605.zip
    4.6 MB · Views: 837
  • noHDR_Gallery2_20130605.zip
    4.6 MB · Views: 629
  • noHDR_Gallery2_20130624.zip
    4.2 MB · Views: 3,319
  • Gallery2_20130624.zip
    4.2 MB · Views: 54,255
Last edited:

Steph310

Senior Member
Jul 3, 2012
1,519
1,434
Cahors
I asked you if it's possible to add focus settings in camera 4.2 and some minutes later you offer us a new thread with updated zip !!!!
Thanks Gandhar!!! :good:
Next step 720p nAa kernel test by the last very significant improvements? ;)

---------- Post added at 06:38 PM ---------- Previous post was at 06:28 PM ----------

focus mode in CM10:
auto, continuous picture, continuous video, fixed, infinity, macro

I'm not sure if we need "continuous video" mode in pictures, or what's the difference between fixed and infinity, but it's great job! :)

- Infinity: a fixed focus maximum distance for landscape mainly.
- Fixed: Focus adjustment midpoint, closer than landscape. Less good sharpness than auto, face,... but no time focus for quick shoot or solution if auto focus can't lock subject.
 
Last edited:
  • Like
Reactions: najodleglejszy

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
I asked you if it's possible to add focus settings in camera 4.2 and some minutes later you offer us a new thread with updated zip !!!!
Thanks Gandhar!!! :good:
Next step 720p nAa kernel test by the last very significant improvements? ;)

well the other thread was getting very messed up with all the camera stuff.
i don't understand what you mean about the kernel. explain

focus mode in CM10:
auto, continuous picture, continuous video, fixed, infinity, macro

I'm not sure if we need "continuous video" mode in pictures, or what's the difference between fixed and infinity, but it's great job! :)

i'm pretty sure hardware support for continuous focus in video mode is not there. so i will probably remove that.

edit:
i also have plans to disable panorama.

if anyone has any requests, post here. i will consider them.
 
  • Like
Reactions: besttt

Steph310

Senior Member
Jul 3, 2012
1,519
1,434
Cahors
well the other thread was getting very messed up with all the camera stuff.
i don't understand what you mean about the kernel. explain.

720p was deleted because ram and poor quality.
Since the performance is significantly improved (rom and even more kernel).
I think we should test again...
I think too that 720p feature is implemented in kernel and not in rom (It's why I spoke about nAa kernel).
I'm wrong?
 

Lucaviola

Senior Member
Dec 15, 2012
125
18
Jakarta
Waiting eagerly for this great can without panorama.. Also dev, pls just remove all unusable things from this great app..
You can just note what working/not..

That's what I call decreasing unsolved bugs..
 

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
720p was deleted because ram and poor quality.
Since the performance is significantly improved (rom and even more kernel).
I think we should test again...
I think too that 720p feature is implemented in kernel and not in rom (It's why I spoke about nAa ke rnel).
I'm wrong?

i actually like the idea that we get a better experience than having a feature which doesn't work properly.
the overall user experience is bad, the picture quality is not great plus we get bad frame rates
also 22mb is a lot of ram to waste on a feature which one can live without.
anyway thats my opinion.
 
well the other thread was getting very messed up with all the camera stuff.
i don't understand what you mean about the kernel. explain



i'm pretty sure hardware support for continuous focus in video mode is not there. so i will probably remove that.

edit:
i also have plans to disable panorama.

if anyone has any requests, post here. i will consider them.

Gandhar please go ahead and remove panorama. The less non working components the simpler and easier it will be to maintain. For people that need panorama can use use this one. Works perfectly just tried it out on M66B's CM10 build from yesterday. I'm confident will work on CM10.1 as well...
 
Last edited:

hmnk

Senior Member
Oct 29, 2011
550
199
i am making this thread to release the cm10.1 4.2.2 camera for xperia 2011 phones since they need some modifications.
you can find attached the modified camera.
i'll attach a separate zip with HDR disabled for cm10 users where HDR will not work, in a few minutes.

install instructions:
clear Gallery app data from settings
reboot to recovery
flash zip
clear cache and dalvik cache

changelog
20130603:
fixed preview thanks to irii-soft
fixed the face detection problem
focus modes settings.

i can only confirm this working on cm-10.1.

bugs:
panorama not working
if you find any others post here, with an adb log.

you can use the panorama app from here, which works.
http://forum.xda-developers.com/showthread.php?t=2155451

credits:
irii-soft
fxp
cyanogenmod
mikeioannina
all the devs who are supporting cm10.1 for our phones.

Hey thanks for the camera :) But I got a small request for you.. Can you please make a camcorder fix for PAC-man ROM 4.2.2_Mango?
Here is the fix that got the camcorder working on pac-ROM Mango but the camera got inverted and the swipe keyboard function got disabled.
Here are some posts that might help you make the fix if you wish to make the fix:

@ Frankin96, thanks for this fix :)
Hope you can fix the inverted camera bug soon.:good:
After flashing this fix, the gesture typing doesn't work.

On coconut i don't have the bug, maybe I've to make 4 fix for any mdpi device.. Btw, some other can say that on coconut all is working?

I need only the lib folder from mike cm10.1 of every device, and some time to upload it
Sent from my Xperia Live with Walkman using xda app-developers app

Need from mike cm10.1 ... As pac is based on mike sources but with omx encoder problem
Sent from my Xperia Live with Walkman using xda app-developers app

 

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
Hey thanks for the camera :) But I got a small request for you.. Can you please make a camcorder fix for PAC-man ROM 4.2.2_Mango?
Here is the fix that got the camcorder working on pac-ROM Mango but the camera got inverted and the swipe keyboard function got disabled.
Here are some posts that might help you make the fix if you wish to make the fix:

the camcorder problem is not a app problem, it exists on cm10.1 too, just needs this commit to be merged.
http://review.cyanogenmod.org/#/c/32906/
perhaps someone could put it on the PAC gerrit or manually merge it.

also iirc the inverted camera was due to the missing liboemcamera.so , this was back in gingerbread times when a rom had the problem..
not sure about this case though, but you can try it. get it form stock rom, push it to /system/lib and give 755 permission.
 
  • Like
Reactions: hmnk

parid_hilton

Senior Member
Nov 27, 2012
82
7
the camcorder problem is not a app problem, it exists on cm10.1 too, just needs this commit to be merged.
http://review.cyanogenmod.org/#/c/32906/
perhaps someone could put it on the PAC gerrit or manually merge it.

also iirc the inverted camera was due to the missing liboemcamera.so , this was back in gingerbread times when a rom had the problem..
not sure about this case though, but you can try it. get it form stock rom, push it to /system/lib and give 755 permission.

Can anybody uplad the needed file!
 

hmnk

Senior Member
Oct 29, 2011
550
199
the camcorder problem is not a app problem, it exists on cm10.1 too.
I got the camcorder working on Mike's CM10.1 with Rizal's cam fix.

also iirc the inverted camera was due to the missing liboemcamera.so , this was back in gingerbread times when a rom had the problem..
not sure about this case though, but you can try it. get it form stock rom, push it to /system/lib and give 755 permission.
You mean flash Frankin96's camcorder fix and the push liboemcamera.so from stoack ICS ROM to system and set the permissions?
 

gandhar

Senior Member
Jan 20, 2012
1,037
679
Goa
Last edited:
  • Like
Reactions: hmnk
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 90
    i am making this thread to release the cm10.1 4.2.2 camera for xperia 2011 phones since they need some modifications.
    you can find attached the modified camera.
    i'll attach a separate zip with HDR disabled for cm10 users where HDR will not work, in a few minutes.

    if you have any suggestions/ feature requests post here

    install instructions:
    clear Gallery app data from settings
    reboot to recovery
    flash zip
    clear cache and dalvik cache

    changelog
    20130603:
    fixed preview thanks to irii-soft
    fixed the face detection problem
    focus modes settings.

    20130605:
    removed panorama option.
    removed continuous video focus mode
    all cm changes. including the many new resolutions.

    20130624:
    latest cm changes


    you can use the panorama app from here, which works.
    http://forum.xda-developers.com/showthread.php?t=2155451


    bugs:
    if you find any post here, with an adb log.
    also see some FAQ
    http://forum.xda-developers.com/showpost.php?p=42315597&postcount=73

    credits:
    irii-soft
    fxp
    cyanogenmod
    mikeioannina
    Steph310
    all the devs who are supporting cm10.1 for our phones.
    11
    i have some bad news,
    this morning i dropped my phone and that led to some problem with the board, which costs a lot to replace.
    what i will probably do now is get a new phone, but i doubt it will be a xperia 2011 model.

    so there will not be any updates to this, not even bugfixes or upstream stuff, since i can't test anything..
    when we get the 4.3 sources someone can make the same changes as the ones on my github to possibly make the camera work, that is if mike has not finished the camera wrapper by then.

    thanks
    8
    Redeyes icons for Gandhar and little FAQ for all

    i got an internship yesterday, and i have to travel about 1 and half hour to get to the place, so i am not going to be able to spend as much time on this and some other things as i would like to.
    i will update this every once in a while ( bugfixes if there are any bugs i can reproduce), but i doubt i will add features.
    and anyway camera from mike's rom has the same functionality, except for the panorama removed, so you can use that.
    @gandhar
    We understand and we can thank you for this yet perfect full working camera 4.2! :good:
    If you want, if you can, if you have time, I created icons needed if you want to add red eyes feature (attached files)...
    Thank you again for your work!

    Small FAQ to avoid saturating this thread:

    Clean install?
    - clear data Gallery already installed
    - flash zip
    - wipe cache and dalvik
    - reboot and enjoy!

    This camera 4.2 works for my rom?
    - It perfectly works on Mike's rom
    - For others roms, don't ask but test!
    Good for you if works but don't ask Gandhar to adapt in case of malfunction.
    For CM10 roms test only noHDR zip (rom not compatible HDR feature).

    No 720p?
    - feature include (or not) in kernel
    - Choice of our developers (Mike, Ganhhar, M66B,...) is leave 720p.
    Because no JB camera libs from Sony (petition) and then to win ram and to have smoother video (better than laggy wide video! no?) 480p is currently the best choice.

    Blue tint when flash used?
    - change auto white balance and select sun!

    HDR fc?
    - change focus mode and no select Auto or Macro!
    The result of HDR is currently far from perfect. Please have the phone perfectly still and do not expect perfect sharpness ...
    If you don't use this feature, you can quite flash noHDR zip on CM10.1. Else is completely identical!
    7

    thanks,
    i will let you know when its ready for testing.

    @mikeioannina, this

    an update:
    got red-eye flash mode working, i will need new drawables for that mode, are there any graphic designers here? it should be similar to the other flash modes from the pie menu( the long press circular one) , if nobody contributes any graphics, i will do it myself. god only knows what will come of that. :D

    the continuous-video focus mode is supported by the hardware, but i will probably move it to the video section.
    i am still looking for a graceful way to disable panorama.
    7
    Hmmm nice,what does the persistent handsfree option in the settings menu do ?

    it keeps the voice capture on, so you can say cheese multiple times.
    without the option, it will take only one photo. and then voice activated capture turns off.


    i have just built with latest sources, uploading now..
    there are no fixes, only cm changes such as red eye flash mode and gps indicator.

    i'll attach to first post soon, only tested on cm10.