Changeset 27838 for branches/tap_branches/Ohana/src/opihi/dvo/images.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/opihi/dvo/images.c
r20936 r27838 11 11 int images (int argc, char **argv) { 12 12 13 int i, j, Nimage, status, InPic, leftside, *plist, TimeSelect, ByName; 13 off_t i, Nimage; 14 int j, status, InPic, leftside, *plist, TimeSelect, ByName; 14 15 int WITH_MOSAIC, SOLO_MOSAIC, HIDDEN; 15 16 time_t tzero, tend; … … 21 22 char name[256]; 22 23 int typehash; 23 24 PhotCode *photcode; 25 int Nsec, photcodeEquiv; 26 27 if (!InitPhotcodes ()) return (FALSE); 24 28 if (!style_args (&graphmode, &argc, argv, &kapa)) goto usage; 25 29 … … 41 45 remove_argument (N, &argc, argv); 42 46 HIDDEN = TRUE; 47 } 48 49 photcode = NULL; 50 photcodeEquiv = FALSE; 51 if ((N = get_argument (argc, argv, "-p"))) { 52 remove_argument (N, &argc, argv); 53 photcode = GetPhotcodebyName (argv[N]); 54 if (photcode == NULL) { 55 gprint (GP_ERR, "photcode %s not found\n", argv[N]); 56 return FALSE; 57 } 58 remove_argument (N, &argc, argv); 59 Nsec = GetPhotcodeNsec (photcode->code); 60 if (Nsec != -1) photcodeEquiv = TRUE; 61 } 62 if ((N = get_argument (argc, argv, "-photcode"))) { 63 remove_argument (N, &argc, argv); 64 photcode = GetPhotcodebyName (argv[N]); 65 if (photcode == NULL) { 66 gprint (GP_ERR, "photcode %s not found\n", argv[N]); 67 return FALSE; 68 } 69 remove_argument (N, &argc, argv); 70 Nsec = GetPhotcodeNsec (photcode->code); 71 if (Nsec != -1) photcodeEquiv = TRUE; 43 72 } 44 73 … … 122 151 if (TimeSelect && ((image[i].tzero < tzero) || (image[i].tzero+image[i].trate*image[i].NY > tzero + trange))) continue; 123 152 if (!FindMosaicForImage (image, Nimage, i)) continue; 153 if (photcode) { 154 if ( photcodeEquiv && (photcode[0].code != GetPhotcodeEquivCodebyCode(image[i].photcode))) continue; 155 if (!photcodeEquiv && (photcode[0].code != image[i].photcode)) continue; 156 } 124 157 125 158 Npts = 4;
Note:
See TracChangeset
for help on using the changeset viewer.
