Lines Matching refs:settings

144 static __u32 zoran_v4l2_calc_bufsize(struct zoran_jpg_settings *settings)  in zoran_v4l2_calc_bufsize()  argument
146 __u8 div = settings->ver_dcm * settings->hor_dcm * settings->tmp_dcm; in zoran_v4l2_calc_bufsize()
335 struct zoran_jpg_settings settings; in zoran_try_fmt_vid_out() local
341 settings = zr->jpg_settings; in zoran_try_fmt_vid_out()
345 settings.tmp_dcm = 1; in zoran_try_fmt_vid_out()
347 settings.tmp_dcm = 2; in zoran_try_fmt_vid_out()
348 settings.decimation = 0; in zoran_try_fmt_vid_out()
350 settings.ver_dcm = 2; in zoran_try_fmt_vid_out()
352 settings.ver_dcm = 1; in zoran_try_fmt_vid_out()
354 settings.hor_dcm = 4; in zoran_try_fmt_vid_out()
356 settings.hor_dcm = 2; in zoran_try_fmt_vid_out()
358 settings.hor_dcm = 1; in zoran_try_fmt_vid_out()
359 if (settings.tmp_dcm == 1) in zoran_try_fmt_vid_out()
360 settings.field_per_buff = 2; in zoran_try_fmt_vid_out()
362 settings.field_per_buff = 1; in zoran_try_fmt_vid_out()
364 if (settings.hor_dcm > 1) { in zoran_try_fmt_vid_out()
365 settings.img_x = (BUZ_MAX_WIDTH == 720) ? 8 : 0; in zoran_try_fmt_vid_out()
366 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out()
368 settings.img_x = 0; in zoran_try_fmt_vid_out()
369 settings.img_width = BUZ_MAX_WIDTH; in zoran_try_fmt_vid_out()
373 res = zoran_check_jpg_settings(zr, &settings, 1); in zoran_try_fmt_vid_out()
378 fmt->fmt.pix.width = settings.img_width / settings.hor_dcm; in zoran_try_fmt_vid_out()
379 fmt->fmt.pix.height = settings.img_height * 2 / in zoran_try_fmt_vid_out()
380 (settings.tmp_dcm * settings.ver_dcm); in zoran_try_fmt_vid_out()
381 if (settings.tmp_dcm == 1) in zoran_try_fmt_vid_out()
388 fmt->fmt.pix.sizeimage = zoran_v4l2_calc_bufsize(&settings); in zoran_try_fmt_vid_out()
435 struct zoran_jpg_settings settings; in zoran_s_fmt_vid_out() local
448 settings = zr->jpg_settings; in zoran_s_fmt_vid_out()
452 settings.tmp_dcm = 1; in zoran_s_fmt_vid_out()
454 settings.tmp_dcm = 2; in zoran_s_fmt_vid_out()
455 settings.decimation = 0; in zoran_s_fmt_vid_out()
457 settings.ver_dcm = 2; in zoran_s_fmt_vid_out()
459 settings.ver_dcm = 1; in zoran_s_fmt_vid_out()
461 settings.hor_dcm = 4; in zoran_s_fmt_vid_out()
463 settings.hor_dcm = 2; in zoran_s_fmt_vid_out()
465 settings.hor_dcm = 1; in zoran_s_fmt_vid_out()
466 if (settings.tmp_dcm == 1) in zoran_s_fmt_vid_out()
467 settings.field_per_buff = 2; in zoran_s_fmt_vid_out()
469 settings.field_per_buff = 1; in zoran_s_fmt_vid_out()
471 if (settings.hor_dcm > 1) { in zoran_s_fmt_vid_out()
472 settings.img_x = (BUZ_MAX_WIDTH == 720) ? 8 : 0; in zoran_s_fmt_vid_out()
473 settings.img_width = (BUZ_MAX_WIDTH == 720) ? 704 : BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out()
475 settings.img_x = 0; in zoran_s_fmt_vid_out()
476 settings.img_width = BUZ_MAX_WIDTH; in zoran_s_fmt_vid_out()
480 res = zoran_check_jpg_settings(zr, &settings, 0); in zoran_s_fmt_vid_out()
485 zr->jpg_settings = settings; in zoran_s_fmt_vid_out()
495 fmt->fmt.pix.width = settings.img_width / settings.hor_dcm; in zoran_s_fmt_vid_out()
496 fmt->fmt.pix.height = settings.img_height * 2 / in zoran_s_fmt_vid_out()
497 (settings.tmp_dcm * settings.ver_dcm); in zoran_s_fmt_vid_out()
498 if (settings.tmp_dcm == 1) in zoran_s_fmt_vid_out()
659 struct zoran_jpg_settings settings; in zoran_s_selection() local
677 settings = zr->jpg_settings; in zoran_s_selection()
680 settings.img_x = sel->r.left; in zoran_s_selection()
681 settings.img_y = sel->r.top; in zoran_s_selection()
682 settings.img_width = sel->r.width; in zoran_s_selection()
683 settings.img_height = sel->r.height; in zoran_s_selection()
686 res = zoran_check_jpg_settings(zr, &settings, 0); in zoran_s_selection()
691 zr->jpg_settings = settings; in zoran_s_selection()