yashsingh1/xdaforums huggingface dataset:
[LG Optimus 3D] tiagoclc:
Considerations

Hey defcomg!

I found this:

"If applications want to rotate the picture to match the orientation of what users see, apps should use OrientationEventListener and Camera.CameraInfo. The value from OrientationEventListener is relative to the natural orientation of the device. CameraInfo.orientation is the angle between camera orientation and natural device orientation. The sum of the two is the rotation angle for back-facing camera. The difference of the two is the rotation angle for front-facing camera. Note that the JPEG pictures of front-facing cameras are not mirrored as in preview display."

When front camera is physically on 0', back camera is physically on 90'.

And when back camera is physically on 0', front camera is physically on -90'.

So with your method both cameras are being rotated 180'.

I think the way you're trying to verify if facing (CameraInfo) is equal to 0x0 or to 0x1 is wrong, because both cameras are being rotated.

Look this method, which is part of camera.smali:

.method public static open()Landroid/hardware/Camera;
.locals 5

.prologue
.line 273
invoke-static {}, Landroid/hardware/Camera;->getNumberOfCameras()I

move-result v2

.line 274
.local v2, numberOfCameras:I
new-instance v0, Landroid/hardware/Camera$CameraInfo;

invoke-direct {v0}, Landroid/hardware/Camera$CameraInfo;-><init>()V

.line 275
.local v0, cameraInfo:Landroid/hardware/Camera$CameraInfo;
const/4 v1, 0x0

.local v1, i:I
:goto_0
if-ge v1, v2, :cond_1

.line 276
invoke-static {v1, v0}, Landroid/hardware/Camera;->getCameraInfo(ILandroid/hardware/Camera$CameraInfo;)V

.line 277
iget v3, v0, Landroid/hardware/Camera$CameraInfo;->facing:I

if-nez v3, :cond_0

.line 278
new-instance v3, Landroid/hardware/Camera;

invoke-direct {v3, v1}, Landroid/hardware/Camera;-><init>(I)V

.line 281
:goto_1
return-object v3

.line 275
:cond_0
add-int/lit8 v1, v1, 0x1

goto :goto_0

.line 281
:cond_1
const/4 v3, 0x0

goto :goto_1
.end method

This code uses invoke-static {v1, v0}, Landroid/hardware/Camera;->getCameraInfo(ILandroid/hardware/Camera$CameraInfo;)V instead of invoke-direct.

And there's some other slight differences.

Take a look at this post too:

http://xdaforums.com/showpost.php?p=13942583&postcount=409

---------- Post added at 12:38 AM ---------- Previous post was at 12:36 AM ----------

We can try to modify the default G-sensor position and then modify some codes to rotate only screen...

ro.sf.hwrotation=0

ro.bootanim.hwrotation=270

ro.sf.gsensor.xy=1

ro.sf.gsensor.position=3

bma250.sf.gsensorposition=0

mma8452.sf.gsensorposition=5

sensor.accelerometer.flip_xy=1

ro.media.capture.flip=horizontalandvertical

I dont know which one works.

Look this page, especially last post:

http://www.slatedroid.com/topic/475...nol-hero-10-collection-of-tweaks-and-goodies/
[LG Optimus 3D] M3wThr33:
Because I see two phrases from the other replies:

Those were the bigger confusions.
[LG Optimus 3D] saint_cow:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Can you please put up 4.2 camera that works with the new framework?
[LG Optimus 3D] bether:
@saint_cow

Here you are:
[LG Optimus 3D] saint_cow:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Does this have photosphere?
[LG Optimus 3D] defcomg:
Yeah i did not need the angle i just needed facing value if facing == 0 then execute the code if not do not that way the fromt camera would not be affected i thought of modifying Sensor Data but the thing is it would affect other apps by giving incorrect data.

The Problem is on the Ducati side from my understanding every camera gets upside down image then rotates it think the camera on SU760 are rotated they may be assigned a value like IMX072-R IMX072-L for us the order might be reversed therefore up is down and down is up.

Bayer Sensor ->YUV> Rotate > Ducati[simcop[ipp]] -.

