Commit 1d8d3602 authored by Andrey Filippov's avatar Andrey Filippov

copied from lwir16 branch

parent 8612a64e
...@@ -5068,6 +5068,15 @@ __device__ void convertCorrectTile( ...@@ -5068,6 +5068,15 @@ __device__ void convertCorrectTile(
clt_src += DTT_SIZE1; clt_src += DTT_SIZE1;
clt_dst += DTT_SIZE; clt_dst += DTT_SIZE;
} }
// A hack to accumulate with positive scale
} else if (tscale > 10.0f) { // > 10 - scale by (tscale-10) and add
float tscale1 = tscale - 10.0f;
for (int j = 0; j < DTT_SIZE * 4; j++){ // all 4 components, 8 rows
// shared memory tiles use DTT_SIZE1
*clt_dst += *clt_src * tscale1;
clt_src += DTT_SIZE1;
clt_dst += DTT_SIZE;
}
} else if (tscale > 0) { // positive - scale and set. For motion blur positive should be first } else if (tscale > 0) { // positive - scale and set. For motion blur positive should be first
#pragma unroll #pragma unroll
for (int j = 0; j < DTT_SIZE * 4; j++){ // all 4 components, 8 rows for (int j = 0; j < DTT_SIZE * 4; j++){ // all 4 components, 8 rows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment