yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] wohbhanie12:
Okay Man Thanks

Okay man Thanks for the Full info.. This will help me a lot.. again. thanks again.
[Android Apps and Games] xrad:
Please don't full quote the original post.
[Android Apps and Games] tofu:
Said previously that pic camera is broken on OPO using candysix MM ROM (uses sultan's camera libraries). I noticed that it is actually the viewfinder which is broken i.e. I can take a normal picture eventhough the viewfinder is borked.

In addition I noticed that if I press the third icon from the top on the right side of the viewfinder (just above the shutter), the viewfinder becomes normal (showing the over/under exposed areas as this button seems to work that way).

Any idea where is the problem?

Thanks already in advance if you look into this issue.
[Android Apps and Games] defcomg:
That's the focus peak button is the viewfinder broken on all camera apps or just freedcam. The Focus peak acquires preview frames differently.
[Android Apps and Games] defcomg:
Lol missed this could you provide a screenshot and possibly logcat start any logcat app then start freedcam take a picture exit then save logcat attach it along the screenshot
[Android Apps and Games] tofu:
[MENTION=377973]defcomg[/MENTION] Only freedcam's viewfinder is broken, snapcam works fine.
[Android Apps and Games] tofu:
[MENTION=377973]defcomg[/MENTION] here's screenshot of the problem

https://anonimag.es/i/e17c8c539810cb7fdb24ea1fea692ab7.png
[Android Apps and Games] shanx_verma:
Xiaomi Redmi 2 / Prime

Hi, can I request support for Xiaomi Redmi 2 / Prime? :) (same phone, 7-8 variants)

Please let me know how I can help you support it?

It has Qualcomm MSM8916, has majorly two variants - one having 1GB RAM and 8GB ROM, the other having 2GB RAM and 16GB ROM. The other variations are based on location and radio bands.

Would be glad to help you help us Redmi 2 owners.
[Android Apps and Games] GonzTech:
.bayer file

Hi! First, thank you for this great app.

My smartphone (Doogee x5 Max) produces .bayer file in camera api1 but I can't see it. All I can see is a black rectangle.

I've read that I can send the raw file and the parameters file, so here it is: h t t p s ::: //spaces. hightail.com /receive/W0wEt

Thank you so much again for your time and making this app for photographers.

Regards!
[Android Apps and Games] defcomg:
I Would compile a list with all the variants ro.product.model value from build.prop second a Camera Parameters .txt file which can be generate on freedcam in the menu scroll down to the last option as well as .Bayer file sample if supported the saved files are located in DCIM/FreedCam
[Android Apps and Games] defcomg:
I see In the logcat filter out the word legacy see if there are any results
[Android Apps and Games] shanx_verma:
There is no ro.product.model in my build.prop, as I'm on official cm14.

However, ro.product.device says wt88047, whereas my particular variants model no. Is HM2014818, or simply 2014818.

All known variants till now :

HM2014811 / 2014811

HM2014812 / 2014812

HM2014813 / 2014813

HM2014814 / 2014814

HM2014815 / 2014815

HM2014816 / 2014816

HM2014817 / 2014817

HM2014818 / 2014818

HM2014819 / 2014819

Also, half of these are also known as wt88047, based on their chipset (by Wingtech co.) and the other half as wt86047.

Also, as instructed, please find attached the zip file containing a bayer sample from my phone taken using camera1 api, as well as camera_parameters.txt.

.

I have attached the full folder including the config folder so that you can take a look and advise me any changes for the baat photos possible.

Do let me know if anything else is needed. Will be glad to help. :)
[Android Apps and Games] tofu:
There isn't a single "legacy" word in the log. But a lot of errors.
[Android Apps and Games] defcomg:
Strange there should be a log entry from freedcam saying whether its detected legacyFramework the last few Changes openLegacy is used if camera 2 is detected when using device in camera 1 mode does it behave the same in camera 2 mode. If that's the case one plus needs to be excluded from using openLegacy and use regular open
[Android Apps and Games] shanx_verma:
Redmi 2 HM2014818 :)

So, does the latest version now support my phone variant? :angel:
[Android Apps and Games] tofu:
According to settings camera api 1 is being used (and viewfinder is broken). However if I switch to camera api 2, the viewfinder works normally, but settings are considerably smaller. For e.g. image size is only 1900 pixels (longest side) and I cannot change that. Camera api 2 seems so limited that there's really no use for that.
[Android Apps and Games] uts58:
Xiaomi Redmi 2/Redmi 2 Prime parameters

