IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 13, 2007, 5:22:48 PM (19 years ago)
Author:
Paul Price
Message:

Adding const to pmConfig parameter, where possible.

Location:
trunk/psModules/src/camera
Files:
6 edited

Legend:

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

    r12696 r12832  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-03-30 21:12:56 $
     7 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-04-14 03:22:47 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3535
    3636
    37 bool pmFPAviewWriteJPEG(const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     37bool pmFPAviewWriteJPEG(const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    3838{
    3939    PS_ASSERT_PTR_NON_NULL(view, false);
     
    7777
    7878// read in all chip-level JPEG files for this FPA
    79 bool pmFPAWriteJPEG (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     79bool pmFPAWriteJPEG (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    8080{
    8181    PS_ASSERT_PTR_NON_NULL(fpa, false);
     
    9292
    9393// read in all cell-level JPEG files for this chip
    94 bool pmChipWriteJPEG (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     94bool pmChipWriteJPEG (pmChip *chip, const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    9595{
    9696    PS_ASSERT_PTR_NON_NULL(chip, false);
     
    107107
    108108// read in all readout-level JPEG files for this cell
    109 bool pmCellWriteJPEG (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     109bool pmCellWriteJPEG (pmCell *cell, const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    110110{
    111111    PS_ASSERT_PTR_NON_NULL(cell, false);
     
    125125// just because the values are in a poor range.  it is more convenient to know you are getting
    126126// a jpeg which is weird than to fail to get the file at all.
    127 bool pmReadoutWriteJPEG (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     127bool pmReadoutWriteJPEG (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    128128{
    129129    bool status;
  • trunk/psModules/src/camera/pmFPA_JPEG.h

    r11253 r12832  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-01-24 02:54:14 $
     6 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-04-14 03:22:47 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    1515/// @{
    1616
    17 bool pmFPAviewWriteJPEG (const pmFPAview *view, pmFPAfile *file, pmConfig *config);
    18 bool pmFPAWriteJPEG (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, pmConfig *config);
    19 bool pmChipWriteJPEG (pmChip *chip, const pmFPAview *view, pmFPAfile *file, pmConfig *config);
    20 bool pmCellWriteJPEG (pmCell *cell, const pmFPAview *view, pmFPAfile *file, pmConfig *config);
    21 bool pmReadoutWriteJPEG (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, pmConfig *config);
     17bool pmFPAviewWriteJPEG (const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
     18bool pmFPAWriteJPEG (pmFPA *fpa, const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
     19bool pmChipWriteJPEG (pmChip *chip, const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
     20bool pmCellWriteJPEG (pmCell *cell, const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
     21bool pmReadoutWriteJPEG (pmReadout *readout, const pmFPAview *view, pmFPAfile *file, const pmConfig *config);
    2222
    2323/// @}
  • trunk/psModules/src/camera/pmFPAfileFitsIO.c

    r12696 r12832  
    322322}
    323323
    324 bool pmFPAviewWriteFitsImage(const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     324bool pmFPAviewWriteFitsImage(const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    325325{
    326326    PS_ASSERT_PTR_NON_NULL(view, false);
     
    329329}
    330330
    331 bool pmFPAviewWriteFitsMask(const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     331bool pmFPAviewWriteFitsMask(const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    332332{
    333333    PS_ASSERT_PTR_NON_NULL(view, false);
     
    336336}
    337337
    338 bool pmFPAviewWriteFitsWeight(const pmFPAview *view, pmFPAfile *file, pmConfig *config)
     338bool pmFPAviewWriteFitsWeight(const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
    339339{
    340340    PS_ASSERT_PTR_NON_NULL(view, false);
  • trunk/psModules/src/camera/pmFPAfileFitsIO.h

    r11793 r12832  
    55 * @author PAP, IfA
    66 *
    7  * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    8  * @date $Date: 2007-02-15 00:34:00 $
     7 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     8 * @date $Date: 2007-04-14 03:22:47 $
    99 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    1010 */
     
    3232/// Read an image header into the current view
    3333bool pmFPAviewReadFitsHeaderSet(const pmFPAview *view,  ///< View specifying level of interest
    34                                 pmFPAfile *file ///< FPA file into which to read
     34                                pmFPAfile *file ///< FPA file into which to read
    3535    );
    3636
     
    3838bool pmFPAviewWriteFitsImage(const pmFPAview *view, ///< View specifying level of interest
    3939                             pmFPAfile *file, ///< FPA file to write
    40                              pmConfig *config ///< Configuration
     40                             const pmConfig *config ///< Configuration
    4141                            );
    4242
     
    4444bool pmFPAviewWriteFitsMask(const pmFPAview *view, ///< View specifying level of interest
    4545                            pmFPAfile *file, ///< FPA file to write
    46                             pmConfig *config ///< Configuration
     46                            const pmConfig *config ///< Configuration
    4747                           );
    4848
     
    5050bool pmFPAviewWriteFitsWeight(const pmFPAview *view, ///< View specifying level of interest
    5151                              pmFPAfile *file, ///< FPA file to write
    52                               pmConfig *config ///< Configuration
     52                              const pmConfig *config ///< Configuration
    5353                             );
    5454
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r12810 r12832  
    498498      case PM_FPA_FILE_CMF:
    499499        psTrace ("psModules.camera", 5, "NOT freeing %s (%s) : save for further analysis\n", file->filename, file->name);
    500         return true;
     500        return true;
    501501      case PM_FPA_FILE_PSF:
    502502      case PM_FPA_FILE_JPEG:
    503503      case PM_FPA_FILE_KAPA:
    504504        psTrace ("psModules.camera", 5, "nothing to free for %s (%s)\n", file->filename, file->name);
    505         return true;
     505        return true;
    506506      default:
    507507        psError(PS_ERR_IO, true, "warning: type mismatch; saw type %d", file->type);
     
    719719    psMetadata *phu = psFitsReadHeader (NULL, file->fits);
    720720    if (!file->format) {
    721         // XXX do we need to read the recipe here?  these files are supplemental, and probably
    722         // do not need to re-load the recipes
     721        // XXX do we need to read the recipe here?  these files are supplemental, and probably
     722        // do not need to re-load the recipes
    723723        file->format = pmConfigCameraFormatFromHeader (config, phu, false);
    724724        if (!file->format) {
     
    748748
    749749// XXX this function is only called from pmFPAfileWrite
    750 bool pmFPAfileWritePHU(pmFPAfile *file, const pmFPAview *view, pmConfig *config)
     750bool pmFPAfileWritePHU(pmFPAfile *file, const pmFPAview *view, const pmConfig *config)
    751751{
    752752    PS_ASSERT_PTR_NON_NULL(file, false);
  • trunk/psModules/src/camera/pmFPAfileIO.h

    r12585 r12832  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-03-24 17:53:55 $
     6 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-04-14 03:22:47 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    3939bool pmFPAfileIOChecks (pmConfig *config, const pmFPAview *view, pmFPAfilePlace place);
    4040
    41 bool pmFPAfileWritePHU(pmFPAfile *file, const pmFPAview *view, pmConfig *config);
     41bool pmFPAfileWritePHU(pmFPAfile *file, const pmFPAview *view, const pmConfig *config);
    4242bool pmFPAfileReadPHU (pmFPAfile *file, const pmFPAview *view, pmConfig *config);
    4343
Note: See TracChangeset for help on using the changeset viewer.