IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29822


Ignore:
Timestamp:
Nov 24, 2010, 12:09:56 PM (15 years ago)
Author:
eugene
Message:

add compression support when writing config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/psModules/src/config/pmConfigDump.c

    r27147 r29822  
    150150    }
    151151
    152     if (!psMetadataConfigWrite(config->user, resolved)) {
     152    // check for Metadata compression options:
     153    char *compressMode;
     154    bool status = false;
     155    if (config->camera) {
     156        compressMode = psMetadataLookupStr(&status, config->camera, "METADATA.COMPRESSION");
     157    }
     158
     159    if (!psMetadataConfigWrite(config->user, resolved, compressMode)) {
    153160        psError(psErrorCodeLast(), false, "Unable to dump configuration to %s", filename);
    154161        psFree(resolved);
Note: See TracChangeset for help on using the changeset viewer.