The soulution is

pseudo code:

if the camera id does not = 1 which is the front run the code

else do nothing

about the L-R issue the problem is it rotates each image separately instead of the final joined image.

By the way has anyone tested 3D Video Recording on CM10 it does work

but will look into a better fix using you're info
[LG Optimus 3D] bether:
Yes.
[LG Optimus 3D] GentlyCriminal:
Did i understand correctly, that with these mods it is possible to create 3d pictures? Can I see them in3d in CM10?
[LG Optimus 3D] defcomg:
few post back i put up a link for the CM10 Version of ArcCAmera it does record 3D 720p SBS Video just not viewable as 3D on CM10 it does not take pics need to remove the is_3d tag that is what gets sent to the system to switch screen to 3D mode i took it off for video
[LG Optimus 3D] loll:
Acura ICS 3.1 FULL FINAL

Any solution for this rom from Acura ICS 3.1 FULL FINAL ?

- front camera force closed

- flip 3d camera

I need u r help !!!
[LG Optimus 3D] defcomg:
wait 4 P92x ics should be here soon

below is arccamera4cm

remove if its upside down in

.method public setParameters(Lcom/arcsoft/android/camera/engine/CameraEngine$Parameters;)I
[LG Optimus 3D] saint_cow:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

After I flash this I get the error when I try to use it. Any ideas?
[LG Optimus 3D] Dark Fear:
i'm on Latest CM10 release..

tried p1 camera.. 4.2 canare.. arccamera in 1st post.. but still can't run Camera..
[LG Optimus 3D] tiagoclc:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Is there an oficial ICS ROM coming out?
[LG Optimus 3D] defcomg:
think so
[LG Optimus 3D] Magxmushroom:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Is there any chance you will continue developing the camera on official 28b ics the shooting mode is very plexicated but video on 1080p works smoothish thank you
[LG Optimus 3D] kekio84:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

+1
[LG Optimus 3D] daveferry:
Hi defcomg, I installed P1 camera on CM10, is good but when I record in Full HD i get only 16-17 FPS, there is a solution to increase frame rate? Thanx!!
[LG Optimus 3D] defcomg:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Does arc cam give the same fps @ 1080?
[LG Optimus 3D] defcomg:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

Sure I will edit the camera remove the rotation stuff but I'm pretty sure there is a version in this thread somewhere that should work on 28b editing v28 cam apk from scratch will be a long process since there no changes in the cam it's the same as su760 ICS cam app need to replace cm10 cam files with the ones from v30b
[LG Optimus 3D] daveferry:
I tried ArcCamera.apk(first of attached file) and IArcCamera_RC2, both give force close when i try to open, P1 works well but has low FPS (1080p and 720P), maybe because of CM10? I'm on dualboot with ICSV28B+CM10(extSD)

there is another good camera that I can try between the ones you've posted?
[LG Optimus 3D] dreccon:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

but you never said thanks to Berni who made it possible! :(

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] daveferry:
you're right! I'm sorry but I am a novice with the forum! :p
[LG Optimus 3D] adri_360:
Re: [Mod]Cameras [ARC(ICS),P1(CM10),CM9,4.2(CM9+CM10+ICS),HDR(ICS)]

How are you defcomg?

Any work soon? :rolleyes:

Enviado desde TheDarkRoom
[LG Optimus 3D] defcomg:
i is good no new work .

Updated #1

Added Cm10+ Flashable Zip with:

ArcCamera Yes it do 3D but SBS Vid + Img

V30B Camera Libs

Replaced Cameraservices

Camera is 100% Working no rotation issues on CM10 should work on 4.2
[LG Optimus 3D] tavares_one:
sorry for the noob question but is any of those cameras for ics v28? i mean if you are adding new features like photosphere or panorama toarc camera
[LG Optimus 3D] kekio84:
Re: [Mod]Cameras Last Update 27/03/13 *****Added CM10 ArcCamera

+1
[LG Optimus 3D] Pesach85:
R: [Mod]Cameras Last Update 27/03/13 *****Added CM10 ArcCamera

