Lines Matching refs:resize

164 	unsigned short resize;	/* Sensor * 1024 / resize = Output */  member
561 output_w = (input_w * 1024 + rj54n1->resize / 2) / rj54n1->resize; in rj54n1_set_selection()
562 output_h = (input_h * 1024 + rj54n1->resize / 2) / rj54n1->resize; in rj54n1_set_selection()
565 input_w, input_h, rj54n1->resize, output_w, output_h); in rj54n1_set_selection()
573 rj54n1->resize = ret; in rj54n1_set_selection()
638 unsigned int skip, resize, input_w = *in_w, input_h = *in_h, in rj54n1_sensor_scale() local
690 resize = 1024; in rj54n1_sensor_scale()
699 resize = (RJ54N1_MAX_HEIGHT * 1024 + output_h / 2) / in rj54n1_sensor_scale()
703 resize = (RJ54N1_MAX_WIDTH * 1024 + output_w / 2) / in rj54n1_sensor_scale()
706 resize = max(resize_x, resize_y); in rj54n1_sensor_scale()
709 switch (resize) { in rj54n1_sensor_scale()
711 resize = 2039; in rj54n1_sensor_scale()
714 resize = 4079; in rj54n1_sensor_scale()
717 resize = 8159; in rj54n1_sensor_scale()
720 resize = 16319; in rj54n1_sensor_scale()
725 ret = reg_write(client, RJ54N1_RESIZE_HOLD_L, resize & 0xff); in rj54n1_sensor_scale()
727 ret = reg_write(client, RJ54N1_RESIZE_HOLD_H, resize >> 8); in rj54n1_sensor_scale()
744 skip = min(resize / 1024, 15U); in rj54n1_sensor_scale()
750 else if (resize & 1023 && skip < 15) in rj54n1_sensor_scale()
779 peak = 12 * RJ54N1_MAX_WIDTH * (1 << 14) * resize / rj54n1->tgclk_mhz / in rj54n1_sensor_scale()
809 *in_w = (output_w * resize + 512) / 1024; in rj54n1_sensor_scale()
810 *in_h = (output_h * resize + 512) / 1024; in rj54n1_sensor_scale()
815 *in_w, *in_h, resize, output_w, output_h, skip); in rj54n1_sensor_scale()
817 return resize; in rj54n1_sensor_scale()
1114 rj54n1->resize = ret; in rj54n1_set_fmt()
1347 rj54n1->resize = 1024; in rj54n1_probe()