Changeset 34048
- Timestamp:
- Jun 20, 2012, 12:22:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/ppImage/src/ppImageDetrendReadout.c
r33848 r34048 35 35 } 36 36 } 37 37 38 // Check to see if we're in a chip that contains video 39 // NOTE: this is an esoteric test for a GPC1 feature : this is irrelevant & will not work for other cameras 38 40 bool hasVideo = false; 39 41 { 42 // XXX test for GPC1? or CAN_HAVE_VIDEO in camera config? 43 if (!input) goto done_video_check; 44 if (!input->parent) goto done_video_check; 45 if (!input->parent->parent) goto done_video_check; 46 if (!input->parent->parent->hdu) goto done_video_check; 47 if (!input->parent->parent->hdu->header) goto done_video_check; 40 48 if (psMetadataLookupStr(NULL,input->parent->parent->hdu->header,"CELLMODE")) { 41 ps Warning("VIDEO: %d %d %d\n",(int) options->hasVideo,(int) options->useVideoDark, (int) options->useVideoMask);49 psLogMsg ("ppImage.detrend", PS_LOG_DETAIL, "VIDEO: %d %d %d\n",(int) options->hasVideo,(int) options->useVideoDark, (int) options->useVideoMask); 42 50 char *Vptr = strchr(psMetadataLookupStr(NULL,input->parent->parent->hdu->header,"CELLMODE"),'V'); 43 51 if (Vptr) { 44 52 hasVideo = true; 45 ps Warning("VIDEO: %d %d %d\n",(int) options->hasVideo,(int) options->useVideoDark, (int) options->useVideoMask);53 psLogMsg ("ppImage.detrend", PS_LOG_INFO, "VIDEO: %d %d %d\n",(int) options->hasVideo,(int) options->useVideoDark, (int) options->useVideoMask); 46 54 } 47 55 } 48 56 } 49 57 done_video_check: 50 58 51 59 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine.
Note:
See TracChangeset
for help on using the changeset viewer.
