diff options
author | Thomas White <taw@physics.org> | 2015-10-05 18:00:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-10-05 18:03:18 +0200 |
commit | 2e1ce9b32fc5e483aad97d5d1a16466f07bb2914 (patch) | |
tree | 80d840269390914221b4104dd094cf5b73deff17 /src/hdfsee-render.c | |
parent | 6358f3a21a5023332be86adf933eb375dd67fea0 (diff) |
hdfsee: Disable TIFF/ADSC output functions
Need a better solution here: fix them or delete them
Diffstat (limited to 'src/hdfsee-render.c')
-rw-r--r-- | src/hdfsee-render.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/hdfsee-render.c b/src/hdfsee-render.c index 71e2e1e8..4c6c3114 100644 --- a/src/hdfsee-render.c +++ b/src/hdfsee-render.c @@ -283,8 +283,9 @@ int render_tiff_fp(struct image *image, const char *filename) line = _TIFFmalloc(TIFFScanlineSize(th)); for ( y=0; y<image->height; y++ ) { - memcpy(line, &image->data[(image->height-1-y)*image->width], - image->width*4); + //memcpy(line, &image->data[(image->height-1-y)*image->width], + // image->width*4); + // FIXME! TIFFWriteScanline(th, line, y, 0); } _TIFFfree(line); @@ -325,7 +326,8 @@ int render_tiff_int16(struct image *image, const char *filename, double boost) for ( y=0; y<image->height; y++ ) { for ( x=0;x<image->width; x++ ) { double val; - val = image->data[x+image->height*y]; + //val = image->data[x+image->height*y]; + val = 0.0; // FIXME! if ( val > max ) max = val; } } @@ -336,7 +338,8 @@ int render_tiff_int16(struct image *image, const char *filename, double boost) double val; - val = image->data[x+(image->height-1-y)*image->width]; + //val = image->data[x+(image->height-1-y)*image->width]; + val = 0.0; // FIXME! val *= ((double)boost/max); /* Clamp to 16-bit range, |