Changeset 23358
- Timestamp:
- Mar 17, 2009, 2:26:38 PM (17 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAfile.c (modified) (3 diffs)
-
pmFPAfile.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r23272 r23358 20 20 #include "pmConceptsCopy.h" 21 21 22 static int fileNum = 0; // Number of file 23 22 24 static void pmFPAfileFree(pmFPAfile *file) 23 25 { … … 100 102 101 103 file->save = false; 104 105 file->index = fileNum++; 102 106 103 107 file->imageId = 0; … … 350 354 psStringSubstitute(&newRule, name, "{OUTPUT}"); 351 355 } 356 } 357 358 if (strstr(newRule, "{FILE.INDEX}")) { 359 // Number of the file in list 360 psString num = NULL; // Number to use 361 psStringAppend(&num, "%d", file->index); 362 psStringSubstitute(&newRule, num, "{FILE.INDEX}"); 363 psFree(num); 352 364 } 353 365 -
trunk/psModules/src/camera/pmFPAfile.h
r23272 r23358 109 109 psString formatName; // name of the camera format 110 110 111 int index; // Index of file 112 111 113 psS64 imageId, sourceId; // Image and source identifiers 112 114 } pmFPAfile;
Note:
See TracChangeset
for help on using the changeset viewer.