Hi there, there is the parameters file generated from a Xiaomi Redmi 2 (2GB ram) as you requested.

Please take a note that there was no .Bayer file available in DCIM/ freedcam.

And as [MENTION=5848761]shanx_verma[/MENTION] mentioned, we have a lot of varrients, but "wingtech wt88047" is the one that is globally used to say Redmi 2 and all of its varrients ( Official Cyanogenmod also uses wt88047)

Also one thing, the pictures I took had color problem. ( image attached)

However, changing api to camera2 fixed it.

Thanks in advance :D
[Android Apps and Games] shanx_verma:
Taking RAW photo.

You have to first change the capture mode from JPG to Bayer (the first bayer option from settings should do just fine! :)
[Android Apps and Games] b1h:
Colour problem happens on my Redmi 2 too when API is on camera1 and the resolution is at 176x144 (which is the default resolution the first time you open the app.)
[Android Apps and Games] b1h:
Some Redmi 2 files...:)

I've only uploaded bayer-mipi-10bggr but there's also ideal-qcom and qcom.
[Android Apps and Games] b1h:
In case you need it here's the rest...

bayer-ideal-qcom-10bggr

bayer-qcom-10bggr
[Android Apps and Games] troopii:
i look tomorrow into it. thx for uploading that stuff

[MENTION=6713997]GonzTech[/MENTION] pls reupload that file and if you dont want to post the link here send it to freedcam@email.de
[Android Apps and Games] capoooro:
I'm using FreeDcam, last version, on G2. Everytime I open the app the tutorial open up, even if I check the box to not show again the tutorial. Any way to resolve? Tnx
[Android Apps and Games] troopii:
Try to uninstall it and reinstall it. I Dont have that problem on my devices
[Android Apps and Games] grandgreed:
Needs more precise steps for sharpeness, like 0, 1, 2, 3, 4 etc... Current 0, 6, 12 is too wide steps.
[Android Apps and Games] b1h:
I have a spare Coolpad F1 (cloned as Micromax Canvas Nitro and Himax Polymer.) It has an Mediatek CPU. Interestingly, when running Resurrection Remix on Marshmallow, I get no raw options but while on the factory rom, which is old and runs 4.2, I can take a bayer photo but video recording is limited to 480p and is having some issues. I'll try different roms and post the bayer file and parameters when I get home.
[Android Apps and Games] :
Hi!

Can I request suppoert for Huawei Ascend Y550?

It have 5mp camera, flash, and 4gb storage

Thanks in advance!
[Android Apps and Games] b1h:
The app should work after installing.

For DNG support? If so, send your .bayer file and camera parameters file.
[Android Apps and Games] troopii:
@ grandgreed

sorry thats not possbile due a step limitation from the camera itself.

1,2,3,4,5 get ignored by the cam when set.

[MENTION=6223163]magmar452[/MENTION]

that mediaprofiles are taken from back camera, but get used too for front. its a design failure^^

im not using the front cam often. its possible that there are more problems with it^^

freedcam is not thought as selfi camera^^

never thought someone would use a otg storage to save. that should happen always in every module when its choosen and removed.

will add a check if its availible and if not switch to internal sd.

hm thats real worse. i know my way to handel bitmaps sucks. but all devices i have are able to open bitmaps with full size from the camera.

will look how i can reduce the memory pressure.

that should be fixed with 138

freedcam looks up that path: sdcard or otg storage /DCIM/FreeDcam.

when the pics are not inside DCIM/FreeDcam they get not read. best is to choose the root folder from the otg/sdcard. then it should show the pics.

lets say you choose direct dcim/freedcam folder. then freedcam create inside that folder a new DCIM/freedcam folder and the final path looks like sdcard/DCIM/FreeDcam/DCIM/FreeDcam.

confirmed i can reproduce the problem. funny stuff with each open close it fills up more :D

can get added someday

not sure if thats possbile with the mediarecorder.

for such stuff i must get access to the audiostream.

maybe with ffmpeg its possbile todo. but no idea how good the performance then is.

raw capture works only on stock mtk roms wich support the engineer mode. cm based roms dont support it.

on mtk devices the native hal dump the bayer to sdcard. its not like as on qcom devices that a byte array gets returned and then can get direct processed.

freedcam waits then until the file is readable and then load it into memroy and process it. when done it deletes the bayer file.

big thx for that feedback its very usefull.
[Android Apps and Games] b1h:
hmm... When I take a picture, it just takes the .bayer and nothing else happens... Also with regards to video recording, After pressing stop, the app freezes.

