Hello,
I'm with locked bootloader and I need some help from rooted and experienced devs:
1. What are the files responsible for camera operations in such a way that we can mod the camera functionality? Please upload them!
I assume camera apk, mediadevices xml and also the Qualcomm libraryes and maybe other unknown files.
2. Please name some tools to edit those files. Hexa or binary.
I really think Sony and Qualcomm are hiding nice stuff from us like qhd 60fps, poor bitrate, 1080p 960fps or even more.
Inerent said:
Hello,
I'm with locked bootloader and I need some help from rooted and experienced devs:
1. What are the files responsible for camera operations in such a way that we can mod the camera functionality? Please upload them!
I assume camera apk, mediadevices xml and also the Qualcomm libraryes and maybe other unknown files.
2. Please name some tools to edit those files. Hexa or binary.
I really think Sony and Qualcomm are hiding nice stuff from us like qhd 60fps, poor bitrate, 1080p 960fps or even more.
Click to expand...
Click to collapse
I think a good start would be to dump the standard camera app and check its dependencies and the private api usage.
Inerent said:
I really think Sony and Qualcomm are hiding nice stuff from us like qhd 60fps, poor bitrate, 1080p 960fps or even more.
Click to expand...
Click to collapse
Yes, inside the phone . Or are you planning on modding actual hardware via software? lol.
Related
China 2.2 Rom missing some file for 720P
libOMX.TI.720P.Decoder.so and libOMX.TI.720P.Encoder.so
I attached files from Milestone 2:
Maybe sombody have an idea to get 720P on Defy
http://webcache.googleusercontent.c...torola.com/message/307129+&cd=6&hl=de&ct=clnk
from BizzaBoy @ supportforums.motorola.com
"The DEFY camera modules is able to do 720p. It's a MT9P012 according to the boot log.
Looking at the kernel sources on opensource.motorola.com (drivers/media/video/mt9p012.c), there is a FRAME_1296_30FPS mode supported which reads in a 1296x972 frame that would be cropped down to 1280x720. From the code it appears that those smaller modes are achieved by skipping pixels. This also explains why there is no 720x480 mode, just a 648x486 internal mode.
Ok, next looking at TI's OMAP3 literature, it says that it can do up to 720p HD.
So at the end of the day the DEFY *should* do 720p, and a 2.2 update *might* enable that.
I personally would be extatic to have 720p. The DEFY is really mindblowing as a allround device, where I can record videos on our weekly ski-trips, but 640x480 @30fps really, really sucks. 640x480 @60fps would be great, or 720p @30fps. Overall the camera/camcorder interface needs some substantial work. You cannot switch to a explicitie white balance (only auto), which is a pain if you record video where the lighting changes and the camera software tries to readjust the white balance. The other thing that drives me nuts is that you cannot adjust the image quality settings for the jpeg encode. "
humm i'll check it too
walter79 said:
I found this in china 2.2 Rom.
/etc/cameraCalDef5M.bin and /etc/cameraCalDef8M.bin
Did Defy maybe have 8 MP Camera like Milestone XT720?
I renamed ...CalDef8M to CalDef5M and replaced the original 5M.bin
Camera is a bit faster.
I will search for a better camera app.
Click to expand...
Click to collapse
This is crazy!! all the stuff cpu overclock 1200Hz, Camara 8 MP, and Gpu!!
Fabulous!!
walter79 said:
I found this in china 2.2 Rom.
/etc/cameraCalDef5M.bin and /etc/cameraCalDef8M.bin
Did Defy maybe have 8 MP Camera like Milestone XT720?
I renamed ...CalDef8M to CalDef5M and replaced the original 5M.bin
Camera is a bit faster.
I will search for a better camera app.
Click to expand...
Click to collapse
Are you sure that quality of photos is better now? Have you seen if the resolution is bigger(in details, after take a photo)?
Sent from my MB525 using Tapatalk
aikidoka90 said:
Are you sure that quality of photos is better now? Have you seen if the resolution is bigger(in details, after take a photo)?
Sent from my MB525 using Tapatalk
Click to expand...
Click to collapse
Resolution is not bigger in default Camera.App But in my opinion cam is a bit faster.
I've taken 2 photo before and after renaming file, and i get the same photo, with same specification and resolution.
I've also tried with Pro Zoom Camera 5X and with Vignette, i get the same picture...
So i think we have "only" 5Mo in hardware...
Ok, it a 5MP Cam but 720p should possible.
Have a look to this page. (only google cache)
http://webcache.googleusercontent.c...torola.com/message/307129+&cd=6&hl=de&ct=clnk
"The DEFY camera modules is able to do 720p. It's a MT9P012 according to the boot log.
Looking at the kernel sources on opensource.motorola.com (drivers/media/video/mt9p012.c), there is a FRAME_1296_30FPS mode supported which reads in a 1296x972 frame that would be cropped down to 1280x720. From the code it appears that those smaller modes are achieved by skipping pixels. This also explains why there is no 720x480 mode, just a 648x486 internal mode.
Ok, next looking at TI's OMAP3 literature, it says that it can do up to 720p HD.
So at the end of the day the DEFY *should* do 720p, and a 2.2 update *might* enable that.
I personally would be extatic to have 720p. The DEFY is really mindblowing as a allround device, where I can record videos on our weekly ski-trips, but 640x480 @30fps really, really sucks. 640x480 @60fps would be great, or 720p @30fps. Overall the camera/camcorder interface needs some substantial work. You cannot switch to a explicitie white balance (only auto), which is a pain if you record video where the lighting changes and the camera software tries to readjust the white balance. The other thing that drives me nuts is that you cannot adjust the image quality settings for the jpeg encode. "
Kernel: https://opensource.motorola.com/sf/go/projects.moto_defy/frs.defy_latam.jorla_u3_6_14_5
Good, there is still a chance we could get 720p camcorder at some point, since both 3630-800 and MT9P012 are capable of it.
wow seems amazing
Have you get it work?
djsven said:
Have you get it work?
Click to expand...
Click to collapse
Have no time more testing this.
Our Camera component can't take pictures biggers than 5M, in the other thread that tal about 720p we can found the URL of datasheet component. Here I will try to paste it (remmember, buy a beer to BizzaBoy! )
trulydisplays. com/ccm/specs/5.0M%20Sensor%20Aptina%20MT9P012%20Spec.pdf
As I wrote , Acer Liquid use the same camera (MT9P012).
But no 720p for liquid but I think Liquid Steam has same camera with 720p support.
Hope this one help..
Thank you for working for us
what's next? i mean, to get VGA @ 120FPS or HD working?
I think must be easy modify the Android Kernel to accept the 120FPS but will be more complicated hack the Camera.apk to add this feature.
I would start to hack for HD Video. Maybe will be complicated for the Kernel but easaly for the application.
i will donate, if this works good
Thanks for your job master!!! i love you!!!!!!!
demolition23 said:
As I wrote , Acer Liquid use the same camera (MT9P012).
But no 720p for liquid but I think Liquid Steam has same camera with 720p support.
Hope this one help..
Click to expand...
Click to collapse
Yes, acer liquid stream is able to record video at 720p...and if it has the same camera, is a good new for us
aikidoka90 said:
Yes, acer liquid stream is able to record video at 720p...and if it has the same camera, is a good new for us
Click to expand...
Click to collapse
And here is the rom dump
http://www.megaupload.com/?d=UFO2LEVV
pls someone take a look..
Please reupload!
Link is no available
I searched for camera mods to allow for capturing of RAW data from the sensor on the Charge.
As far as I can tell, nobody has been successful in getting any Android phone to capture the RAW data.
Does anybody know if this is possible? I know others who would love to have the ability. I didn't really want to start a discussion of RAW vs JPEG compression, etc. I know the drawbacks and advantages of RAW.
I think that this would require camera firmware modifications as well as Camera APK modifications. My development knowledge is very limited, hence my name.
Does anybody know if this would require a reasonable about of effort or if its far beyond being worth the trouble?
It looks possible, and the code is in the API to do this, but it has yet to be done as far as I know. It looks to be an issue with the "RAW callback function" always returning NULL. If I have some time I will to look into it.
Do Not ask Questions in the Development thread if it is not Development it does not belong in here
Moving to General
My apologies and thanks.
Bumping this, seems like an interesting feature, considering it has API support.
bcpk said:
Bumping this, seems like an interesting feature, considering it has API support.
Click to expand...
Click to collapse
I would plus one this
Sent from my Xoom using XDA Premium App
I don't know if its prohibitively difficult to mod, but I couldn't find any other phone which has been developed to shoot RAW. Perhaps people just haven't shown much interest.
I would love this feature, but I figure most people shooting in RAW already have a "real" camera. I would expect a decent increase in photo quality though. I have 32 GB on my phone waiting to store some RAW data!
I just wish someone would mod the camera APK to use +2 sharpness, which would result in better quality photos. The camera app applies a bad blur/denoise filter on the lower sharpness settings which reduces the quality of the picture. Worse, the camera does not save that setting, so it needs to be set each time I use it.
BeefJerky9 said:
I just wish someone would mod the camera APK to use +2 sharpness, which would result in better quality photos. The camera app applies a bad blur/denoise filter on the lower sharpness settings which reduces the quality of the picture. Worse, the camera does not save that setting, so it needs to be set each time I use it.
Click to expand...
Click to collapse
You know u can modify the frame work for the camera, I've done it before, search xda. I doubt remember the form
Sent from my DROIDX using XDA Premium App
xdadevnube said:
I don't know if its prohibitively difficult to mod, but I couldn't find any other phone which has been developed to shoot RAW. Perhaps people just haven't shown much interest.
I would love this feature, but I figure most people shooting in RAW already have a "real" camera. I would expect a decent increase in photo quality though. I have 32 GB on my phone waiting to store some RAW data!
Click to expand...
Click to collapse
Shooting raw will make the color correction possible which will significantly boost the image quality to...a 70 dollars' compact camera you can find on ebay, BUT, the best camera is always the one that is with you, so I always support anyone who like to improve android phone's shooting ability.
---------- Post added at 02:38 AM ---------- Previous post was at 02:26 AM ----------
The real issue isn't allowing the camera to shoot raw because they can be done but the raw format will not be recognized by any raw processing software on the market. The possible way is to use DNG format which will significantly increase the difficulty of modification because it means the programmer will put in hours to create a brand new application to understand and compress the raw file to the DNG file...unlike Canon, android does not have an official raw format...so everything will need to start from zero. This process could easily take 20 very experienced engineers up to a year to complete, and the result might not be very ideal and will need another year to modify and improve...so we are looking at a potentially five million dollars project here - and it will better be turning in to profitable application - and if so it will have to be the best selling android app ever.
xdadevnube said:
I don't know if its prohibitively difficult to mod, but I couldn't find any other phone which has been developed to shoot RAW. Perhaps people just haven't shown much interest.
I would love this feature, but I figure most people shooting in RAW already have a "real" camera. I would expect a decent increase in photo quality though. I have 32 GB on my phone waiting to store some RAW data!
Click to expand...
Click to collapse
Yes, most (like myself) probably do but since I'm carrying around a high quality 8 megapixel camera in my pocket I'd like to be able to shoot in raw for those times that I don't have my DSLR with me. There is so much more that com be done to a RAW photograph, not to mention not having any data loss form it being converted to a jpeg. Looking forward to seeing if anyone can make this possible.
desmalta said:
Yes, most (like myself) probably do but since I'm carrying around a high quality 8 megapixel camera in my pocket I'd like to be able to shoot in raw for those times that I don't have my DSLR with me. There is so much more that com be done to a RAW photograph, not to mention not having any data loss form it being converted to a jpeg. Looking forward to seeing if anyone can make this possible.
Click to expand...
Click to collapse
Just a reminder....this is a cell phone, not a camera!
buhohitr said:
Just a reminder....this is a cell phone, not a camera!
Click to expand...
Click to collapse
Just a reminder, anything is possible in the world of android!
Sent from my SCH-I510 using XDA App
desmalta said:
Yes, most (like myself) probably do but since I'm carrying around a high quality 8 megapixel camera in my pocket I'd like to be able to shoot in raw for those times that I don't have my DSLR with me. There is so much more that com be done to a RAW photograph, not to mention not having any data loss form it being converted to a jpeg. Looking forward to seeing if anyone can make this possible.
Click to expand...
Click to collapse
RAW does not equal improved quality if the camera is not capturing more image information prior to compressing to JPG. You're still working with a tiny fixed lens and dense, compact sensor with tiny photo sites. This is limiting the amount and quality of light. Shooting RAW will not change this. JPG compression is not a limiting factor for image quality. You won't be able to resolve significantly finer detail or shoot in lower light settings just because you're shooting RAW. Open a JPG as RAW with Photoshop, it'll provide a similar experience.
You'll end up with similar photo quality, a bit more flexibility in PP, and huge lag while the camera tries to handle transfering and saving the huge photo file 10x larger than what it was designed to handle.
These are the only mobile phone sensors I've seen that would support or justify shooting in RAW.
Another story on them: http://www.engadget.com/2011/04/14/omnivisions-new-12mp-cmos-sensor-shoots-raw-pics-and-1080-60p-v/
In other words, RAW will be here eventually. When it is, it'll be an improvement. To try and force it (if it were even possible) with the sensor and hardware limitations in the DC is pointless.
charlie_c said:
RAW does not equal improved quality if the camera is not capturing more image information prior to compressing to JPG.
Click to expand...
Click to collapse
true, but shooting raw does preserve more of the image, because its the raw/real image that sensors seems is not a jpg processed image the way camera applications decided the scene should look like.
basically would would be taking your camera off the auto mode.
with raw you would have greated control over white balance, shadows, highlights etc...
There is a question about how many bits of image data you got on mobile sensor. On DSLR there is 12 or 14 bits information that is compressed to 8bit JPG information - that's why there is plenty more information about the image in RAW format. If CMOS in your mobile phone deliver just strait 8bit - your RAW will not have much more data.
As I don't have slightest idea how many bits of data is served by mobile camera sensor I can't say if there is a reason for RAW.
i found this
http://stackoverflow.com/questions/14777953/how-to-capture-raw-image-from-android-camera
i am really looking forward for a raw file from android camera this will be a huge move forward to the mobile world and the abilities of android
and since its supported in the api means google wants it to happen
Edit:
Create this dir /data/misc/camera/RaW_PiCtUrEs case sensitive btw
Assuming the capture mode used is high-quality and not high-quality-zsl it should produce a raw image everytime you capture a jpeg image
Click to expand...
Click to collapse
try this maybe it will work i found it here : http://forum.xda-developers.com/showthread.php?t=1977654&nocache=1
Hi All from Toronto, Canada!
I hope this is the right place to ask this. My question is as follows:
I have an Honor Note 8 with the Kirin 955 and the Mali T880. The camera on this phone is the Sony IMX278 RGBW sensor, which isn't the best as I hear, but is able to record 4k/UHD video.
From what I can gather, the Kirin 955 doesn't support hardware level UHD video encoding (only DECODING), and any phone with this SoC isn't able to record 4k/UHD video.
Would it be possible (albeit a lot of work) to record 4k/UHD video and either encode it at a software level (i gather this would be really slow), or even by using the GPU instead of the CPU to encode it? From what I can gather, the GPU is much more efficient as processing graphics and 2D video shouldn't be a problem at all for it. It seems like a solution to this would allow any user with this hardware configuration to be able to enjoy their phone cameras a lot more.
I know 4k/UHD video isn't really widespread yet, but I do have the necessary components at home including a 4k TV to be able to enjoy this resolution, so I am looking for a solution to this. Is it as simple as modifying the media_profiles.xml file and installing a different camera app?
I don't know a lot about android development, but I am making it a point to learn as much as I can, and I have put quite a lot of research into this idea before posting here, including searching on XDA. I work in Software Application Support for a small CRM, and I have years of experience doing mods and customization on android devices, so I am familiar with the landscape here and I should at least be able to understand any answer no matter how technical.
Thank you for your help!
jdantow said:
Hi All from Toronto, Canada!
I hope this is the right place to ask this. My question is as follows:
I have an Honor Note 8 with the Kirin 955 and the Mali T880. The camera on this phone is the Sony IMX278 RGBW sensor, which isn't the best as I hear, but is able to record 4k/UHD video.
From what I can gather, the Kirin 955 doesn't support hardware level UHD video encoding (only DECODING), and any phone with this SoC isn't able to record 4k/UHD video.
Would it be possible (albeit a lot of work) to record 4k/UHD video and either encode it at a software level (i gather this would be really slow), or even by using the GPU instead of the CPU to encode it? From what I can gather, the GPU is much more efficient as processing graphics and 2D video shouldn't be a problem at all for it. It seems like a solution to this would allow any user with this hardware configuration to be able to enjoy their phone cameras a lot more.
I know 4k/UHD video isn't really widespread yet, but I do have the necessary components at home including a 4k TV to be able to enjoy this resolution, so I am looking for a solution to this. Is it as simple as modifying the media_profiles.xml file and installing a different camera app?
I don't know a lot about android development, but I am making it a point to learn as much as I can, and I have put quite a lot of research into this idea before posting here, including searching on XDA. I work in Software Application Support for a small CRM, and I have years of experience doing mods and customization on android devices, so I am familiar with the landscape here and I should at least be able to understand any answer no matter how technical.
Thank you for your help!
Click to expand...
Click to collapse
I don't know much about Kirin SOC but with say QCOM to be able to encode via software using say FFMPEG the ISP would have to return preview frame with UHD Dimensions.
Its probably Capable of Encoding 4K maybe can check if it can be modded by understanding how everything works .
1st Check in /system/vendor/lib /system/lib/ lib64 for any file containing the word camera zip them attach them to your post
2nd download freedcam from play store in the menu scroll down and save camera parameters attach the file outputted to /DCIM/FreeDCam
Sent from my NX503A using XDA Free mobile app
Well title says it all, Is there any chance S8 variants be able to shoot [email protected]fps or is it a chipset limitation from SD/Exynos?
It's something i really liked in iPhone so I'd love to see it if there's any work around.. I know it supports [email protected]fps but I'm not interested in that.
You are mixing Hz to FPS. They are not the same.
You can read more about the differences between them here: http://www.avadirect.com/blog/frame-rate-fps-vs-hz-refresh-rate/
But to your question, the Galaxy S8 phones can only capture 1080p with 30 and 60 FPS. But it can capture 240 FPS in 720p.
Technically it should be able to, i remember on my nexus 5 there was a hack that allowed the phone to record [email protected] and also [email protected] But the nexus 5 was an aosp phone, so the sources were easily available.
Tom-Helge said:
You are mixing Hz to FPS. They are not the same.
You can read more about the differences between them here: http://www.avadirect.com/blog/frame-rate-fps-vs-hz-refresh-rate/
But to your question, the Galaxy S8 phones can only capture 1080p with 30 and 60 FPS. But it can capture 240 FPS in 720p.
Click to expand...
Click to collapse
Oh God yeah I know the difference very well , my mind got stuck there for a sec rofl.. Thanks for pointing it out anyway
peachpuff said:
Technically it should be able to, i remember on my nexus 5 there was a hack that allowed the phone to record [email protected] and also [email protected] But the nexus 5 was an aosp phone, so the sources were easily available.
Click to expand...
Click to collapse
That's what I'm thinking also.. If it's not a limitation of the chipset it could probably be bypassed with an app, even if you need root access to do it.. That's why I asked..
In my iphone 7 plus that I had before I could shoot @120fps with a program and also increase dramatically the bitrate of video,that's why I asked. Curious to see why is there the limitation (is it s/w or h/w related)
I don't think so
Try open camera app
skinza said:
Try open camera app
Click to expand...
Click to collapse
Camera app? I can't find anything relevant on the play store. You don't mean the default camera app right? Because this is what I'm talking about it's limited to 4k and 1080p/60fps or 720p/240fps
It is called "open camera" just search that on the playstore you can alter many many settings within the app for the camera but it takes a knowledge of photography to essentially know how it works I'd say...
orbitech said:
Camera app? I can't find anything relevant on the play store. You don't mean the default camera app right? Because this is what I'm talking about it's limited to 4k and 1080p/60fps or 720p/240fps
Click to expand...
Click to collapse
It's called open camera
I shot a video in 1080p at 120fps
joshclouds said:
It is called "open camera" just search that on the playstore you can alter many many settings within the app for the camera but it takes a knowledge of photography to essentially know how it works I'd say...
Click to expand...
Click to collapse
No worries I'm into manual mode shooting with my DSLR for ages so this is not the issue.. Thanks
skinza said:
It's called open camera
I shot a video in 1080p at 120fps
Click to expand...
Click to collapse
Nice! I'll give it a shot thnx..
p.s What is it with me today? First hz and now I can't read a sentence right lol..
edit : I just tried it, unfortunately it's very limited in video options it doesn't even let me pick 60fps in 1080p.. :/
edit : I just tried it, unfortunately it's very limited in video options it doesn't even let me pick 60fps in 1080p.. :/[/QUOTE]
That's wired it worked perfect for me
Anyone know if raw dng photo capture is capable on this phone? And anyone know what sensor is used? The stock app does not seem to offer raw. It would be unfortunate if raw is not supported. Presumably the sensor is decent but Samsung stock software is usual not very good. 3rd party camera software rules, if raw is capable.
I tried using the pro shot app in the play store. No luck. There is a Samsung system app that crashes when trying to take a raw picture. Kind of annoying, I really would like to be able to take raw pictures because I use Lightroom to clean things up. Cleaning up a jpeg in the edit app on the camera/gallery pretty much destroys the quality by double compressing.
This is really frustrating because I'm sure the camera sensor is capable of taking raw images it's almost like Samsung is trying to prevent it at the OS level just to prevent people from having a good camera feature in a mid-range phone.
No RAW. You can download the Camera 2 API Prober to see all the feature it supports. It supports Camera 2 Limited (Full or Level 3 are better).
Yes, Samsung limited it at the system level, the processing is done by the kernel and the software only receives the result in JPG or HEIF. That's why you can't really use other camera apps to improve the results either.
poog said:
And anyone know what sensor is used?
Click to expand...
Click to collapse
The main camera (f/1.8, 0.8µm and around 1/1.7X" sensor size with PDAF and OIS) can either use a Samsung s5kgw1p sensor, commonly known as the GW1 or a Sony IMX682.
No camera2api LVL3/FULL support. Disappointing. Is there any way to port it?
DRSdroid said:
I tried using the pro shot app in the play store. No luck. There is a Samsung system app that crashes when trying to take a raw picture. Kind of annoying, I really would like to be able to take raw pictures because I use Lightroom to clean things up. Cleaning up a jpeg in the edit app on the camera/gallery pretty much destroys the quality by double compressing.
This is really frustrating because I'm sure the camera sensor is capable of taking raw images it's almost like Samsung is trying to prevent it at the OS level just to prevent people from having a good camera feature in a mid-range phone.
Click to expand...
Click to collapse
Do you able to capture raw/dng using Lightroom camera app?