Can someone port the camera hal from oneplus 3 with oxygen os - Xiaomi Mi 5 Questions & Answers

Can someone port the camera hal from oneplus 3 with oxygen os to make mi 5's camera better.
Sultan has already port the camera hal from oxygen os to cm 13,there is the link:http://forum.xda-developers.com/oneplus-3/development/rom-kernel-unofficial-cyanogenmod-13-0-t3444221
The both devices' sensor is sony imx 298,so I think it can be worked.

is this possible? is there any devs that can answer this?

This guy ported Hydrogen camera to aosp/cm
https://plus.google.com/+JishnuSur16061993/posts/LaCeDyyFv3d
give it a shot

Philb90 said:
This guy ported Hydrogen camera to aosp/cm
https://plus.google.com/+JishnuSur16061993/posts/LaCeDyyFv3d
give it a shot
Click to expand...
Click to collapse
The link isnt working can you provide another one. Thx.

I think you did not understand that there is a difference between camera hal, and camera app...
SultanXDA (and all OP3 roms...) use the OxygenOS camera hal for OP3. We use the MIUI camera hal for Mi5... so we both use the original vendor camera hal!

Related

[Help Needed][Developers] ImplementingCustom Camera HAL/Drivers for 60+ FPS Recording

Hi everyone, hope you're all doing fine.
As you might have heard of, Sultanxda has built his own Camera HAL for OnePlus devices, and therefore has enabled native 60,90 and 120 FPS recording by implementing this Camera HAL on his own unofficial CM-based ROMs. He is the only developer to date to build custom Camera HAL for a device.
Here's a little bit of a background of what Camera HAL is and what it basically does:
The HAL sits between the camera driver and the higher level Android framework and defines an interface you must implement so apps can correctly operate the camera hardware.
Fast forward to today, I and @defcomg have tried many ways and methods to enable HFR(High Frame rate) recording(http://forum.xda-developers.com/showthread.php?t=3489084), but it seems like the Camera driver needs to be built from the Source.
@defcomg recently found out that Lenovo had leaked a .zip file containing the Camera HAL/Driver sources for imx214 sensors, particularly Nexus 6's camera sensor.
What I'm asking from developers(or any user that might help) is to try to reach me on Telegram( @blinqipa) so I can share the .zip Camera HAL source(since it is Qualcomm proprietary, and uploading it elsewhere would just be taken down sooner or later) to implement on a custom ROM (preferably CM based).
Some CM commits regarding Camera drivers and HAL1:
http://review.cyanogenmod.org/#/c/167484
http://review.cyanogenmod.org/#/c/167485
http://review.cyanogenmod.org/#/c/167486/"
Edit: Attaching some Screenshots from the .zip file just in case someone needs as proof.
http://imgur.com/a/2qyFr
http://m.imgur.com/Q666mGK
blinqipa said:
Hi everyone, hope you're all doing fine.
As you might have heard of, Sultanxda has built his own Camera HAL for OnePlus devices, and therefore has enabled native 60,90 and 120 FPS recording by implementing this Camera HAL on his own unofficial CM-based ROMs. He is the only developer to date to build custom Camera HAL for a device.
Here's a little bit of a background of what Camera HAL is and what it basically does:
The HAL sits between the camera driver and the higher level Android framework and defines an interface you must implement so apps can correctly operate the camera hardware.
Fast forward to today, I and @defcomg have tried many ways and methods to enable HFR(High Frame rate) recording(http://forum.xda-developers.com/showthread.php?t=3489084), but it seems like the Camera driver needs to be built from the Source.
@defcomg recently found out that Lenovo had leaked a .zip file containing the Camera HAL/Driver sources for imx214 sensors, particularly Nexus 6's camera sensor.
What I'm asking from developers(or any user that might help) is to try to reach me on Telegram( @blinqipa) so I can share the .zip Camera HAL source(since it is Qualcomm proprietary, and uploading it elsewhere would just be taken down sooner or later) to implement on a custom ROM (preferably CM based).
Some CM commits regarding Camera drivers and HAL1:
http://review.cyanogenmod.org/#/c/167484
http://review.cyanogenmod.org/#/c/167485
http://review.cyanogenmod.org/#/c/167486/"
Edit: Attaching some Screenshots from the .zip file just in case someone needs as proof.
http://imgur.com/a/2qyFr
http://m.imgur.com/Q666mGK
Click to expand...
Click to collapse
Your biggest issue will be finding someone to take this up being CM based. Most have stopped using CM as a base for anything except the theme engine due to the rest of the code being garbage.
zelendel said:
Your biggest issue will be finding someone to take this up being CM based. Most have stopped using CM as a base for anything except the theme engine due to the rest of the code being garbage.
Click to expand...
Click to collapse
Yeah you're right, but I think CM is more flexible.
Sent from my Nexus 6 using Tapatalk
blinqipa said:
Yeah you're right, but I think CM is more flexible.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Not really. They are the least flexible. Not to mention no one is gonna mess with the blobs for a device. Not only will it cause issues but it is alot of work for something that gets changed with every update.
And building the driver from source is almost impossible as there is no source code for it.
zelendel said:
Not really. They are the least flexible. Not to mention no one is gonna mess with the blobs for a device. Not only will it cause issues but it is alot of work for something that gets changed with every update.
And building the driver from source is almost impossible as there is no source code for it.
Click to expand...
Click to collapse
I have access to the zip file which contains imx214 drivers ready to be built.
Sent from my Nexus 6 using Tapatalk
I mentioned this in the previous thread, but the OnePlus one uses the same sensor as the Nexus 6, why not just pull the already built driver from Sultanxda's ROM?
Hi
Can anyone help me in creating a custom camera Hal for zuk z1?
It has the same sensor as the nexus 6 and oneplus one
I like the manual camera controls on the one

Oxygen Camera App

Hi,
is anyone able to make a flashable .zip of the oxygen camera app for cm13/14?
Or won't the app work on cm?
Thx a lot!
Sent from my ONEPLUS A3003 using XDA-Developers mobile app
It won't work on CM because of a lot of private not open source code that oneplus put into making the camera work. That's one of the limitations of third party roms on this phone or the op3, being that the camera quality isn't the same as on OOS. Google oneplus camera blobs for more info on this.
Sent from my ONEPLUS A3000 using Tapatalk
i'm also hestitating to flash a custom rom beacause of the oos camera.
how much quality / setting options will i lose with RR / cm13 / cm14?
dreezz said:
i'm also hestitating to flash a custom rom beacause of the oos camera.
how much quality / setting options will i lose with RR / cm13 / cm14?
Click to expand...
Click to collapse
hows the cam quality
I have been using CM13 and CM14. I am now going back to OOS because you loose a good amount of low light noise cleanup. and you don't get EIS2.0 and Optical Image Stabilisation combined. which is what EIS2.0 is Electronic and Optical combined. Anywhoooo. yeah and the CM snap cam isn't bad......but in low light the camera creates a lot of noise....but w/ OOS camera it can clean that noise up pretty good....I was going to get the pixel where they barely have to clean up any noise and the noise they have is fixed w/ a really good HDR+ mode....but I'm not about to pay over 800 for the 128 Pixel XL.....hence why i got the OnePlus3T. So if you really want good low light stick w/ OOS......CM13 Snap cam isn't horrible.....but it's not as good as OOS's camera app because of the noise reduction blobs stuff (which OnePlus and snapdragon prob wrote to fully utilize EIS2.0 that works really well w/ snapdragon 821 and they know exactly what kinda noise the cheaper camera sensor produces. Snap Camera only fixes generic noise..not noise specific to the oneplus 3t's camera sensor)
Long story short....if you want the best image from this phone...stay on OOS. but isn't freedomOS OOS but w/ more features....I hope so because I would like to have more features built in vs using xposed. and I hate the recents button placement on OOS...with a passion.
I installed the apks provided here: http://forum.xda-developers.com/oneplus-3/themes/port-oxygenos-stock-camera-cm-t3451721 on my 1+3T running Resurrected CM14 based ROM and it works like a charm. Just install the apks from under "NOUGAT ROMS." Do NOT flash the zip as they will bootloop your phone. Pretty sure quality is not as good as the stock or latest OOS but gets the job done and RR is too good to pass up for me

HDR+ on OnePlus 3t to make its camera better than OnePlus 5 in low light

I know there are many posts on XDA about HDR+ on oneplus 3T, but I can't understand why oneplus 3 can't support HDR+ , but Moto z can support it successfully(which has a a very inferior device as compared to 3t). I know our device has everything which is required for HDR+. Please I request you all to try all methods to make HDR+ working. It will be a huge huge improvement in our 3t camera and make it comparable to pixel or even s8 camera in low light. I know our device has a great potential even in camera department but necessary software processing is not available to utilise great hardware. I am not rooted and not knowledgeable about developing. You can try spoofing app to think it work on pixel/nexus 6p/5x or make modified Google camera app or do anything which make HDR+ working. We already have lens blur on Google cam which is working great for me for both front and back camera. Only low light performance of this device is not good as compared to nexus 6p of my friend only when HDR+ on, but in all scenerio the camera of my 3t rocks if HDR+ off on nexus 6p. Developer guys do help me. Also it will make oneplus 3t camera very comparable to OnePlus 5 / pixel/ s8 / iPhone 7 or even better in few terms. Do please do help it will be great for all OnePlus 3t users.?
I think it's not impossible different sensor with different pixel size in pixel and Nexus phones
Nope I don't think same because HDR+ works taking multiple shots at different exposer and combining in one by involving multiple process and producing a brighter and clear image at low light and great dynamic range. Yeah I agree pixel size and sensor are different but it can make difference in picture quality and not agree with HDR+ is not possible because it's software based not hardware and if so chooser is same for processing pictures
It is possible!
Moto z port
https://forum.xda-developers.com/moto-z/themes/camera-app-hdr-enabled-t3543988/page1
Video:
Sent from my OnePlus3T using XDA Labs
CameraNX-Experiment-V5.5-signed
HDR+ mode doesn't show up
OxygenOS 4.1.6
Someone should try it on lineageos
May be something happen if we make app trust we are using pixel phones
kaif01 said:
May be something happen if we make app trust we are using pixel phones
Click to expand...
Click to collapse
hdr + working in 3T..
vizhigal said:
hdr + working in 3T..
Click to expand...
Click to collapse
correct ss attached
vizhigal said:
correct ss attached
Click to expand...
Click to collapse
Which apk ?
Can you share the link
vampire36 said:
Which apk ?
Can you share the link
Click to expand...
Click to collapse
I downloaded many google camera .apk for porting .finally ended up in 3 apk which you can try for HDR+ . slow motion not working... . download link and instructions are attached.
Apart from HDR+ download link for the below is also there
oneplus5 camera ported to 3T
Oneplus security center apk translated to english
oneplus5 reading mode translated to english for 3t
confirm working
vizhigal said:
I downloaded many google camera .apk for porting .finally ended up in 3 apk which you can try for HDR+ . slow motion not working... . download link and instructions are attached.
Apart from HDR+ download link for the below is also there
oneplus5 camera ported to 3T
Oneplus security center apk translated to english
oneplus5 reading mode translated to english for 3t
confirm working
Click to expand...
Click to collapse
Tried link the first one. Works great thanks
Even though the hdr+ option is there, there is no processing. It does not show the processing message, and the picture is not good quality.
Freedom os 14 (OB12 unrooted)
Oneplus 3T will receive Android 8.0 in 2017. Hope they will do it in official update
Can somebody with a 7.1.2 based rom check if hdr+ processing is working or not?
Is it me or is there not much difference in hdr+ in this camera and normal hdr on the OnePlus camera?
hassan_1000 said:
Is it me or is there not much difference in hdr+ in this camera and normal hdr on the OnePlus camera?
Click to expand...
Click to collapse
There is no post processing, so hdr+ is not doing anything.
dinindourden said:
Can somebody with a 7.1.2 based rom check if hdr+ processing is working or not?
Click to expand...
Click to collapse
I can confirm not working in 7.1.2. Tried it on the latest RR and Pheonix AEX. The option is there but as others mentioned, there is no processing after the shot.
Here's a camera with HDR +. You do not need to make any changes to build.prop. Install as usual apk.
In the settings camera you set HDR + works constantly and turn off the flash!!!
Please search GCam_4.4.012.156195200-41155109_MI5S_MIUI_7.0_N5X.apk (I can not send a download link because there are no 10 posts, Write to me and I will send a link in a personal)
Groh1234 said:
Here's a camera with HDR +. You do not need to make any changes to build.prop. Install as usual apk.
In the settings camera you set HDR + works constantly and turn off the flash!!!
Please search GCam_4.4.012.156195200-41155109_MI5S_MIUI_7.0_N5X.apk (I can not send a download link because there are no 10 posts, Write to me and I will send a link in a personal)
Click to expand...
Click to collapse
Are you running OOS 3.1.6 or a OOS Beta?
On the latest Beta 21 I noticed that the app sometimes hangs for quite a while and seems frozen.
It sometimes force closes too, while still saving the last photo. HDR+ works fine though.
Somebody with the apk, please link it here!
Thanks!

Please modify the camera drivers of lenovo p2

As everyone knows lenovo p2a42 doesn't support Google camera hdr+ in rear cam and that is due to faulty camera drivers which doesn't support camera 2 api correctly so please come and tag some good developers who can develop a modified camera driver like this which support camera 2 api level_3 and Google cam We have to tag some ROM developers to bring correct modified drivers for our camera that support camera 2 api correctly just like this one we have to develop some for our phone
https://forum.xda-developers.com/showthread.php?t=2339226
If anyone knows please tag some good developers for our Lenovo p2. We can take Redmi note 4x camera drivers which has same lens as we have.

Needs MIUI 10 Camera for custom roms !

Does anyone have miui 10 camera for mi5 ?? i would install custom rom but i have a problem with camera app. I was try Google Camera but it's not good as miui camera. That's made me back to miui. Now, because xiaomi has been ended support for mi5, i want install costum rom.
Does anyone have it ???
I ask this in syberia,pixel experience,LOS16 and AOSP but some not answer and who answer tell me is hard to port stock camera cause they dont have some things....
**** and shame cause Xiaomi stock camera is best but cant be portet to custom ROM
OwnageWOT said:
I ask this in syberia,pixel experience,LOS16 and AOSP but some not answer and who answer tell me is hard to port stock camera cause they dont have some things....
**** and shame cause Xiaomi stock camera is best but cant be portet to custom ROM
Click to expand...
Click to collapse
you should not be asking in every android pie thread, if there was a port for the mi5 in android pie there would be in the app section, gcam is quite good, better than the miui camera in my opinion, but please stop asking on any thread or port it yourselves
mi_guel said:
you should not be asking in every android pie thread, if there was a port for the mi5 in android pie there would be in the app section, gcam is quite good, better than the miui camera in my opinion, but please stop asking on any thread or port it yourselves
Click to expand...
Click to collapse
It's okay of there is no MIUI camera port. I still can use moment for photo, Gcam for video and Nokia kamera for all. What i need is manual camera such on MIUI. Because i like their manual mod:fingers-crossed:
imadeekosatria said:
It's okay of there is no MIUI camera port. I still can use moment for photo, Gcam for video and Nokia kamera for all. What i need is manual camera such on MIUI. Because i like their manual mod:fingers-crossed:
Click to expand...
Click to collapse
try the oneplus camera for manual mode, it's quite great at least in oreo
MIUI camera was great
I have to agree that MIUI camera, at least in latest Global dev was great. Neither one come close to it, at least for manual control over exposure, iso etc. I'm also in a strugle to find a good camera, tested all of them, but nothing comes close. I'm on LOS 16.

Categories

Resources