Alright yep it shows the ones on the SD. I just had to restart the app. It even shows pictures from DCIM/Camera. But for the OTG it still doesn't show even if the path is DCIM/FreeDcam.

Taking pictures and videos to OTG is such a great feature! I can take my USB and plug directly to my computer without needing to connect my phone to pc. Unfortunately, when I record a video to the OTG drive, the phone records noise. Oh well...

Ok I found a torch bug. Turn the torch on. After that, go to home and re-open the app. The F1's torch will go flash weirdly. On the Redmi 2 after re-opening the app, turn the torch off, after going home again and re-opening the app, the flashlight will flash breifly despite the torch turned off.

After taking lots of photos and keep swiping right, the app will eventually crash with another out of memory error.
[Android Apps and Games] bebolint98:
[MENTION=5128617]troopii[/MENTION] It possible to add longer shutter speed to Xiaomi Redmi Note 3 Pro(qualcomm) version? Forexample 10,15,30 sec? Thanks in advance!
[Android Apps and Games] troopii:
[MENTION=6223163]magmar452[/MENTION]

i have to hardcoded the bayer file size and device because there are alot devices out wich produce files with same size but use a different color pattern.

when the device is not added only bayer is availible.

and about otg i will look what i can do

[MENTION=5917662]bebolint98[/MENTION] no for that the libs must get modded. but xiaomi did strange things to the redmi3 pro. manual iso and shutter works only with jpeg.
[MENTION=377973]defcomg[/MENTION] tryed to mod it and exposure time did increase returned by the parameters. but the device ignored it.
[Android Apps and Games] b1h:
Alright I'll send the files.

One more question can I lock the exposure (With bias control or manual)?

When I switch from video mode to picture mode, the 4:3 preview becomes skewed as the top and bottom parts are cropped out. The actual jpeg is OK though.
[Android Apps and Games] shanx_verma:
[MENTION=377973]defcomg[/MENTION] [MENTION=5128617]troopii[/MENTION] There is no ro.product.model in my build.prop, as I'm on official cm13.

However, ro.product.device says wt88047, whereas my particular variants model no. Is HM2014818, or simply 2014818.

All known variants till now :

HM2014811 / 2014811

HM2014812 / 2014812

HM2014813 / 2014813

HM2014814 / 2014814

HM2014815 / 2014815

HM2014816 / 2014816

HM2014817 / 2014817

HM2014818 / 2014818

HM2014819 / 2014819

Also, half of these are also known as wt88047, based on their chipset (by Wingtech co.) and the other half as wt86047.

Also, as instructed, please find attached the zip file containing a bayer sample (bggr only) from my phone taken using camera1 api, as well as camera_parameters.txt.

.

I have attached the full folder including the config folder so that you can take a look and advise me any changes for the other photos if possible.

Do let me know if anything else is needed. Will be glad to help you help us. :)
[Android Apps and Games] SMTB1963:
DNG file size/SD storage

First, thanks for all your work with the app and getting raw enabled in the Moto X Pure! I used your camera.msm8992.so, installed FreeDCam and my Moto X Pure is producing 16 bit ProPhoto DNGs that are recognized by Adobe Camera Raw/Photoshop. WELL DONE!!! [donation sent]

Couple of observations:

1) the DNG file size is 40.9MB, which seems a little high for a 24MP sensor...is this normal?

2) I'm getting some strange behavior when using the app with external storage. If I take a single pic, the app writes the 40.9MB file to the SD card just fine. However, if I snap pics in rapid succession, the files stored to the sd card are much smaller, and they are unreadable by ACR/Photoshop. Shooting rapid using internal storage no problem. Perhaps the SD bus is getting overloaded?

3)The FreeDcam folder on the SD card doesn't show up in Windows Explorer when I plug my phone into my PC. Solid Explorer on the phone sees it OK, but for some reason Windows can't see it. If I copy the SD CARD/DCIM/FreeDcam folder to the SD card using Solid Explorer, then my PC sees the folder ok...any ideas?

Thanks again for your work on this. My $300 Moto X Pure is now producing photos that rival those of my $1700 Canon 7D. Amazing!
[Android Apps and Games] defcomg:
1. 40mb is the right size for that sensor raw image size is calculated as width * height * bit depth / 8 usually all raws are repacked into 16bit but sample at 10bit in post there is an alternative way to tightly pack the data it should reduce the final size but this method fails on some raw files files .

2. Yeah the tiny dng files are probably caused by the dng pack process being interrupted. Those small dngs only contain the header . An alternate way for rapid shots is to shoot in pure Bayer format and then batch convert to dng later.

