Changeset 20634 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Nov 10, 2008, 2:02:26 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r18654 r20634 172 172 int xParityTarget = psMetadataLookupS32(&mdokT, target->concepts, "CELL.XPARITY"); // Target x parity 173 173 assert(mdokS && mdokT); 174 psAssert (abs(xParitySource) == 1, "CELL.XPARITY not set for source"); 175 psAssert (abs(xParityTarget) == 1, "CELL.XPARITY not set for target"); 174 176 if (abs(xParitySource) != 1) { 175 177 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.XPARITY is not set for source (%d)", … … 189 191 int yParitySource = psMetadataLookupS32(&mdokS, source->concepts, "CELL.YPARITY"); // Source parity 190 192 assert(mdokS && mdokT); 193 psAssert (abs(yParitySource) == 1, "CELL.YPARITY not set for source"); 194 psAssert (abs(yParityTarget) == 1, "CELL.YPARITY not set for target"); 191 195 if (abs(yParitySource) != 1) { 192 196 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.YPARITY is not set for source (%d)", … … 324 328 int xSize = psMetadataLookupS32(NULL, source->concepts, "CELL.XSIZE"); // CELL.XSIZE of source 325 329 330 psAssert (abs(xParity) == 1, "CELL.XPARITY not set for source"); 331 326 332 if (sourceBin == 0) { 327 333 // Don't know the binning; assume it is unity … … 472 478 pmCell *targetCell = pmCellAlloc (targetChip, cellName); 473 479 int xParityTarget = psMetadataLookupS32(&status, sourceCell->concepts, "CELL.XPARITY"); // Target x parity 480 psAssert (abs(xParityTarget) == 1, "CELL.XPARITY not set for target"); 474 481 psMetadataAddS32 (targetCell->concepts, PS_LIST_TAIL, "CELL.XPARITY", PS_META_REPLACE, "", xParityTarget); 475 482 int yParityTarget = psMetadataLookupS32(&status, sourceCell->concepts, "CELL.YPARITY"); // Target y parity 483 psAssert (abs(xParityTarget) == 1, "CELL.YPARITY not set for target"); 476 484 psMetadataAddS32 (targetCell->concepts, PS_LIST_TAIL, "CELL.YPARITY", PS_META_REPLACE, "", yParityTarget); 477 485 if (!cellCopy(targetCell, sourceCell, true, 1, 1)) {
Note:
See TracChangeset
for help on using the changeset viewer.
