Changeset 7469 for trunk/psModules/src/camera/pmFPARead.c
- Timestamp:
- Jun 9, 2006, 3:55:20 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r7407 r7469 183 183 184 184 // Make sure we have the information we need 185 pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CAMERA | PM_CONCEPT_SOURCE_DEFAULTS, 186 false, NULL); 185 if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CAMERA | 186 PM_CONCEPT_SOURCE_DEFAULTS, true, NULL)) { 187 psError(PS_ERR_IO, false, "Failed to read concepts for cell.\n"); 188 return false; 189 } 187 190 188 191 // Get the trim and bias sections … … 322 325 } 323 326 324 if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL)) {327 if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, true, NULL)) { 325 328 psError(PS_ERR_UNKNOWN, false, "Failed to read concepts for cell"); 326 329 return false; … … 354 357 } 355 358 356 pmCellSetDataStatus (cell, true);359 pmCellSetDataStatus(cell, true); 357 360 return true; 358 361 } … … 374 377 } 375 378 if (success) { 376 pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, false, NULL); 379 if (!pmConceptsReadChip(chip, PM_CONCEPT_SOURCE_HEADER, true, true, NULL)) { 380 psError(PS_ERR_IO, false, "Failed to read concepts for FPA.\n"); 381 return false; 382 } 377 383 // XXX probably could just use chip->data_exists 378 pmChipSetDataStatus (chip, true);384 pmChipSetDataStatus(chip, true); 379 385 } 380 386 … … 398 404 } 399 405 if (success) { 400 pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL); 406 if (!pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, true, NULL)) { 407 psError(PS_ERR_IO, false, "Failed to read concepts for FPA.\n"); 408 return false; 409 } 401 410 } else { 402 411 psError(PS_ERR_UNKNOWN, false, "Unable to read any chips in FPA");
Note:
See TracChangeset
for help on using the changeset viewer.
