- Timestamp:
- Sep 7, 2010, 9:16:10 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/dvo/ImageSelection.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823
-
branches/eam_branches/ipp-20100823/Ohana/src/opihi/dvo/ImageSelection.c
r28958 r29124 47 47 Image *MatchImage (unsigned int time, short int source, unsigned int imageID) { 48 48 49 int m ;49 int m = -1; 50 50 51 51 if ((imageID != 0) && (imageID < Nimage)) { 52 m = (int) imageID - 1; 53 } else { 52 // imageID is in range for the array of images. If the table is still in order and 53 // no images have been deleted the index of the image we are looking for will be imageID - 1 54 // If this is the case, we have it. Otherwise we'll have to go search for it below 55 int guess = (int) imageID - 1; 56 if (image[guess].imageID == imageID) { 57 m = guess; 58 } 59 } 60 if (m == -1) { 54 61 m = match_image_subset (image, subset, Nsubset, time, source); 55 62 }
Note:
See TracChangeset
for help on using the changeset viewer.
