- Timestamp:
- Dec 17, 2008, 10:24:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20081216/psModules/src/camera/pmHDU.c
r21022 r21029 245 245 246 246 247 bool pmHDUWriteIdentifiers(pmHDU *hdu, ps U64 imageId, psU64 sourceId)247 bool pmHDUWriteIdentifiers(pmHDU *hdu, psS64 imageId, psS64 sourceId) 248 248 { 249 249 PS_ASSERT_PTR_NON_NULL(hdu, false); … … 251 251 // XXX Get header keyword name from camera configuration 252 252 253 psMetadataAdd U64(hdu->header, PS_LIST_TAIL, "IMAGEID", PS_META_REPLACE, "Image identifier", imageId);254 psMetadataAdd U64(hdu->header, PS_LIST_TAIL, "SOURCEID", PS_META_REPLACE, "Source identifier", sourceId);255 return true; 256 } 257 258 bool pmHDUReadIdentifiers(ps U64 *imageId, psU64 *sourceId, const pmHDU *hdu)253 psMetadataAddS64(hdu->header, PS_LIST_TAIL, "IMAGEID", PS_META_REPLACE, "Image identifier", imageId); 254 psMetadataAddS64(hdu->header, PS_LIST_TAIL, "SOURCEID", PS_META_REPLACE, "Source identifier", sourceId); 255 return true; 256 } 257 258 bool pmHDUReadIdentifiers(psS64 *imageId, psS64 *sourceId, const pmHDU *hdu) 259 259 { 260 260 PS_ASSERT_PTR_NON_NULL(hdu, false); … … 263 263 264 264 bool imageOK, sourceOK; // Status of MD lookups 265 *imageId = psMetadataLookup U64(&imageOK, hdu->header, "IMAGEID");266 *sourceId = psMetadataLookup U64(&sourceOK, hdu->header, "SOURCEID");265 *imageId = psMetadataLookupS64(&imageOK, hdu->header, "IMAGEID"); 266 *sourceId = psMetadataLookupS64(&sourceOK, hdu->header, "SOURCEID"); 267 267 268 268 return imageOK && sourceOK;
Note:
See TracChangeset
for help on using the changeset viewer.
