Lines Matching refs:gain
8 * gain: Blending ratio of previous and current frame
15 __write_only image2d_t outputFrame, uint vertical_offset, float gain, float thr_y, float thr_uv)
42 float coeff_Y = (diff_Y < thr_y) ? gain :
43 (diff_Y * (1 - gain) + diff_max * gain - thr_y) / (diff_max - thr_y);
50 // X'(K) = (1 - gain) * X'(k-1) + gain * X(k)
59 float coeff_U = (diff_U < thr_uv) ? gain :
60 (diff_U * (1 - gain) + diff_max * gain - thr_uv) / (diff_max - thr_uv);
61 float coeff_V = (diff_V < thr_uv) ? gain :
62 (diff_V * (1 - gain) + diff_max * gain - thr_uv) / (diff_max - thr_uv);
106 float gain = 0;
124 gain = cond ? 1.0f : 0.0f;
126 …pixel_out.x = (gain * pixel_in0.x + gain * pixel_in1.x + gain * pixel_in2.x + pixel_in3.x) / (1.0f…
127 …pixel_out.y = (gain * pixel_in0.y + gain * pixel_in1.y + gain * pixel_in2.y + pixel_in3.y) / (1.0f…
128 …pixel_out.z = (gain * pixel_in0.z + gain * pixel_in1.z + gain * pixel_in2.z + pixel_in3.z) / (1.0f…
137 gain = cond ? 1.0f : 0.0f;
139 pixel_out.x = (gain * pixel_in0.x + gain * pixel_in1.x + pixel_in2.x) / (1.0f + 2 * gain);
140 pixel_out.y = (gain * pixel_in0.y + gain * pixel_in1.y + pixel_in2.y) / (1.0f + 2 * gain);
141 pixel_out.z = (gain * pixel_in0.z + gain * pixel_in1.z + pixel_in2.z) / (1.0f + 2 * gain);
150 gain = cond ? 1.0f : 0.0f;
152 pixel_out.x = (gain * pixel_in0.x + pixel_in1.x) / (1.0f + gain);
153 pixel_out.y = (gain * pixel_in0.y + pixel_in1.y) / (1.0f + gain);
154 pixel_out.z = (gain * pixel_in0.z + pixel_in1.z) / (1.0f + gain);