Is in project photosphere for v28B?
[LG Optimus 3D] defcomg:
nope thats only on lge Camera the O3D uses ArcCamera interesting enough the 4x Jb Cam LGE CAm can do the 3D dunno if LG is planning jb upsate or new 3d device running jb is coming
[LG Optimus 3D] rezzsha:
Does the jb cam from 4x work with o3d, also did you say it" can" take 3d photos??
[LG Optimus 3D] vananuan:
i's flashed it with CM10

2D Camera is working good

but 3D camera is not .
[LG Optimus 3D] defcomg:
Added apk for v30a to Post #1

Camera Mod for ICS Camera has been Discontinued

Reason:

Nothing to really mod
[LG Optimus 3D] :
I would thank you both; Defcomg and Berni for the ported 3D ArcCamera. This fixed strange problems in the camera (running official CM10 nightly - now I don't have to flip the picture in photo editor anymore) and Face Unlock also work thanks to this fix.
[LG Optimus 3D] dreccon:
@Defcomg

What is the difference between your 12Apr Arc Camera and the stock one?

Sent from my dual-booting ICS/JB O3D!
[LG Optimus 3D] Zhaxos:
Thank you so much, defcomg!! :D
[LG Optimus 3D] daveferry:
I tried to install 12 apr arccamera on v30a after deleting arccamera.apk from system/app but it doesn't install!! there is something that I do wrong? I was able to recover to stock camera thanks to Titanium Backup
[LG Optimus 3D] SedyBenoitPeace:
EDIT: Solved!
[LG Optimus 3D] defcomg:
has more scene modes/focus its pretty much the same camera app that was used on su760 just edit it for v30a not tested but it shouldn't fc anymore on low batt
[LG Optimus 3D] defcomg:
weird its no longer a system app its installable but you may also copy it to system/app make.sure there is no .odex file.from previous version
[LG Optimus 3D] oile:
Deleting apk and odex, installing it on v30a, crashes after inizializing. Keeping odex and putting it manually, changing permission works but (guessable) no difference over the stock one a part from the english language
[LG Optimus 3D] lemach:
Thanks but unfortunately do not work:rolleyes:...give fc at launch.

I have send you a pm with the log.

---------- Post added at 11:45 AM ---------- Previous post was at 10:54 AM ----------

Thanks for the tip!

I have made two zip a original with the apk mod by defcomg and .odex and the same mod themed "ICS like" by me. Hope you like.The zips do a wipe cache and dalvik, maybe you must fix permissions.

Mod ArcCamera v28 30a 30b: http://www.mediafire.com/?axnddkualdlljiu

Mod ArcCamera v28 30a 30b *ICS THEMED* : http://www.mediafire.com/?633yaolqs29c2kr
[LG Optimus 3D] daveferry:
Thanks lemach!! you posted the same link for both camera...can you fix them?

PS now works (replace apk, change permissions, leave the odex and reboot!)
[LG Optimus 3D] lemach:
links fixed!

Can you use my zips and test it? And please tell me what rom are you using.

Thanks
[LG Optimus 3D] daveferry:
I installed ICS Themed flashing with twrp and it worked! I'm using ICS Stock V30A
[LG Optimus 3D] oile:
I guess keeping the stock .odex is NOT what defcomg had in mind to make his scene, iso, compression modifications work.

But surely he could make an adjustement to make it work with v30a ODEXED:good:
[LG Optimus 3D] liviugreuu:
v28-V30a-V30b-ArcCamera.apk - [Click for QR Code] (2.27 MB, 84 views)

Not work en v30b p925
[LG Optimus 3D] adri_360:
Lemach, is only work your zips for odexed framework roms?

But in my ROM had a FC.
[LG Optimus 3D] lemach:
I'm not sure...but it seems to work on odexed framework. My rom is partially deodexed and give me fc also.

Un abrazo!
[LG Optimus 3D] defcomg:
try delete ArcCamera.odex ArCamera.apk from /system/app reboot to recovery clear cache / Dalvik then reboot and install it as a normal apk do not copy it to /system/app
[LG Optimus 3D] lemach:
I do not know what happens?? i have done what do you say me and when i try install it like a normal app the installer says me that app is not installed.:mad:

I do it again but this time i have moved the mod apk to data/app and it is not showed at launcher...:rolleyes::rolleyes::eek:
[LG Optimus 3D] Zhaxos:
Hi guys, i' ve tried it in my ROM, but it gives me FC also.

I've tried the ArcCamera in the first post and lemach's .zip.

But the result is the same.

Defcomg, can you fix it? You can try to edit the rotation again. Maybe there was an error when you saved the .apk...

I don't now.

In case someone knows how to install correctly the .apk, tell me please.

Thank you for your attention. :)
[LG Optimus 3D] daveferry:
Therie is a zip flashable by lemach a few post ago you can try with that! better make a backup first with titanium backup!

However i left the odex file and copied only the apk..
[LG Optimus 3D] defcomg:
i tested the apk without issue try this one
[LG Optimus 3D] speedyranger:
:laugh:
[LG Optimus 3D] lemach:
This one works for me!!! lol,:victory::victory::victory: Have you made any new change on this apk? Thanks defcomg! :highfive::good:

Here you are a flashable zip.

Tell me if it works for you.

Now I hope we can take pictures with low battery, i will post it.
[LG Optimus 3D] Zhaxos:
Thank you so much!

It works fine! :D :D :D
[LG Optimus 3D] defcomg:
yes there other one had mediascan turned off so the app could launch during media scan
[LG Optimus 3D] speedyranger:
:good:
[LG Optimus 3D] adri_360:
Now works! Thanks for your work defcomg and thanks you lemach for your mod.

Eres un crack lemach, gracias los zip y tu mod de ICS.

Un abrazo
[LG Optimus 3D] bensmokie:
Guys how can i get the jelly bean camera to work on ics? once Defcom made a mod like that and it worked on a ICS ported by Xbsall, but i was trying to use now with V28 and it gives me FC, the jelly bean camera is really amazing,and i would love to get it in ics :)
[LG Optimus 3D] billy8362:
How do I install the rar for the 4.2 camera.
[LG Optimus 3D] defcomg:
Flash This

http://xdaforums.com/showthread.php?t=1966426

Should work on ICS +
[LG Optimus 3D] billy8362:
This will work on cm10? Do I need to delete old camera from system? Thread says its for g-nex will it work on ours?
[LG Optimus 3D] bensmokie:
Thanks Defcomg, I flashed it more than 6 times now, the flash went well but i don't see the Icon in my phone.
[LG Optimus 3D] lemach:
Finally, i can not take pictures if battery level is over 5% or less...
[LG Optimus 3D] wyl326:
Will

How changed 4.0 camera photos with a 16:9?

2.3 seems to be this: TICameraCameraProperties.xml

4.0 of this document?

How to do it?

Please

sorry for my english.困惑：
[LG Optimus 3D] defcomg:
4.0+ has no xml file if you need 16:9 you have to use 3rd Party app Like Camera FV+ Or edit the apk change 4:3 values to 16:9
[LG Optimus 3D] wyl326:
thanks ,but Change which value inside the APK ?:confused:

Just want native！
[LG Optimus 3D] rezzsha:
hey defcomg, found this thread which modifies the code to Vignette, to mimic the ultrapixel procedure , you reckon you could edit the stock app with somehting like this ??

http://xdaforums.com/showthread.php?t=2275464
[LG Optimus 3D] defcomg:
yes but i really don't see the benefits to this you can not really mimic hardware only produce same dimensions

