yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] troopii:
For raw capture always disable zsl.

If not preview freez and cam too. Zsl seems to bypass some isp stuff and the rawbuffer is never filled.

Defcomg says it should disable it by default when switching to raw.

Raw are always close to the cam mp. So 13mp cam produce raws around 13mb.

You can see if its are raw when renaming it to jpg and open it. If you can open it and see the image its a jpeg.

For the g3 i have to enable memorycolorenhancment and turn off zsl.
[Android Apps and Games] bala_gamer:
tried with the latest version in github, you are right, the extension is raw when i rename it to jpg i can see the preview of the image and the size is also below 5mb for 16mp camera.

do i need to send any info to you ?
[Android Apps and Games] troopii:
Would be good to have the camerparameter. You can save them in quality settings. Its get saved to sdcard/DCIM/Freecam/Cameraparameters.txt.

Also a logcat is good with cam as filter.

From app start, setting raw and capture raw should be included. Then i see whats happen
[Android Apps and Games] ImNoobie9495:
The logcat .. Hope this help .. 1st i opn the freedcam shoot in jpg 2nd in raw and 3rd in DNG format .. I dont know this is correct logcat ..
[Android Apps and Games] bala_gamer:
attached app log while picture is being taken in raw mode, hope that helps :)
[Android Apps and Games] troopii:
logacat is perfect! it seems i added a bug ;D

its using the bayer-mipi string for you, but this is not valid value....

i will fix it

[MENTION=3877923]bala_gamer[/MENTION]

picture-format-values=jpeg,

thats all whats your params return.

i need your msmcamera.so

libcameraservice libcameraclient

i hope they include the missing values
[Android Apps and Games] MatteoB92:
I'm here again with my Galaxy S4 I9505.

I downloaded the latest version of your app 3.3.24, downloading app-debug.apk

I open it and I can choose 'raw' into 'Picture format'

But when I shoot, I got the message 'Data size is < 4kb'

I can't find any' Cameraparameters.txt' into that folder.

'Zeroshutterlag' is disabled as default.

Here's a logcat https://www.dropbox.com/s/cw61blbq78ylgr4/2014-11-26-15-01-26.txt?dl=0..
[Android Apps and Games] ImNoobie9495:
Glad this helping :D .. Thanks 4 yr work ..
[Android Apps and Games] troopii:
Latest version should fix raw capture for xperia l and the galaxy nexus. I hope it;p
[Android Apps and Games] MatteoB92:
Interesting mate, have you found a spare time to give a look also at mine Galaxy S4?
[Android Apps and Games] ImNoobie9495:
1st,thanks [MENTION=5128617]troopii[/MENTION]..Tested it and this is result .. Shoot in jpeg around 3mb+ and raw 10.29mb .. The raw size didnt change and i keep shoot and shoot in raw in different situation with freedcam but the size is the same like nubia camera .draw format 10.29mb .. Nvm .. And 1 question .. How to develop this raw image ? see the image at attachment
[Android Apps and Games] troopii:
Perfekt works for you. At this stage you can convert it with dcraw to a tiff

Or have to wait until i add dng support.

I looked through my stuff you provided me. You never gave me the cam parameters. I dont have that device.
[Android Apps and Games] ImNoobie9495:
This is awesome !! So close to have raw in my device:D .. I think will wait dng support to my device and dont mind me .. Take yr time, i dont want to push you ..
[Android Apps and Games] MatteoB92:
In fact I want to solve this problem together, but you can help me to find its location?

I haven't find any folder into 0/DCIM related to your app..
[Android Apps and Games] troopii:
Hmm if the folder FreeCam not gets created automatical. Create it manual.

After that the pics gets saved there. For my o3d, g3 and nexus7 it gets created.

To save the parameters open quality settings and click there save cameraparameters. You should get a toast that its saved. After that you will find the cameraparameters.txt in /internalSD/DCIM/FreeCam/.
[Android Apps and Games] MatteoB92:
I created the folder following that exact way, and finally I was able to get Camera Parameters!

