@tekmage
Quote:
Right now DCRAW is GPL as a stand alone executable. Not sure what it would take to build it in to a library.
You'd probably need to remove the main() function and then you should be able to just add the files to the list to build, and then you need to rewrite main() (or whichever function calls the conversion routine) to make it datatype-friendly.
The problem with standalone commands is they tend to be written specifically to do the one task - ie. take the input from a file and write it to another file - whereas datatypes need to take the input from memory and write it back out to memory as an uncompressed bitmap. It may be easy to adapt the code, or it might need a fair amount of rewriting.
If you're bored enough during lockdown to work on it it might be an interesting project.
Quote:
My wish list would be to have an "auto" mode which all the various RAW knobs are set to default and an "adjust" mode which would popup a GUI to let people control the knobs. Take a look at UFRAW for AmiCygnix to see how extensive that could be.
I think it's possible to add a GUI to image datatypes although I'm not sure I've ever seen it done. It is easier to have a separate Prefs program which sets all the values in ENV(ARC): which the datatype code then reads. If you want to micro-adjust values for conversion then a datatype probably isn't the right choice, you need a image processing program that has the ability to have input plugins with real-time adjustments visible.