http://www.htc.com/www/zoe/ultrapixel-sensor-size/
[LG Optimus 3D] cyclonmaster:
Did anyone manage to have a working photosphere on O3D?
[LG Optimus 3D] kaanmete:
not fixed :(

i download this apk and copy to /system/app folder and replace it. but all cameras currently upside down. :(((
[LG Optimus 3D] rezzsha:
you have to adjust the permission , and then reboot;sometimes twice, then it should work
[LG Optimus 3D] lw_wl:
hi, defcomg ! would you planing on the back key and search key ?

i used to changed the search key into power key, so i can use it as a lock screen button anytime,

even when something impropriety showing on screen :)

but now the searh key is the only back key.

i really hoping someone like you would figure out how to turn the back key into back key(not home),

and the search key would be free to be modified.

thanks for your time!

oh, one more thing, i hope you dont mind

that may i link this thread to a chinese mobile phone forum,

and add Tone 4 and recording silent ogg files in it?

THANKS! u r a great guy!

---------- Post added at 12:40 PM ---------- Previous post was at 12:35 PM ----------

did you try deleted the ArcCamera.odex file and reboot ?

i found out the phone would start a process of update app everytime i did some modified in the system folder.

so the reboot is needed.

and the odex file, you should backup it ,before you delete it.

=)
[LG Optimus 3D] kaanmete:
YESSSS. this is solved. :D really thank you.
[LG Optimus 3D] defcomg:
Long Press Options Key = New Search Key. it has been said a million times lol Nothing Can be done about the Screwed up Keys untill the sources are released this prob is at Kernel level very low level.

As for linking the forum sure go ahead i don't mind XDA is 4Sharing:D:good:
[LG Optimus 3D] lw_wl:
:victory: glad it worked \(^o^)/

---------- Post added at 02:10 PM ---------- Previous post was at 01:58 PM ----------

Thanks!!

so i linked it !
[LG Optimus 3D] kyanox:
The camera is still a bit glitchy, I suspect the left and right cameras are still saving their data to the wrong side of the 3d pic making it inverted.

Great work so far however. Too bad we can't get to source code, it would probably be fixed quite easily. 2D pics work great btw, and if you really need to use the front facing camera, you can rotate the pic after taking it.
[LG Optimus 3D] kaanmete:
Gallery and camera android4.2 apk. Upside Down

hello defcomg thank you for this hard work.

this apk android 4.2 camera and gallery. gallery fully working and really nice. but camera is upside down. please, can you fix it ?

thank you :)
[LG Optimus 3D] bether:
This works exactly like stock camera and another cameras.

Issue needs fix on the framework level or something else but not in the camera apps.

Anyway nice Gallery you upload but for fully functional needs photoeditor.apk or similar. That cooperate together.

---------- Post added at 05:25 PM ---------- Previous post was at 04:45 PM ----------

I added silent tones for camera and recordings few post ago.

http://xdaforums.com/showpost.php?p=33481417&postcount=33

In the end rest of changes will not nessesary after repair connecting of framework and camera.
[LG Optimus 3D] sly1982:
Hi all i've tried every way to install but when i overvrite app in system/app folder i miss camera icon. I've tried too to delete odex file but nothing... what can i do to fix it? Thanks

Inviato dal mio LG-SU760 con Tapatalk 2
[LG Optimus 3D] bether:
You have to change permissions (rw-r--r--) of the copied file.
[LG Optimus 3D] defcomg:
Do Not overwrite the app delete it first or rename it to Arccamera.apk.bak
[LG Optimus 3D] defcomg:
for people who dont know what rw-r--r-- is it should look like the pic below
[LG Optimus 3D] sly1982:
i give right permission but... still nothing... i've no camera icon on app draw
[LG Optimus 3D] defcomg:
delete it copy it again set permission check app draw if nothing shows restart
[LG Optimus 3D] bether:
@defcomg could you try deodex ArcCamera.pak from Cube 3D which uploaded 2old4toys?

I can't.

http://xdaforums.com/showpost.php?p=33487188&postcount=48
[LG Optimus 3D] kyanox:
Is this the same ArcCamera? My assumption from reading the thread is that orientation is handled from the framework and not the ArcCamera.apk. Its almost like the SU760 uses a reverse camera, or maybe the driver passes it left / right vs right / left for front/back on the 3d platform.. If we could fool the rom into changing which display (front vs back) displays (left vs right) camera, we probably could at least fix the ghosting issue, and possibly also the orientation issue.
[LG Optimus 3D] defcomg:
need the framework folder anyone have system dump?

also anyone still have P940 ics system dump
[LG Optimus 3D] defcomg:
Correct the problem is with the drivers the sensor data (MPL Orientation Sensor to be exact ) that is sent to the Ducati Might be diff From the SU760's sensor IT Works like this Camera Lense > CMOS Array Sensor > Ducati> Preview

CMOS > Nomally Collects the Image upside Down i think this might be the case with all the Camera

DUcati not he bike is THe Image Processing unit it Collects frames and rotates them and sends them to the preview when you click shutter button it saves the current frame sends it to the Jpeg Encoder.

My Fix or whatever you wanna call it does this using

setDisplayOrientation(x) and setRotation(x) in the Arccamera APK where x is there an i which is a variable that is inputed from the data collected by the MPL Sensor so that would be 0 90 180 270 now my fix is to manually set the values to 180 which = upside well in this case correcting the orientation this is done when the methods in the framework class are invoked/ran. What i was think instead of doing this in the APK we could invoke this in the Framework,jar itself therefore correcting the preview in every camera Application. Oh yeah the Video Rotation uses this method setOrientationHint(x) will try impliment it. Back to the Ducati what might be happening is the sensor is either the IMX072 Drivers for SU760 Pre rotate the image and then ducati rotates the image again therefor returning it back to 0 degree upside down image. The 3D it Might Have todo with Real3D if anyone has looked at the sdk check if there is a rotation method.
[LG Optimus 3D] bether:
2old4toys uploaded system of SU870 and sent me on PW link to his www.box.com with it.

LG-SU870 system
[LG Optimus 3D] sly1982:
nothing... i've ever the same problem
[LG Optimus 3D] saint_cow:
Little help please, I have frozen the un installed the original, copied the next apk to system app, changed the permissions and rebooted and still no icon for the camera.

Edit, seems as though titanium backup recognized the new camera apk as the original that I had frozen and un installed, just checked and it was there but frozen, defrosted it and all is good, thanks for the fix mate!
[LG Optimus 3D] sly1982:
i've lost original apk too can someone post it?
[LG Optimus 3D] Pesach85:
I changed bunches of file with no results :)