Here it is https://www.dropbox.com/s/btvjdmwvqgnfzw9/CameraParameters.txt?dl=0
[Android Apps and Games] troopii:
Try latest freedcam. Its working for you like the galaxy nexus. You should get raw files
[Android Apps and Games] MatteoB92:
I've downloaded your latest version 3.3.25, but only the first time I was able to shoot into .raw format, and I get a file that weighs only ~ 3MB.

Now I try to use both picture quality, but I obtain only .jpg as you can see in the screenshot

Here are the new CameraParameters.txt https://www.dropbox.com/s/btvjdmwvqgnfzw9/CameraParameters.txt?dl=0

and another logcat https://www.dropbox.com/s/zzpkzzx3n7gi2we/2014-11-27-17-00-39.txt?dl=0
[Android Apps and Games] troopii:
For the s4 samsung seems to have the extended the camerhal like lg did. I will download later a rom from it and crawl the binarys.

the same will be done for the note4.

//edit

somethings wrong with xperiaL raws

the attached image shows the problem.

this happens for me on both raw, from nubia cam and freedcam

also with irvanview and 7yuv

https://github.com/troop/FreeDCam/releases/tag/3.3.26

new try for galaxy s4

zsl mce and dis are now disabled by default and camera mode is set to 0
[Android Apps and Games] ImNoobie9495:
Is that my raw ? Lol,is it just a pixels ? i think thats why the size is just same every time i took pictures .. That's mean the previous freedcam DNG format is working for me ..
[Android Apps and Games] troopii:
the raw it self is a true raw file. processing it with dcrawUI 1.3 works. but it has not the default bayer-mipi format

[MENTION=377973]defcomg[/MENTION] dcraw ui doesnt like whitespaces! you should check the path bevor processing
[Android Apps and Games] ImNoobie9495:
how to use this ?? i select image and press start and it say demosaic .. what is that ?
[Android Apps and Games] troopii:
Thats the dcraw ui. You can also use the command line. Watch out that the filepath does not contain whitespaces

C:\path wirh whitespace\test.raw is not working

C:\path_with_no_whitespace\test.raw works
[Android Apps and Games] MatteoB92:
Excuse me mate, I saw your edit just some minutes ago.

Now I am able to shoot into RAW format.

But I have a doubt : I shooted into JPG at 100 quality for nearly 3MB, and the same object into RAW for nearly 4MB.

But standing at your reasoning, RAW wouldn't be heavy for almost 10MB, having a 13MPixel camera?

Here's new CameraParameters.txt https://www.dropbox.com/s/btvjdmwvqgnfzw9/CameraParameters.txt?dl=0

EDIT : I must ask you another request.

Some time ago I have discovered an option of the camera of a OnePlusOne called Aumenta Esposizione (that I can translate with 'Increase Exposition') : it needs a stable plan to shoot, but after focusing for nearly 8s it gives photos surprisingly clear and bright instead of the dark room in which they are shooted, and often full of details that cannot be recognized naked-eye.

I've tried some others app such as CameraZoomFX, Camera FV-5, A Better Camera, Night Camera+, and Long Exposure Pro 2 to increase shutter speed, but every give me photos deep and worse than the same through Samsung Camera's Night mode.

Could you implement into your app a comparable function in a such way?
[Android Apps and Games] troopii:
i get next week an s4 then we will see whats going on with that device.

you mean some sort of hdr with more than 3 pics. lets say we have the exposure from -12 to 12 it should take 24 pics each with a different expo.

in the end they all get merged together and the image contains more details in the background and has less noise.

in this way my long exposure module works but it use always the same exposure.

yes its possible to add but i dont know when i will do it.

but with that we are getting offtopic ;P
[Android Apps and Games] roursamajor:
I own a MTK phone. Is there another way to shoot RAW excepting EngMode? If no, how can I process the resulting RAWs?

Thanks in advance.
[Android Apps and Games] troopii:
read this post

http://xdaforums.com/showpost.php?p=56139289&postcount=295

