Changeset 18030 for trunk/psModules/src/camera/pmFPARead.c
- Timestamp:
- Jun 9, 2008, 1:00:32 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPARead.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r18026 r18030 97 97 return false; 98 98 } 99 if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS | 100 PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE, true, NULL)) { 99 if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER | PM_CONCEPT_SOURCE_CELLS, true, NULL)) { 101 100 psError(PS_ERR_IO, false, "Failed to read concepts for cell.\n"); 102 101 return false; … … 142 141 pmReadout *readout, // Readout of interest 143 142 int numScans, // Number of scans to read at a time 144 fpaReadType type // Type of image 143 fpaReadType type, // Type of image 144 psDB *db // Database handle for concepts 145 145 ) 146 146 { … … 151 151 psImage *image = *readoutImageByType(readout, type); // Appropriate image from readout 152 152 153 if (!pmConceptsReadCell(readout->parent, PM_CONCEPT_SOURCE_DEFAULTS | PM_CONCEPT_SOURCE_DATABASE, 154 true, db)) { 155 psError(PS_ERR_IO, false, "Failed to read concepts for cell."); 156 return false; 157 } 153 158 // Header and concepts have been read by a call to cellNumReadouts(), so we can just assume they're there. 154 159 … … 202 207 int z, // Plane number 203 208 int numScans, // Number of scans to read at a time 204 fpaReadType type // Type of image 209 fpaReadType type, // Type of image 210 psDB *db // Database handle for concepts 205 211 ) 206 212 { … … 230 236 int next; // Next position 231 237 int last; // Last position 232 if (!readoutScanProperties(&next, &last, readout, numScans, type )) {238 if (!readoutScanProperties(&next, &last, readout, numScans, type, db)) { 233 239 psError(PS_ERR_UNKNOWN, false, "Unable to determine readout properties."); 234 240 return false; … … 387 393 int numScans, // Number of scans (row or col depends on CELL.READDIR); 0 for all 388 394 int overlap, // Number of scans (row/col) to overlap between scans 389 fpaReadType type // Type of image 395 fpaReadType type, // Type of image 396 psDB *db // Database handle for concepts 390 397 ) 391 398 { … … 417 424 int next; // Next position 418 425 int last; // Last position 419 if (!readoutScanProperties(&next, &last, readout, numScans, type )) {426 if (!readoutScanProperties(&next, &last, readout, numScans, type, db)) { 420 427 psError(PS_ERR_UNKNOWN, false, "Unable to determine readout properties."); 421 428 return false; … … 888 895 889 896 890 bool pmReadoutMore(pmReadout *readout, psFits *fits, int z, int numScans )897 bool pmReadoutMore(pmReadout *readout, psFits *fits, int z, int numScans, psDB *db) 891 898 { 892 899 PS_ASSERT_PTR_NON_NULL(readout, false); 893 900 PS_ASSERT_FITS_NON_NULL(fits, false); 894 901 895 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_IMAGE );896 } 897 898 bool pmReadoutReadChunk(pmReadout *readout, psFits *fits, int z, int numScans, int overlap )902 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_IMAGE, db); 903 } 904 905 bool pmReadoutReadChunk(pmReadout *readout, psFits *fits, int z, int numScans, int overlap, psDB *db) 899 906 { 900 907 PS_ASSERT_PTR_NON_NULL(readout, false); … … 903 910 PS_ASSERT_INT_NONNEGATIVE(numScans, false); 904 911 905 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_IMAGE );906 } 907 908 bool pmReadoutRead(pmReadout *readout, psFits *fits, int z )912 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_IMAGE, db); 913 } 914 915 bool pmReadoutRead(pmReadout *readout, psFits *fits, int z, psDB *db) 909 916 { 910 917 PS_ASSERT_PTR_NON_NULL(readout, false); 911 918 PS_ASSERT_FITS_NON_NULL(fits, false); 912 919 913 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_IMAGE );920 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_IMAGE, db); 914 921 } 915 922 … … 951 958 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 952 959 953 bool pmReadoutMoreMask(pmReadout *readout, psFits *fits, int z, int numScans )960 bool pmReadoutMoreMask(pmReadout *readout, psFits *fits, int z, int numScans, psDB *db) 954 961 { 955 962 PS_ASSERT_PTR_NON_NULL(readout, false); 956 963 PS_ASSERT_FITS_NON_NULL(fits, false); 957 964 958 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_MASK );959 } 960 961 bool pmReadoutReadChunkMask(pmReadout *readout, psFits *fits, int z, int numScans, int overlap )965 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_MASK, db); 966 } 967 968 bool pmReadoutReadChunkMask(pmReadout *readout, psFits *fits, int z, int numScans, int overlap, psDB *db) 962 969 { 963 970 PS_ASSERT_PTR_NON_NULL(readout, false); … … 966 973 PS_ASSERT_INT_NONNEGATIVE(numScans, false); 967 974 968 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_MASK );969 } 970 971 bool pmReadoutReadMask(pmReadout *readout, psFits *fits, int z )975 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_MASK, db); 976 } 977 978 bool pmReadoutReadMask(pmReadout *readout, psFits *fits, int z, psDB *db) 972 979 { 973 980 PS_ASSERT_PTR_NON_NULL(readout, false); 974 981 PS_ASSERT_FITS_NON_NULL(fits, false); 975 982 976 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_MASK );983 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_MASK, db); 977 984 } 978 985 … … 1005 1012 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 1006 1013 1007 bool pmReadoutMoreWeight(pmReadout *readout, psFits *fits, int z, int numScans )1014 bool pmReadoutMoreWeight(pmReadout *readout, psFits *fits, int z, int numScans, psDB *db) 1008 1015 { 1009 1016 PS_ASSERT_PTR_NON_NULL(readout, false); 1010 1017 PS_ASSERT_FITS_NON_NULL(fits, false); 1011 1018 1012 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_WEIGHT );1013 } 1014 1015 bool pmReadoutReadChunkWeight(pmReadout *readout, psFits *fits, int z, int numScans, int overlap )1019 return readoutMore(readout, fits, z, numScans, FPA_READ_TYPE_WEIGHT, db); 1020 } 1021 1022 bool pmReadoutReadChunkWeight(pmReadout *readout, psFits *fits, int z, int numScans, int overlap, psDB *db) 1016 1023 { 1017 1024 PS_ASSERT_PTR_NON_NULL(readout, false); … … 1020 1027 PS_ASSERT_INT_NONNEGATIVE(numScans, false); 1021 1028 1022 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_WEIGHT );1023 } 1024 1025 bool pmReadoutReadWeight(pmReadout *readout, psFits *fits, int z )1029 return readoutReadChunk(readout, fits, z, numScans, overlap, FPA_READ_TYPE_WEIGHT, db); 1030 } 1031 1032 bool pmReadoutReadWeight(pmReadout *readout, psFits *fits, int z, psDB *db) 1026 1033 { 1027 1034 PS_ASSERT_PTR_NON_NULL(readout, false); 1028 1035 PS_ASSERT_FITS_NON_NULL(fits, false); 1029 1036 1030 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_WEIGHT );1037 return readoutReadChunk(readout, fits, z, 0, 0, FPA_READ_TYPE_WEIGHT, db); 1031 1038 } 1032 1039
Note:
See TracChangeset
for help on using the changeset viewer.
