Changeset 35579
- Timestamp:
- May 10, 2013, 5:53:31 PM (13 years ago)
- Location:
- trunk/Ohana/src/addstar
- Files:
-
- 4 edited
-
include/addstar.h (modified) (1 diff)
-
src/ImageIndex.c (modified) (1 diff)
-
src/UpdateImageIDs.c (modified) (2 diffs)
-
src/args.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r35263 r35579 119 119 int ACCEPT_TIME; // accept time stamp (or 0) 120 120 int NO_STARS; // ignore the stars 121 int NO_DUPLICATE_IMAGES; // allow / skip duplicate images 122 int IMAGE_ID_OVERRIDE; // allow / skip duplicate images 121 123 int TEXTMODE; // force input file to be loaded as RAW 122 124 int SUBPIX; // apply a subpix correction -
trunk/Ohana/src/addstar/src/ImageIndex.c
r35263 r35579 159 159 if (!index) { 160 160 fprintf (stderr, "image index file is not found, cannot check for image duplicates\n"); 161 exit ( 2);161 exit (1); 162 162 } 163 163 -
trunk/Ohana/src/addstar/src/UpdateImageIDs.c
r35263 r35579 35 35 } 36 36 37 // TEST IMAGE_ID OVER-RIDE: 38 if (IMAGE_ID_OVERRIDE) { 39 imageID = IMAGE_ID_OVERRIDE; 40 } 41 37 42 // XXX should the first image ID be 1, not 0? 38 43 if (imageID == 0) imageID = 1; … … 54 59 // set and update the imageID sequence 55 60 // the file holding the index is created above if this is an empty db 56 CheckDuplicateImageIDs (images, Nimages); 61 if (NO_DUPLICATE_IMAGES) { 62 CheckDuplicateImageIDs (images, Nimages); 63 } 57 64 58 65 imageID += Nimages; -
trunk/Ohana/src/addstar/src/args.c
r34405 r35579 308 308 if ((N = get_argument (argc, argv, "-no-stars"))) { 309 309 NO_STARS = TRUE; 310 remove_argument (N, &argc, argv); 311 } 312 /* skip the stars */ 313 NO_DUPLICATE_IMAGES = TRUE; 314 if ((N = get_argument (argc, argv, "-dup-images"))) { 315 NO_DUPLICATE_IMAGES = FALSE; 316 remove_argument (N, &argc, argv); 317 } 318 /* skip the stars */ 319 IMAGE_ID_OVERRIDE = 0; 320 if ((N = get_argument (argc, argv, "-image-id-override"))) { 321 remove_argument (N, &argc, argv); 322 IMAGE_ID_OVERRIDE = atoi(argv[N]); 310 323 remove_argument (N, &argc, argv); 311 324 } … … 438 451 fprintf (stderr, " -use-name : use the given name instead of the filename as the filename\n"); 439 452 fprintf (stderr, " -no-stars : skip the stars\n"); 453 fprintf (stderr, " -dup-images : skip the test for duplicate image IDs (test only!)\n"); 440 454 fprintf (stderr, " -force : force read of database with inconsistent info\n"); 441 455 fprintf (stderr, " -threads (N) : use N threads for resort option\n");
Note:
See TracChangeset
for help on using the changeset viewer.