In picture format select Bayer shoot a bunch of raws when done open image viewer then navigate to Freedcam you should see RAWTODNG tap on that it will filter out non Bayer files check all the Bayer files tap on RAWTODNG again it will bring up conversion settings window no need to change anything below you should see convert tap on it that's it it will batch convert or the Bayer files to dng .

3. Right I think media rescan code might not be active for external SD this will be looked into .

Lastly the Moto X style does not have a flat field profile when possible shoot a with image with uniform light from that we can generate a flat field correction to prevent vignetting and color shifts on the edges .

Quickest way place printing paper on PC screen ramp screen brightness as well as using white background defocus the image set iso to the lowest and shoot.
[Android Apps and Games] SMTB1963:
Looks like there's an issue with the DNGs produced by my Moto X Pure that didn't become apparent until I attempted to make some flat field images for you. There is a heavy blue cast on the DNGs, and it appears no matter which Bayer format I use in the FreeDCam settings. Perhaps there's some other setting in the app I'm unaware of?

When the flat field DNG is brought into into Camera Raw, the histogram clearly shows the blue channel is being pushed into the highlights (see attached pics). Happens when using both Camera Raw and Raw Therapee. I missed this in the earlier DNGs I shot because the scenes were outdoors with lots of blue sky in the frame. Shooting a white flat field scene brought the issue front and center.

Flat field jpg from the app comes out ok, although the one I've made here doesn't appear to be suitable for creating a sensor profile (no apparent vignetting).

Here's a folder with the DNGs using the various Bayer format options from the app if you need to look at them. There's a .bayer flat field image in there as well.

Don't know if anyone else is seeing this...perhaps the issue is specific to Moto X Pure and I'm the only one so far attempting raw on this cam. Or maybe some other setting in app I'm missing?

__________________________________

LOVE the app! Granular control over damn near everything. It a photo pro/enthusiast's dream. Mostly stable on my phone; I've had a few crashes...I'll try to get you some logs next chance I get.

Cheers!
[Android Apps and Games] leandro_soul:
great.

The best camera currently for CM13 - redmi 2 .
[Android Apps and Games] defcomg:
That's caused by the as shot neutral value in the dng in camera 1 there is no interface to determine the white balance it was shot so the default one used tends to push the blues up. If you have a color checker chart its possible to do self calibration and add create custom matrix that you can select from the color matrix menu it's possible to create a calibration for different lighting.

Its not possible to create calibrations for each device as we do not have access to them so we have some from donor devices such as the nexus 6 it's calibration seemed to produce similar results on most.

I have light room setup with a custom profile so it overrides the embedded one .
[Android Apps and Games] SMTB1963:
OK thanks. If I do the camera2 mod, would it fix things?

That might be beyond my knowledge level, but I may give it a try. How would I get a custom matrix into the app?

Thanks again for your help!
[Android Apps and Games] defcomg:
I think the Metadata was broken in camera 2 . Do you have a color checker ?

If yes go into freedcam menu > CustomMatrix > select Neutral this will basically turn off all color calibration .

When neutral Set Shoot an image of the color checker chart in different lighting .

Google Adobe Dng Profile editor load up the dngs of the color checker then match the colors it should do the calibration and export a dcp file for each image .

You can either attach them here or download DCPTool then it should convert them into an XML containing the color correction you can either attach the XMLs here or check the Freedcam github page there is info on how to create the custom profiles txt file.

[MENTION=7615249]SMTB1963[/MENTION] attached opc3.zip inside is a bin file containing flat field profile copy it to /DCIM/FreeDcam/config/
[Android Apps and Games] b1h:
Hmm... Should clipping detection work when the contrast is set to 0 (or some low number)?
[Android Apps and Games] SMTB1963:
OK, when I get beck in town I will get a color checker and give it a try. :D

Thanks!!! :good::good::good: Awesome work!
[Android Apps and Games] yogesh324:
Feature Request

[MENTION=377973]defcomg[/MENTION] can u add a feature to use fingerprint sensor as a shutter. Thank u
[Android Apps and Games] defcomg:
On which device?
[Android Apps and Games] yogesh324:
I m on xiaomi redmi note 3 (kenzo)
[Android Apps and Games] defcomg:
From what I can see there is no SDK/api released by xiaomi to add such a function so i don't think its possible at this moment however there was an app on playstore that detects key presses and lists the keys int code can't remember the name but if fingerprint registers and int key code then its possible to add.
[Android Apps and Games] yogesh324:
Thanks for the reply
[Android Apps and Games] xrad:
Hey [MENTION=5128617]troopii[/MENTION], [MENTION=377973]defcomg[/MENTION] just a quick heads up that I sent you a small pull request to improve the initial start on M. This might help avoid some headaches with new users.. Seems like you guys have put a lot of effort into cleaning up your source base. If you don't mind I'll try to help out with little patches here and there.
[Android Apps and Games] troopii:
Clipping works that way.

