Lines Matching refs:tch_buf

207 static void vivid_fill_buff_noise(__s16 *tch_buf, int size)  in vivid_fill_buff_noise()  argument
216 tch_buf[i] = 0; in vivid_fill_buff_noise()
218 tch_buf[i] = (rand / 10) % 7 - 3; in vivid_fill_buff_noise()
228 __s16 *tch_buf, in vivid_tch_buf_set() argument
235 tch_buf[index] = offset + get_random_pressure(); in vivid_tch_buf_set()
238 tch_buf[index - 1] = offset + get_random_pressure(); in vivid_tch_buf_set()
240 tch_buf[index + 1] = offset + get_random_pressure(); in vivid_tch_buf_set()
242 tch_buf[index - f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
244 tch_buf[index + f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
247 tch_buf[index - 1 - f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
249 tch_buf[index + 1 - f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
251 tch_buf[index - 1 + f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
253 tch_buf[index + 1 + f->width] = offset + get_random_pressure(); in vivid_tch_buf_set()
263 __s16 *tch_buf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_fillbuff_tch() local
269 vivid_fill_buff_noise(tch_buf, size); in vivid_fillbuff_tch()
281 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch()
285 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch()
289 vivid_tch_buf_set(f, tch_buf, rand % size); in vivid_fillbuff_tch()
292 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
304 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
306 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
314 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
316 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
322 tch_buf[x + f->width * y] = VIVID_MIN_PRESSURE + in vivid_fillbuff_tch()
331 vivid_tch_buf_set(f, tch_buf, in vivid_fillbuff_tch()
339 tch_buf[x] = (__force s16)__cpu_to_le16((u16)tch_buf[x]); in vivid_fillbuff_tch()