Changeset 35561 for trunk/psModules/src/camera/pmFPAFlags.c
- Timestamp:
- May 9, 2013, 12:24:53 PM (13 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/camera/pmFPAFlags.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:mergeinfo changed
-
trunk/psModules/src/camera/pmFPAFlags.c
r29935 r35561 379 379 } 380 380 } 381 } 382 return true; 383 } 384 385 386 // XXX this function should probably be re-defined to merge with 'setCellsProcess' 387 bool pmChipSelectCells(pmChip *chip) 388 { 389 PS_ASSERT_PTR_NON_NULL(chip, false); 390 391 psArray *cells = chip->cells; // Component cells 392 if (!cells) { 393 return false; 394 } 395 396 for (int i = 0; i < cells->n; i++) { 397 pmCell *cell = cells->data[i]; 398 if (!cell) { 399 continue; 400 } 401 cell->process = true; 381 402 } 382 403 return true; … … 415 436 416 437 438 // turn off all chips 439 bool pmFPAExcludeChips(pmFPA *fpa) 440 { 441 PS_ASSERT_PTR_NON_NULL(fpa, false); 442 443 psArray *chips = fpa->chips; // Component chips 444 if (chips == NULL) { 445 psWarning("WARNING: fpa->chips == NULL\n"); 446 return false; 447 } 448 449 for (int i = 0 ; i < chips->n ; i++) { 450 pmChip *tmpChip = (pmChip *) chips->data[i]; // Chip of interest 451 if (tmpChip != NULL) { 452 tmpChip->process = false; 453 setCellsProcess(tmpChip, false); // Wipe out the cell as well 454 } 455 } 456 457 return true; 458 } 459 417 460 int pmChipExcludeCell(pmChip *chip, int cellNum) 418 461 {
Note:
See TracChangeset
for help on using the changeset viewer.
