aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-19 16:41:36 +0100
committerThomas White <taw@physics.org>2009-11-19 16:41:36 +0100
commitbee783eed9fcbcfa6b0d5be0bb98709757261b7a (patch)
tree69b9c8fb0e1ae4a651e689b4aa7296ef64215828 /src
parentcc261b60d06a475f40995e14e83cdd4189b92b0b (diff)
Apply DQE
Diffstat (limited to 'src')
-rw-r--r--src/detector.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index f2f41320..6ca5e8e7 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -82,6 +82,14 @@ static uint16_t *bloom(double *hdr_in, int width, int height)
hdr = malloc(width * height * sizeof(double));
memcpy(hdr, hdr_in, width*height*sizeof(double));
+
+ /* Apply DQE (once only) */
+ for ( x=0; x<width; x++ ) {
+ for ( y=0; y<height; y++ ) {
+ hdr[x + width*y] *= DQE;
+ }
+ }
+
do {
memset(tmp, 0, width*height*sizeof(double));