it contains everything you need.
[Android Apps and Games] roursamajor:
I hoped that there is another easiest way. Not yet a direct RAW converter?

I don't undestand how to run this command> DebayerGPU.exe -demosaic HQLI -CPU -repeat 10 -i C:\Users\NemO\Desktop\input.pgm -o C:\Users\NemO\Desktop\output.pgm

EDIT> solve it. I created a shortcut and wrote the command line in it. Is there another way to process in batch mode?

EDIT no. 2> the colours are not accurate. Yellow is blue... what is the problem?
[Android Apps and Games] defcomg:
what device ?

attach a raw sample so I can add it to dcraw
[Android Apps and Games] abasba:
xperia z2

is there any way to take raw photos with xperia z2 ?
[Android Apps and Games] roursamajor:
The device is Allview P6 Life, a romanian rebranded chinese phone. Unfortunatelly, I don't know which chinese phone is the original. Anyway, there are more friends of mine intereted by the RAW capture.

I attached a RAW, just rename extension. From where can I download custom dcraw?

Thanks in advance!
[Android Apps and Games] Kriomag:
RAW mode is not working on Galaxy S5 (G900F)

but you can disable noise reduction... so a lot can be done - you can preserve much more datail!

Saved as 100% jpeg (noise reduction off) and removed noise with Neat Image (PC):
[Android Apps and Games] troopii:
it works for the xperia L. you have to bring more informations i dont have that device

a friend visit me next week with his s4 and then we will see what samsung did.

but it would be good to have the camera parameters from the s5

the big problem is that its done foreach device in a different way. and im lazy reading logcats.

im sure that i can figure it out in 15min when i would have that device^^

so if anyone lives near munich feel free to pm me and visit me with your device^^

you get for sure cofee but with the cakes it could happen that i have eaten them ;P
[Android Apps and Games] roursamajor:
Maybe you can implement for MTKs too?

So, if I save 100% jpeg that means the NR is off?
[Android Apps and Games] abasba:
Which information or files do you need ?
[Android Apps and Games] defcomg:
Added all view to dcraw

GOTO Settings set black level to zero omnivision sensors black level seems to be zero then either use imx 135 214 or the one posted in previous page for the xperial l.

Or set black level to zero and turn on auto white balance detection this is due to no sensor calibration so what ever looks good to you

in Photoshop you have to GOTO edit color settings in rgb tab choose adobe rgb or Prophoto then choose rgb again then GOTO custom rgb make the gamma 1.00 save the custom profile this is because the tiff is not color managed it outputing in raw color.

DCRAW Changes

Fixed Path Issue it can now open a raw from any path
[Android Apps and Games] MatteoB92:
Became curious following your suggestion, this night I decided to try.

But, standing at the last version 3-3-28, both using raw that jpeg 'Picture Format' I was able to shoot only into Pic 'Mode', as soon as I select HDR I 'Got a camera error : 1001' and to use the app again I have always to delete data.

Here's a logcat https://www.dropbox.com/s/gm7snojiwm5yii1/2014-12-09-01-44-36.txt?dl=0 (also if I knew you're lazy, but I do always my best :P)

And the new CameraParameters.txt https://www.dropbox.com/s/btvjdmwvqgnfzw9/CameraParameters.txt?dl=0
[Android Apps and Games] defcomg:
dCP Camera profile for imx 214 135 took it from a one plus dng in the zip you will find a read me containg path where you will copy the dcp file

