IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 31, 2015, 8:36:59 AM (11 years ago)
Author:
eugene
Message:

adding compressed table I/O tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/table/F_uncompress_T.c

    r38340 r38342  
    146146}
    147147
     148# define VERBOSE 0
     149
    148150// raw_pixsize is the bytes / pixel for the input matrix
    149151// place the raw image bytes for the current tile into the tile buffer
     
    156158  off_t Nx = table->header->Naxis[0];
    157159
     160  if (VERBOSE) fprintf (stderr, "collect: ");
    158161  for (i = 0; i < Nrows; i++) {
    159162    int row = row_start + i;
    160163    memcpy (&table->buffer[Nx*row + col], &raw[i*rowsize], rowsize);
     164# if (VERBOSE)
     165    int j; for (j = 0; j < rowsize; j++) fprintf (stderr, "0x%02hhx ", table->buffer[Nx*row + col + j]);
     166# endif
    161167  }
     168  if (VERBOSE) fprintf (stderr, "\n");
    162169
    163170  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.