IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15150


Ignore:
Timestamp:
Oct 1, 2007, 11:36:50 AM (19 years ago)
Author:
eugene
Message:

update the CONTENT table distinguishing between chip ID and chip NAME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r15101 r15150  
    637637                psMetadata *contents = psMetadataAlloc(); // List of contents, with chipName:chipType
    638638
     639                // XXX this is using the fpaItem->name not the chipName
    639640                psMetadataIterator *fpaIter = psMetadataIteratorAlloc(fpa, PS_LIST_HEAD, NULL); // Iteratr
    640641                psMetadataItem *fpaItem;    // Item from iteration
     
    683684                    return false;
    684685                }
     686
     687                // replace chip type with _mosaicChip
     688                psMetadataIterator *contentIter = psMetadataIteratorAlloc(contents, PS_LIST_HEAD, NULL); // Iterator
     689                psMetadataItem *contentItem;    // Item from iteration
     690                while ((contentItem = psMetadataGetAndIncrement(contentIter))) {
     691                    assert (contentItem->type == PS_DATA_STRING);
     692                    char *ptr = strchr (contentItem->data.str, ':');
     693                    assert (ptr);
     694                    psString content = psStringNCopy (contentItem->data.str, ptr - contentItem->data.str);
     695                    psStringAppend(&content, ":_mosaicChip ");
     696                    psFree (contentItem->data.str);
     697                    contentItem->data.str = content;               
     698                }
     699                psFree(contentIter);
     700
     701                # if (0)
    685702                while (psListLength(contents->list) > 0) {
    686703                    psMetadataRemoveIndex(contents, PS_LIST_TAIL);
     
    698715                }
    699716                psFree(fpaIter);
     717                # endif
    700718
    701719                psMetadata *chips = psMetadataAlloc(); // List of chip types, with cellName:cellType
Note: See TracChangeset for help on using the changeset viewer.