when done open dng in camera raw then choose lg g3 profile you will notice the colours seem more accurate especially around the edges
[Android Apps and Games] Kriomag:
How do i get parameters you need? do i need root? cause no option to root my s5 without loosing warranty... :(
[Android Apps and Games] itzsnookums:
any way to get the stock htc camera to take raws? tried creating the directory but no go......htc m8
[Android Apps and Games] starbase64:
[MENTION=377973]defcomg[/MENTION]

nubia camera doesn't work on htc stock roms, but i have a logcat from a friend attached here (first nubia version).

please take a look.

regards

starbase64
[Android Apps and Games] defcomg:
it's possible that raw support is buried somewhere deep in the code and can be enabled I've found a lot of disabled stuff in stock cameras such as the ability to control shutter speed in Sony z1 camera anyway post stock camera app apk and maybe framework-res.apk and any other apk in system/framework also this system/lib/hw/camera.msm8974.so will see if it can be done. if not you could force it to use raw but will disable Jpegs on stock camera.

I had a quick looks like HTC stock camera is different and Nubia camera is unable to find certain methods

W/dalvikvm(17745): VFY: unable to resolve interface method 2219: Landroid/view/IWindowManager;.setFactoryFlag (ZZ)V

W/dalvikvm(17745): VFY: unable to resolve interface method 2219: Landroid/view/IWindowManager;.setFactoryFlag (ZZ)V

E/dalvikvm(17745): Could not find class 'com.qualcomm.camera.QCFace', referenced from method com.android.camera.appService.H.e

W/dalvikvm(17745): VFY: unable to resolve instanceof 2170 (Lcom/qualcomm/camera/QCFace;) in Lcom/android/camera/appService/H;

W/dalvikvm(17745): VFY: unable to resolve virtual method 660: Landroid/hardware/Camera$Parameters;.getAEBracket ()Ljava/lang/String;

V/camera (17745): in on create

what rom are you using?

did you try this version it's for grgb pattern used on m8 it's should produce larger draw files

www.mediafire.com/?3dp0xd060l8tihw and get your friend to try it on stock rom
[Android Apps and Games] itzsnookums:
How would I go about setting it to capture only raws? And I would be very very interested in the ability to take both, that would be badass since hamdir also made a upscaler in Photoshop for the m8 to 16mp.....this plus yours= awesome camera
[Android Apps and Games] defcomg:
I usually decompile an apk with virtuous ten studio then I look in the red folder at the xml folder there is usually two xml's here one for video one for pictures.

That's where pretty much most oems have things that would show up in the menu it would be a good place to start you may find something like picture format

next place is public xml found in values folder search for raw value may show up in strings section of nothing try arrays then finally search the code for "picture-format" or setpi any results found would indicate the general smali file that would be needed to be modified.

I'm not to sure if this would work, but perhaps you could duplicate the on shutter function have one for jpeg and the dupilicate method for raw so when you click shutter button it would capture both jpeg and raw if this would work maybe an xposed module could be written instead of modding the apk directly.
[Android Apps and Games] itzsnookums:
I'll try, here are the files you requested, the camera apk is modded camera....just fyi

https://mega.co.nz/#!3cYEXBYA!4tpZFdvlnAELCWItrFsCV2HqKd1jkHXjl0TqzbZfTDI
[Android Apps and Games] starbase64:
this is from htc stock rom, but i use insertcoin.

all pics same size, first version or m8 version.
[Android Apps and Games] webwalk®:
here is one, i had to rar it to upload
[Android Apps and Games] BenniG:
I get a FC on Startup.. LG G2 in rooted stock KitKat Rom

Gesendet von meinem LG-D802 mit Tapatalk
[Android Apps and Games] starbase64:
Hi,

with this version all pics only ~800kb, 2 pics in the attached zip.

regards

starbase64
[Android Apps and Games] abasba:
SGS 3

Is that app compitable with SGS 3 with stock rom or should I install any other rom ?

If it is compitable with stock rom app fc away what can i do about it ?
[Android Apps and Games] defcomg:
logcat the app open it snap a photo save log on both versions something is up maybe it had to do with the Isp setup HTC uses Imagechip+snapdragon Isp

after logcat we can try the other two raw format

Mipi - pure raw

qcom ideal - /* Ideal raw formats where image data has gone through black

133. * correction, lens rolloff, demux/channel gain, bad pixel

134. * correction, and ABF.

135. * Ideal raw formats could output any of QCOM_RAW and MIPI_RAW

136. * formats, plus plain8 8bbp, plain16 800, plain16 10bpp, and

137. * plain 16 12bpp */

source https://android.googlesource.com/pl...ra/+/master/QCamera2/stack/common/cam_types.h
[Android Apps and Games] defcomg:
use cinedroid to check supported picture formats if you see anything else besides jpeg/yuv yes something can be done if not nope not compatible
[Android Apps and Games] defcomg:
pm optimusrs from g2 section he has it working with his g2
[Android Apps and Games] ahmed.gubara:
what should i do to disable ZSL on galaxy nexus camera?:confused:

*non stock camera apps that I've I tried:

A better Camera

Camera (ported from oneplus one)

camera fv-5

DSLR camera

Snap Camera

SNAPit Camera

and not a single raw file in the "RaW_PiCtUrEs" folder !!

maybe for galaxy nexus ZSL is implicitly enabled and should some how be disabled explicitly. (IDK ,, I've never programed for android :rolleyes: )

Edit: camera.parameters attached.
[Android Apps and Games] starbase64:
Hi,

here is the log from m8 version.

build.board: MSM8974
build.bootloader: 3.16.0.0000
build.brand: htc
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: htc_m8
build.display: KOT49H release-keys
build.fingerprint: htc/htc_europe/htc_m8:4.4.2/KOT49H/325784.5:user/release-keys
build.hardware: qcom
build.host: abm015
build.id: KOT49H
build.manufacturer: HTC
build.model: HTC One_M8
build.product: htc_europe
build.radio: unknown
build.serial: FA42KWM02298
build.tags: release-keys
build.time: 1395419662000
build.type: dev
build.user: root
version.codename: REL
version.incremental: 325784.5
version.release: 4.4.2
version.sdk_int: 19

05-19 23:58:47.761 I/ActivityManager(1721): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=cn.nubia.camera/.CameraLauncher} from pid 4589
05-19 23:58:47.901 I/ActivityManager(1721): Start proc cn.nubia.camera for activity cn.nubia.camera/.CameraLauncher: pid=7954 uid=10382 gids={50382, 3003, 5012, 1028, 1015, 1023}
05-19 23:58:48.811 I/ActivityManager(1721): Displayed cn.nubia.camera/.CameraLauncher: +942ms
05-19 23:58:49.271 I/ActivityManager(1721): START u0 {cmp=cn.nubia.camera/com.android.camera.Camera} from pid 7954
05-19 23:58:49.861 D/LocationManagerService(1721): request 4a7a7510 network Request[POWER_LOW network requested=+1s0ms fastest=+1s0ms] from cn.nubia.camera(10382)
05-19 23:58:49.871 D/LocationManagerService(1721): request 4a7a0f48 gps Request[ACCURACY_FINE gps requested=+1s0ms fastest=+1s0ms] from cn.nubia.camera(10382)
05-19 23:58:50.041 I/ActivityManager(1721): Displayed cn.nubia.camera/com.android.camera.Camera: +760ms
05-19 23:58:50.361 W/ResourceType(7954): Failure getting entry for 0x7f0c0385 (t=11 e=901) in package 0 (error -75) name=cn.nubia.camera
05-19 23:58:50.371 W/ResourceType(7954): Failure getting entry for 0x7f0c0386 (t=11 e=902) in package 0 (error -75) name=cn.nubia.camera
05-19 23:58:56.761 D/ActivityManager(1721): screenshotApplicationsRecent for ActivityRecord{48fe2c60 u0 cn.nubia.camera/com.android.camera.Camera t610 f}, bitmap=android.graphics.Bitmap@49538850, time = 263
05-19 23:58:57.211 I/LocationManagerService(1721): remove cn.nubia.camera 4a7a0f48
05-19 23:58:57.221 I/LocationManagerService(1721): remove cn.nubia.camera 4a7a7510

regards

starbase64
[Android Apps and Games] defcomg:
hmmm okay you need to add mode then pass high-quality as the value to inject the smali code search for this in any camera app ;>setPictureSize(I I)V should start with invoke virtual copy the entire line space then paste it. replace setPictureSize(I I)V with set(Ljava/lang/String;Ljava/lang/String;)V then check the two last values in {} after invoke virtual it might be v2 or v3

create

const-string vx, "mode"

const-string vx, "high-quality" where vx is for mode replace that with second last value and do the same for next vx with last value oh place this above the set(Ljava save compile and run
[Android Apps and Games] defcomg:
I think I see what might be up lol I observed similar behaviour on my stock camera app where zsl is enabled by default but in the hal it's set to off by default but on the m8 is set to on all for all camera apps what happens when zsl is enabled all streams seem to be forced to jpeg so the draws where actually Jpegs will set Nubia camera to turn off zsl and raw should work

if all goes well you can just make a raw version of stock camera by renaming package name and app name one for jpeg second for raw tested rename method works with stock camera on my device as I had a look at m8 stock cam it has no picture format switch
[Android Apps and Games] defcomg:
these are jpegs what are the supported picture formats on your device it would seem it ignore the picture format param attach camera. parameters from your device
[Android Apps and Games] defcomg:
I rechecked camera.parameters I see raw in picture format by the way does the stock unmodified Nubia camera fc?? I mean this http://files.globalapk.com/download2610.html
[Android Apps and Games] roursamajor:
Thank you!

Unfortunately, something's wrong... :)
[Android Apps and Games] StariX37:
FreedCam works great on Moto G 2nd Gen XT1068...

And i have felt the difference...using the cam as image size is between 4 MB to 7MB.

Can u tell me how to differentiate between a raw image and a normal image taken by any other camera...

Because when i use the Freedcam app...it saves the image in .jpeg format. So is the saved image a raw image..which is converted to .jpeg.

Or is the raw image stored at some other location...on the sdcard..???
[Android Apps and Games] defcomg:
try compatibility mode maybe a win 8 issue also try placing this in the same folder as the dcraw binary
[Android Apps and Games] defcomg:
Raw Files Properties

File size Always the same

extension on freedcam is .raw

Swipe Right > Picture Settings > Picture Format Look for raw .
[Android Apps and Games] abasba:
How about getting .raw photos with xperia z2. Camera quailty is very good but i want some raw pics
[Android Apps and Games] roursamajor:
Thanks! Adding this file made the software to work!
[Android Apps and Games] defcomg:
you will need to somehow disable the bionz ISP I dunno of it works the same as on the HTC one where two isp's are used we need to get a kernel dev involved
[Android Apps and Games] roursamajor:
Do you think that your work on dcraw can be ported on ufraw? As far as I know, ufraw is based on dcraw ( I used it long time ago at the beginning of the CHDK project), but it has a more friendly graphic interface, seeing what you do directly on the photo.
[Android Apps and Games] budies3:
Very cool app!! I'm excited that I can get raw files (at times). I know this isn't for my phone (VZW-S5), but it does a really good job on the jpg setting. The raw format completes a picture sometimes, and dng has yet to give me anything. But no complaints sir, thank you so much for this:)
[Android Apps and Games] anonymusneo:
Hi, unable to get it working with Nexus 4 lollipop stock it's doing FC
[Android Apps and Games] troopii:
pls provide the camera parameters

would be good to have the crash log. camera2 is not supported yet
[Android Apps and Games] defcomg:
Anybody with an SD800+ Device that shot raws in Bayer format ie G2 G3 M8 and would like to convert them to DNG Format I Made a beta tool Lol for android I say better because of some sloppy lazy coding it crashes if you input too many raws.

Anyway if theres interest I will upload the apk.
[Android Apps and Games] budies3:
Last update

It seems that after this last update I cant get a raw pic to finish. It gets to the point where the green focus area goes away, and the screen is froze. I can tap the exit and it will close, but it wont open again until I restart the phone.
[Android Apps and Games] defcomg:
try revert back to a previous working version also Logcat the freeze for troop on the current update.

In the OP last link should contain previous versions