Index: trunk//core/raw.c===================================================================--- trunk//core/raw.c (Revision 530)+++ trunk//core/raw.c (Arbeitskopie)@@ -9,6 +9,7 @@ #define RAW_TARGET_DIRECTORY "A/DCIM/%03dCANON" //#define RAW_TMP_FILENAME "HDK_RAW.TMP" #define RAW_TARGET_FILENAME "%s%04d%s"+#define RAW_SEQUENCE_PREFIX "ST#_" //------------------------------------------------------------------- static char fn[64];@@ -26,6 +27,7 @@ int raw_savefile() { int fd, m=(mode_get()&MODE_SHOOTING_MASK); static struct utimbuf t;+ static int bracket_count; if (state_kbd_script_run && shot_histogram_enabled) build_shot_histogram(); @@ -46,6 +48,16 @@ shooting_bracketing(); + // count sequence if in bracketing mode+ if (conf.tv_bracket_value || conf.av_bracket_value || conf.iso_bracket_value || conf.subj_dist_bracket_value) {+ if (state_shooting_progress != SHOOTING_PROGRESS_PROCESSING)+ bracket_count = 1;+ else+ bracket_count++;+ }+ else+ bracket_count=0;+ // got here second time in a row. Skip second RAW saving. if (conf.raw_save_first_only && state_shooting_progress == SHOOTING_PROGRESS_PROCESSING) { return 0;@@ -65,7 +77,13 @@ mkdir(dir); sprintf(fn, "%s/", dir);- sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, img_prefixes[conf.raw_prefix], get_target_file_num(), img_exts[conf.raw_ext]);+ if (bracket_count) {+ char* prefix = RAW_SEQUENCE_PREFIX;+ *(prefix+2) = (char)('@'+(bracket_count<26?bracket_count:26)); + sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, prefix, get_target_file_num(), img_exts[conf.raw_ext]);+ }+ else+ sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, img_prefixes[conf.raw_prefix], get_target_file_num(), img_exts[conf.raw_ext]); fd = open(fn, O_WRONLY|O_CREAT, 0777); if (fd>=0) {
Index: trunk/core/raw.c===================================================================--- trunk/core/raw.c (Revision 530)+++ trunk/core/raw.c (Arbeitskopie)@@ -9,6 +9,7 @@ #define RAW_TARGET_DIRECTORY "A/DCIM/%03dCANON" //#define RAW_TMP_FILENAME "HDK_RAW.TMP" #define RAW_TARGET_FILENAME "%s%04d%s"+#define RAW_SEQUENCE_PREFIX "ST#_" //------------------------------------------------------------------- static char fn[64];@@ -26,6 +27,7 @@ int raw_savefile() { int fd, m=(mode_get()&MODE_SHOOTING_MASK); static struct utimbuf t;+ static int bracket_count; if (state_kbd_script_run && shot_histogram_enabled) build_shot_histogram(); @@ -46,6 +48,16 @@ shooting_bracketing(); + // count sequence if in bracketing mode+ if (conf.tv_bracket_value || conf.av_bracket_value || conf.iso_bracket_value || conf.subj_dist_bracket_value || (mode_get()&MODE_SHOOTING_MASK)==MODE_STITCH) {+ if (state_shooting_progress != SHOOTING_PROGRESS_PROCESSING)+ bracket_count = 1;+ else+ bracket_count++;+ }+ else+ bracket_count=0;+ // got here second time in a row. Skip second RAW saving. if (conf.raw_save_first_only && state_shooting_progress == SHOOTING_PROGRESS_PROCESSING) { return 0;@@ -65,7 +77,13 @@ mkdir(dir); sprintf(fn, "%s/", dir);- sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, img_prefixes[conf.raw_prefix], get_target_file_num(), img_exts[conf.raw_ext]);+ if (bracket_count) {+ char* prefix = RAW_SEQUENCE_PREFIX;+ *(prefix+2) = (char)('@'+(bracket_count<26?bracket_count:26)); + sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, prefix, get_target_file_num(), img_exts[conf.raw_ext]);+ }+ else+ sprintf(fn+strlen(fn), RAW_TARGET_FILENAME, img_prefixes[conf.raw_prefix], get_target_file_num(), img_exts[conf.raw_ext]); fd = open(fn, O_WRONLY|O_CREAT, 0777); if (fd>=0) {[/codr]
It works!Accessing raw images named ST#... via USB cabel is working as well.
using ptp (gphoto on linux for example) or the canon software on windows i guess.
thats because you chose a prefix that the camera normally doesnt use
Started by atalwar General Discussion and Assistance
Started by bananaman Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by katrinamo General Discussion and Assistance
Started by pigeonhill General Discussion and Assistance
Started by ChrisN Script Writing