From 2e1ce9b32fc5e483aad97d5d1a16466f07bb2914 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 5 Oct 2015 18:00:56 +0200 Subject: hdfsee: Disable TIFF/ADSC output functions Need a better solution here: fix them or delete them --- src/hdfsee-render.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/hdfsee-render.c') 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; yheight; 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; yheight; y++ ) { for ( x=0;xwidth; 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, -- cgit v1.2.3