Rgb goes from 0 to 255.

Black detection triggers from 0-2 and highlights from 253-255

Contrast could affect it that way that these values never get reached. It could also affect focuspeak because then sharpareas have less or no microcontrast inside or detect it in areas that are not sharp.

Look in my github 139beta have support for redmi2 when you not have it already found
[Android Apps and Games] b1h:
Thank you very much! Currently testing out DNG. Things I have found so far: image properties don't get saved to the DNG. E.g. ISO, shutter speed... Also only bayer-mipi-10bggr works. Using other bayer formats results in an empty DNG file (.bayer for all 3 formats work.) This leaves me wondering, is there a significant difference for each one of them? I'm still having the SD card issue where the pictures won't show up until the app is restarted.
[Android Apps and Games] troopii:
qcom and qcom-ideal are packed the same way.

we started to support only mipi because thats the true rawdata from sensor(and that gets set as default). qcom and qcom-ideal can have colorcasts inside.dont ask where it came from i have no idea. but i seem that they are affected by somekind of postprocessing.

from the quality when they are shifted in correct byte order all 3 formats are the same.

and we are only able to store mipi as true 10bit dng. qcom gets expanded to 16bit wich increase filesize.

adding exif data is not possbile with your device. the parameters does not contain it. on newer qcom socs it gets printed into the parameters.

and there is no way to get it somewhere else from.

defcomg added a workaround on his devices wich takes it from logcat. but that is very device specific and need root on L>

that with the sdcard sounds a bit odd and i need a log to see whats going wrong. it can take 1-5 secs depending on cpu power until a dng is viewable.

it appears when it is cached sucessfull.

different is it with a otg plugged device.

they are not accessible without SAF, it gets used to write to it. but reading happens due old file api.

implementing that need a rework in best case and in worst case i have to create a separte viewer for it. not sure if that will happen(soon)
[Android Apps and Games] b1h:
This might be a crazy idea: simultaneous dng and jpeg? since jpeg does save properties so the data could be extracted.

sd card issue: This also includes jpegs and videos. I'll see if there's anything interesting in the logs.

Anything here suspicious?

08-01 21:36:27.717 D/ExternalStorage( 5145): After updating volumes, found 2 active roots

08-01 21:36:27.722 D/ShutterButton( 4963): switchBackground:image_capture_stop

08-01 21:36:27.789 D/ModuleAbstract( 4963): Filepath: content://com.android.externalstorage.documents/tree/4F43-18F5%3A/document/4F43-18F5%3ADCIM%2FFreeDcam

08-01 21:36:27.832 E/mm-camera( 292): invalid stats mask. Return back

08-01 21:36:27.889 D/ModuleAbstract( 4963): Filepath: content://com.android.externalstorage.documents/tree/4F43-18F5%3A/document/4F43-18F5%3ADCIM%2FFreeDcam%2FIMG_2016_08_01_21_36_27.jpg

08-01 21:36:27.899 E/mm-camera( 292): isp_hw_proc_hw_update: Error in HW update lock, frame id = 2, rc = -1

08-01 21:36:27.909 E/mm-camera( 292): invalid stats mask. Return back

08-01 21:36:27.915 D/ModuleAbstract( 4963): End Saving Bytes

08-01 21:36:27.917 D/ActivityFreeDcamMain( 4963): newImageRecieved:/null/DCIM/FreeDcam/IMG_2016_08_01_21_36_27.jpg

08-01 21:36:27.932 E/mm-camera( 292): cpp_hardware_process_frame:1035] stream_status:0xb698208c, iden:0x10002, cur_frame_id:2

08-01 21:36:27.932 D/MediaScannerReceiver( 1390): action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /storage/4F43-18F5/DCIM/FreeDcam/IMG_2016_08_01_21_36_27.jpg

08-01 21:36:27.936 E/AEC_PORT( 292): aec_port_save_update:real_gain:9.207031 linecnt:7428 exp_idx:378 cur_luma:25 led_est:0

08-01 21:36:27.951 D/MediaScannerReceiver( 1390): action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /null/DCIM/FreeDcam/IMG_2016_08_01_21_36_27.jpg