IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2007, 3:41:56 PM (19 years ago)
Author:
jhoblitt
Message:

s/p0/reg/g
s/p1/guide/g
s/p2/chip/g
s/p6/stack/g
s/p5/diff/g
s/p4/warp/g
s/p3/cam/g

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r11997 r12024  
    3939
    4040// static p1PendingExpRow *newToP1PendingExp(newExpRow *newExp);
    41 static p2PendingExpRow *newToP2PendingExp(pxConfig *config, newExpRow *newExp);
    42 static p2PendingImfileRow *rawImfileToP2PendingImfile(pxConfig *config, rawImfileRow *rawImfile);
     41static chipPendingExpRow *newTochipPendingExp(pxConfig *config, newExpRow *newExp);
     42static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, rawImfileRow *rawImfile);
    4343
    4444static rawExpRow *newToRawExp(pxConfig *config, newExpRow *exp);
     
    672672        }
    673673
    674         // if this is a detrend image don't put it in the p2 queue (and we're
     674        // if this is a detrend image don't put it in the chip queue (and we're
    675675        // done)
    676676        if (detrend) {
     
    679679        }
    680680
    681         // insert an entry into the p2PendingExp table
    682         p2PendingExpRow *p2PendingExp = newToP2PendingExp(config, newExp);
    683         if (!p2PendingExp) {
    684             psError(PS_ERR_UNKNOWN, false, "failed to convert newExp to p2PendingExp");
     681        // insert an entry into the chipPendingExp table
     682        chipPendingExpRow *chipPendingExp = newTochipPendingExp(config, newExp);
     683        if (!chipPendingExp) {
     684            psError(PS_ERR_UNKNOWN, false, "failed to convert newExp to chipPendingExp");
    685685            psFree(newExp);
    686686            psFree(output);
     
    688688        }
    689689
    690         // insert the p2PendingExp object into the database
    691         if (!p2PendingExpInsertObject(config->dbh, p2PendingExp)) {
     690        // insert the chipPendingExp object into the database
     691        if (!chipPendingExpInsertObject(config->dbh, chipPendingExp)) {
    692692            // rollback
    693693            if (!psDBRollback(config->dbh)) {
     
    695695            }
    696696            psError(PS_ERR_UNKNOWN, false, "database error");
    697             psFree(p2PendingExp);
     697            psFree(chipPendingExp);
    698698            psFree(newExp);
    699699            psFree(output);
    700700            return false;
    701701        }
    702         psFree(p2PendingExp);
    703 
    704         // find all of the rawImfiles associated with the p2PendingExp object
     702        psFree(chipPendingExp);
     703
     704        // find all of the rawImfiles associated with the chipPendingExp object
    705705        psArray *rawImfiles = NULL;
    706706        {
     
    744744            return false;
    745745        }
    746         // convert the rawImfiles into p2PendingImfiles and insert them into
     746        // convert the rawImfiles into chipPendingImfiles and insert them into
    747747        // the database
    748748        for (long i = 0; i < psArrayLength(rawImfiles); i++) {
    749749            rawImfileRow *rawImfile = rawImfiles->data[i];
    750             p2PendingImfileRow *pendingImfile = rawImfileToP2PendingImfile(config, rawImfile);
    751             if (!p2PendingImfileInsertObject(config->dbh, pendingImfile)){
     750            chipPendingImfileRow *pendingImfile = rawImfileTochipPendingImfile(config, rawImfile);
     751            if (!chipPendingImfileInsertObject(config->dbh, pendingImfile)){
    752752                // rollback
    753753                if (!psDBRollback(config->dbh)) {
     
    915915
    916916
    917 static p2PendingExpRow *newToP2PendingExp(pxConfig *config, newExpRow *exp)
     917static chipPendingExpRow *newTochipPendingExp(pxConfig *config, newExpRow *exp)
    918918{
    919919    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    928928    }
    929929
    930     p2PendingExpRow *p2Exp = p2PendingExpRowAlloc(
     930    chipPendingExpRow *chipExp = chipPendingExpRowAlloc(
    931931        exp->exp_tag,
    932         0x0,            // p2 version XXX calc version number
     932        0x0,            // chip version XXX calc version number
    933933        0xdeadbeef,     // p1 version
    934934        label,
     
    938938    );
    939939
    940     return p2Exp;
    941 }
    942 
    943 
    944 static p2PendingImfileRow *rawImfileToP2PendingImfile(pxConfig *config, rawImfileRow *rawImfile)
    945 {
    946     return p2PendingImfileRowAlloc(
     940    return chipExp;
     941}
     942
     943
     944static chipPendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, rawImfileRow *rawImfile)
     945{
     946    return chipPendingImfileRowAlloc(
    947947        rawImfile->exp_tag,
    948         0x0,          // p2 version XXX calc version number
     948        0x0,          // chip version XXX calc version number
    949949        0xdeadbeef,   // p1 version
    950950        rawImfile->class_id,
Note: See TracChangeset for help on using the changeset viewer.