Changeset 38441 for trunk/Ohana/src/libdvo/src/dvo_image.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libdvo/src/dvo_image.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/libdvo/src/dvo_image.c
r37807 r38441 19 19 db[0].lockstate = lockstate; 20 20 db[0].timeout = timeout; 21 gfits_db_init (db);22 21 23 22 if (!gfits_db_lock (db, filename)) { … … 89 88 // so when we later do a gfits_copy_ftable, we stomp on bad memory 90 89 FtableToImage (&db[0].ftable, &db[0].theader, &db[0].format); 91 db[0].swapped = TRUE; /* table has internal byte-order */ 90 db[0].nativeOrder = TRUE; /* table has internal byte-order */ 91 db[0].scaledValue = TRUE; /* table has internal byte-order */ 92 92 return (TRUE); 93 93 } … … 100 100 /* convert from internal to requested external format */ 101 101 ImageToFtable (&db[0].ftable, &db[0].theader, db[0].format); 102 db[0].swapped = FALSE; 102 db[0].nativeOrder = FALSE; 103 db[0].scaledValue = FALSE; 103 104 104 105 /* write data in appropriate mode */ … … 149 150 /* theader is modified to match output format */ 150 151 ImageToVtable (&db[0].vtable, &db[0].theader, db[0].format); 151 db[0].swapped = FALSE; 152 db[0].scaledValue = FALSE; 153 db[0].nativeOrder = FALSE; 152 154 153 155 /* write data in appropriate mode */ … … 363 365 364 366 /* return internal structure representation */ 365 Image *gfits_table_get_Image (FTable *ftable, off_t *Ndata, char *s wapped) {367 Image *gfits_table_get_Image (FTable *ftable, off_t *Ndata, char *scaledValue, char *nativeOrder) { 366 368 367 369 int Ncols; … … 377 379 data = (Image *) ftable[0].buffer; 378 380 379 if (!swapped) { 380 myAbort ("invalid to call this without suppying 'swapped'"); 381 } 382 if (*swapped == FALSE) { 383 myAbort ("invalid for table to be swapped"); 381 if (!scaledValue) { 382 myAbort ("invalid to call this without suppying 'scaledValue'"); 383 } 384 if (*scaledValue == FALSE) { 385 myAbort ("invalid for table NOT to be scaledValue"); 386 } 387 if (!nativeOrder) { 388 myAbort ("invalid to call this without suppying 'nativeOrder'"); 389 } 390 if (*nativeOrder == FALSE) { 391 myAbort ("invalid for table NOT to be nativeOrder"); 384 392 } 385 393
Note:
See TracChangeset
for help on using the changeset viewer.
