Changeset 9608
- Timestamp:
- Oct 16, 2006, 5:42:55 PM (20 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmHDUUtils.c (modified) (7 diffs)
-
pmHDUUtils.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDUUtils.c
r8815 r9608 9 9 10 10 11 pmHDU *pmHDUFromFPA(const pmFPA *fpa // FPA for which to find HDU 12 ) 11 pmHDU *pmHDUFromFPA(const pmFPA *fpa) 13 12 { 14 13 PS_ASSERT_PTR_NON_NULL(fpa, NULL); … … 16 15 } 17 16 18 pmHDU *pmHDUFromChip(const pmChip *chip // Chip for which to find HDU 19 ) 17 pmHDU *pmHDUFromChip(const pmChip *chip) 20 18 { 21 19 PS_ASSERT_PTR_NON_NULL(chip, NULL); … … 29 27 } 30 28 31 pmHDU *pmHDUFromCell(const pmCell *cell // Cell for which to find HDU 32 ) 29 pmHDU *pmHDUFromCell(const pmCell *cell) 33 30 { 34 31 PS_ASSERT_PTR_NON_NULL(cell, NULL); … … 42 39 } 43 40 44 pmHDU *pmHDUFromReadout(const pmReadout *readout // Readout for which to find HDU 45 ) 41 pmHDU *pmHDUFromReadout(const pmReadout *readout) 46 42 { 47 43 PS_ASSERT_PTR_NON_NULL(readout, NULL); … … 53 49 54 50 // Get the lowest HDU 55 pmHDU *pmHDUGetLowest(const pmFPA *fpa, // The FPA 56 const pmChip *chip, // The chip, or NULL 57 const pmCell *cell // The cell, or NULL 58 ) 51 pmHDU *pmHDUGetLowest(const pmFPA *fpa, const pmChip *chip, const pmCell *cell) 59 52 { 60 53 pmHDU *hdu = NULL; // The HDU that's at the lowest level … … 71 64 72 65 // Get the highest HDU 73 pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA 74 const pmChip *chip, // The chip, or NULL 75 const pmCell *cell // The cell, or NULL 76 ) 66 pmHDU *pmHDUGetHighest(const pmFPA *fpa, const pmChip *chip, const pmCell *cell) 77 67 { 78 68 pmHDU *hdu = NULL; // The HDU that's at the highest level … … 90 80 } 91 81 92 void pmHDUPrint(FILE *fd, // File descriptor to which to print 93 const pmHDU *hdu, // HDU to print 94 int level, // Level at which to print 95 bool header // Print header? 96 ) 82 void pmHDUPrint(FILE *fd, const pmHDU *hdu, int level, bool header) 97 83 { 98 84 PS_ASSERT_PTR_NON_NULL(hdu,); -
trunk/psModules/src/camera/pmHDUUtils.h
r7609 r9608 1 /// @file pmHDUUtils.h 2 /// 3 /// @brief Utility functions for working with an HDU 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Paul Price, IfA 8 /// 9 /// @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2006-10-17 03:42:55 $ 11 /// 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 13 /// 14 1 15 #ifndef PM_HDU_UTILS_H 2 16 #define PM_HDU_UTILS_H … … 5 19 #include "pmHDU.h" 6 20 7 // Get the lowest HDU in the hierarchy, as supplied 8 pmHDU *pmHDUGetLowest(const pmFPA *fpa, // The FPA 9 const pmChip *chip, // The chip, or NULL 10 const pmCell *cell // The cell, or NULL 21 /// Get the lowest HDU in the hierarchy 22 /// 23 /// The lowest HDU in the hierarchy will be the one with the actual pixels (if all levels are supplied). 24 pmHDU *pmHDUGetLowest(const pmFPA *fpa, ///< The FPA 25 const pmChip *chip, ///< The chip, or NULL 26 const pmCell *cell ///< The cell, or NULL 11 27 ); 12 28 13 // Get the highest HDU in the hierarchy, as supplied 14 pmHDU *pmHDUGetHighest(const pmFPA *fpa, // The FPA 15 const pmChip *chip, // The chip, or NULL 16 const pmCell *cell // The cell, or NULL 29 /// Get the highest HDU in the hierarchy 30 /// 31 /// The highest HDU in the hierarchy will be the PHU (might get NULL if not all levels are supplied) 32 pmHDU *pmHDUGetHighest(const pmFPA *fpa, ///< The FPA 33 const pmChip *chip, ///< The chip, or NULL 34 const pmCell *cell ///< The cell, or NULL 17 35 ); 18 36 19 // Find the HDU in the FPA hierarchy20 pmHDU *pmHDUFromFPA(const pmFPA *fpa // FPA for which to find HDU37 /// Given an FPA, return the HDU (or NULL if all HDUs reside below the FPA) 38 pmHDU *pmHDUFromFPA(const pmFPA *fpa ///< FPA for which to find HDU 21 39 ); 22 pmHDU *pmHDUFromChip(const pmChip *chip // Chip for which to find HDU 40 41 /// Given a chip, return the HDU (or NULL if it resides below the chip) 42 pmHDU *pmHDUFromChip(const pmChip *chip ///< Chip for which to find HDU 23 43 ); 24 pmHDU *pmHDUFromCell(const pmCell *cell // Cell for which to find HDU 44 45 /// Given a cell, return the HDU 46 pmHDU *pmHDUFromCell(const pmCell *cell ///< Cell for which to find HDU 25 47 ); 26 pmHDU *pmHDUFromReadout(const pmReadout *readout // Readout for which to find HDU 48 49 /// Given a readout, return the HDU 50 pmHDU *pmHDUFromReadout(const pmReadout *readout ///< Readout for which to find HDU 27 51 ); 28 52 29 // Print details about an HDU 30 void pmHDUPrint(FILE *fd, // File descriptor to which to print 31 const pmHDU *hdu, // HDU to print 32 int level, // Level at which to print 33 bool header // Print header? 53 /// Print details about an HDU 54 /// 55 /// This is intended for testing or development use. Only works if tracing is enabled. 56 void pmHDUPrint(FILE *fd, ///< File descriptor to which to print 57 const pmHDU *hdu, ///< HDU to print 58 int level, ///< Level at which to print 59 bool header ///< Print header? 34 60 ); 35 61
Note:
See TracChangeset
for help on using the changeset viewer.