Ducati-m3 is the same :)

usr folder changed with no results.. :)

Looks all the files i put in has no effect. :)
[LG Optimus 3D] lw_wl:
have you changed the permissions of the file into wr-r--r--？

and reboot ?

=)
[LG Optimus 3D] saint_cow:
DEFCOMG FYI. Some odd behavior I have noticed. 2D camera righway up - switch to 2D video right way up. 2D camera right way up - switch to 3D upside down - switch to 3D video then it's the right way up - switch back to 3D camera and it's the right way up. Works in any combination

I guess in short, if you are in 2D or 3D mode and it's upside down just switch to camera/video and back again and it should be the right way up.

Edit, this just changes the view, 3D and 2D video is still recorded upside down. And as you have said if the 3D button is down 2D and 3D video will be recorded the right way up.
[LG Optimus 3D] sly1982:
Yes i've changed it but nothing

Inviato dal mio LG-SU760 con Tapatalk 2
[LG Optimus 3D] sly1982:
can someone post original arccamera.apk? i've lost it
[LG Optimus 3D] wessi86:
You will have to rename it though.
[LG Optimus 3D] sly1982:
thanks

---------- Post added at 04:08 PM ---------- Previous post was at 04:04 PM ----------

can someone help me? i need full camer working, i've tried everithing but... nothing... pls help me
[LG Optimus 3D] logg88:
where is to put the file??
[LG Optimus 3D] defcomg:
system/app

Added 4.2 Camera Lets see your photosphere
[LG Optimus 3D] lemach:
I already tried the jb camera but i do not like the ui and I do not see difference of quality with stock ics camera.

To take picture like photosphere i prefer use app called propanorama o procapture.

i would like a mod camera with the improvements of cam mod of gb like bitmap dithering, smart denoise, iso selected, sports mode, etc, like you can read in changelog of gb modcamera o3d thread. I hope you can do any improvement on ics camera.