Hi,
I experimented with DNG in-camera developing. I modified process_dng_to_raw_files() to pass the converted filename to raw_prepare_develop(). Seems to work fine except the .CRW file is left over so it is wasteful of file space.
Jon
Here is the code. Note that I only modified the second part that converts only one file.
void process_dng_to_raw_files(void){
struct fitem *ptr;
int i=0;
started();
msleep(100);
finished();
if (fselect_real_marked_count()) {
for (ptr=head; ptr; ptr=ptr->next)
if (ptr->marked && ptr->attr != 0xFF && !(ptr->attr & DOS_ATTR_DIRECTORY)) {
sprintf(selected_file, "%s/%s", current_dir, ptr->name);
gui_browser_progress_show(selected_file, (i++)*100/fselect_real_marked_count()) ;
convert_dng_to_chdk_raw(selected_file);
}
}
else {
sprintf(selected_file, "%s/%s", current_dir, selected->name);//jh
convert_dng_to_chdk_raw(selected_file);
i=strlen(selected_file)-3;//jh
strcpy(selected_file+i,"CRW");//jh
gui_mbox_init((int)"", LANG_RAW_DEVELOP_MESSAGE, MBOX_BTN_OK|MBOX_TEXT_CENTER, NULL);//jh
raw_prepare_develop(selected_file);//jh
}
gui_fselect_read_dir(current_dir);
}