IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34048


Ignore:
Timestamp:
Jun 20, 2012, 12:22:23 PM (14 years ago)
Author:
eugene
Message:

add validity tests for VIDEO check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/ppImage/src/ppImageDetrendReadout.c

    r33848 r34048  
    3535      }
    3636    }
     37
    3738    // 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
    3840    bool hasVideo = false;
    3941    {
     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;
    4048      if (psMetadataLookupStr(NULL,input->parent->parent->hdu->header,"CELLMODE")) {
    41         psWarning("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);
    4250        char *Vptr = strchr(psMetadataLookupStr(NULL,input->parent->parent->hdu->header,"CELLMODE"),'V');
    4351        if (Vptr) {
    4452          hasVideo = true;
    45           psWarning("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);
    4654        }
    4755      }
    4856    }
    49 
     57    done_video_check:
    5058   
    5159    // 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.