IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23319


Ignore:
Timestamp:
Mar 13, 2009, 5:10:07 PM (17 years ago)
Author:
Paul Price
Message:

If the parity in the output is not set, we're allowed to set it ourselves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPACopy.c

    r22699 r23319  
    173173    int xParityTarget = psMetadataLookupS32(&mdokT, target->concepts, "CELL.XPARITY"); // Target x parity
    174174    assert(mdokS && mdokT);
     175
     176    if (xParityTarget == 0) {
     177        psMetadataItem *item = psMetadataLookup(target->concepts, "CELL.XPARITY"); // Item with parity
     178        xParityTarget = item->data.S32 = xParitySource;
     179    }
     180
    175181    psAssert (abs(xParitySource) == 1, "CELL.XPARITY not set for source");
    176182    psAssert (abs(xParityTarget) == 1, "CELL.XPARITY not set for target");
     
    192198    int yParitySource = psMetadataLookupS32(&mdokS, source->concepts, "CELL.YPARITY"); // Source parity
    193199    assert(mdokS && mdokT);
     200
     201    if (yParityTarget == 0) {
     202        psMetadataItem *item = psMetadataLookup(target->concepts, "CELL.YPARITY"); // Item with parity
     203        yParityTarget = item->data.S32 = yParitySource;
     204    }
     205
    194206    psAssert (abs(yParitySource) == 1, "CELL.YPARITY not set for source");
    195207    psAssert (abs(yParityTarget) == 1, "CELL.YPARITY not set for target");
Note: See TracChangeset for help on using the changeset viewer.