IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7380 for trunk/psLib/src/types


Ignore:
Timestamp:
Jun 6, 2006, 5:22:07 PM (20 years ago)
Author:
Paul Price
Message:

Merging the pslib "additional" functions from the modules into psLib proper.

Added jpeg directory for psImageJpeg.
Changes to build system (configure.ac, and various Makefile.am)

psVectorSmooth: changed API to allow optional output vector
psSparse: changed sizes to type "long"; added "const"
psRegionIsBad: Renamed psRegionIsNaN
psImageBicubeFit: changed sizes to "long"; added a "const"
psLine: changed sizes to "long"
psImageUnbin: description required in SDRS
psImageClippedStats: renaming to psImageBackground; removing static structures; API changed!
psImageFlipX, psImageFlipY merged to psImageFlip
psStringSubstitute: added "const"

Location:
trunk/psLib/src/types
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/Makefile.am

    r7210 r7380  
    1212        psMetadata.c \
    1313        psMetadataConfig.c \
     14        psMetadataItemParse.c \
     15        psMetadataItemCompare.c \
    1416        psPixels.c \
    1517        psArguments.c
     
    2628        psMetadata.h \
    2729        psMetadataConfig.h \
     30        psMetadataItemParse.h \
     31        psMetadataItemCompare.h \
    2832        psPixels.h \
    2933        psArguments.h
  • trunk/psLib/src/types/psMetadata.c

    r7368 r7380  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.107 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-06-06 22:54:22 $
     14 *  @version $Revision: 1.108 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-06-07 03:22:06 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    445445    return out;
    446446}
     447
     448
     449// may need to extend this to change the keyname in the copy
     450bool psMetadataItemTransfer(psMetadata *out, const psMetadata *in, const char *key)
     451{
     452
     453    psMetadataItem *item = psMetadataLookup(in, key);
     454    if (!item) {
     455        return false;
     456    }
     457
     458    return psMetadataAddItem(out, item, PS_LIST_TAIL, PS_META_REPLACE);
     459}
     460
    447461
    448462bool psMetadataAddItem(psMetadata *md,
  • trunk/psLib/src/types/psMetadata.h

    r7368 r7380  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2006-06-06 22:54:22 $
     13*  @version $Revision: 1.77 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-06-07 03:22:06 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    361361);
    362362
     363// Copy a metadata item from one psMetadata to another
     364bool psMetadataItemTransfer(psMetadata *out, // Destination: copy is placed here
     365                            const psMetadata *in, // Source: item comes from here
     366                            const char *key // key to identify the metadata item
     367                           );
     368
    363369/** Add existing metadata item to metadata collection.
    364370 *
Note: See TracChangeset for help on using the changeset viewer.