IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 15, 2010, 1:29:28 PM (15 years ago)
Author:
watersc1
Message:

Merge of realtime burntool and new nightly science code into trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r28690 r30049  
    737737    return psMetadataItemAllocS32(pattern->name, pattern->comment, binning);
    738738}
     739
     740// VIDEOCELLS
     741psMetadataItem *p_pmConceptParse_VideoCell(const psMetadataItem *concept,
     742                                          const psMetadataItem *pattern,
     743                                          pmConceptSource source,
     744                                          const psMetadata *cameraFormat,
     745                                          const pmFPA *fpa,
     746                                          const pmChip *chip,
     747                                          const pmCell *cell)
     748{
     749  assert(concept);
     750  assert(pattern);
     751  bool has_video_cell = false;
     752
     753  if (concept->type != PS_DATA_STRING) {
     754    psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Type for %s (%x) is not string\n",
     755            concept->name, concept->type);
     756    return NULL;
     757  }
     758
     759  char *Vptr = strchr(concept->data.V,'V');
     760  if (Vptr) {
     761    has_video_cell = true;
     762  }
     763
     764  return psMetadataItemAllocBool(pattern->name, pattern->comment, has_video_cell);
     765}
     766 
     767   
    739768
    740769// BTOOLAPP
Note: See TracChangeset for help on using the changeset viewer.