aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-10-05 18:00:56 +0200
committerThomas White <taw@physics.org>2015-10-05 18:03:18 +0200
commit2e1ce9b32fc5e483aad97d5d1a16466f07bb2914 (patch)
tree80d840269390914221b4104dd094cf5b73deff17
parent6358f3a21a5023332be86adf933eb375dd67fea0 (diff)
hdfsee: Disable TIFF/ADSC output functions
Need a better solution here: fix them or delete them
-rw-r--r--src/dw-hdfsee.c2
-rw-r--r--src/hdfsee-render.c11
2 files changed, 8 insertions, 5 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 3911b7f4..77b58a7c 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -205,7 +205,7 @@ static int render_adsc_uint16(DisplayWindow *dw, const char *filename)
fs = dfs;
ss = dss;
- val = image->data[fs + image->width * ss];
+ val = 0.0;//image->data[fs + image->width * ss]; FIXME!
if ( val < 0 ) {
out = 0;
} else if ( val > 65535 ) {
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,