Lines Matching full:scale

229 	const struct tw9910_scale_ctrl	*scale;  member
348 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument
353 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale()
354 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale()
359 scale->hscale & 0x00FF); in tw9910_set_scale()
364 scale->vscale & 0x00FF); in tw9910_set_scale()
426 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local
432 scale = tw9910_ntsc_scales; in tw9910_select_norm()
435 scale = tw9910_pal_scales; in tw9910_select_norm()
442 tmp = abs(width - scale[i].width) + in tw9910_select_norm()
443 abs(height - scale[i].height); in tw9910_select_norm()
446 ret = scale + i; in tw9910_select_norm()
478 if (!priv->scale) { in tw9910_s_stream()
484 priv->scale->name, in tw9910_s_stream()
485 priv->scale->width, in tw9910_s_stream()
486 priv->scale->height); in tw9910_s_stream()
652 priv->scale = tw9910_select_norm(priv->norm, *width, *height); in tw9910_set_frame()
653 if (!priv->scale) in tw9910_set_frame()
694 /* Set scale. */ in tw9910_set_frame()
695 ret = tw9910_set_scale(client, priv->scale); in tw9910_set_frame()
704 *width = priv->scale->width; in tw9910_set_frame()
705 *height = priv->scale->height; in tw9910_set_frame()
712 priv->scale = NULL; in tw9910_set_frame()
754 if (!priv->scale) { in tw9910_get_fmt()
755 priv->scale = tw9910_select_norm(priv->norm, 640, 480); in tw9910_get_fmt()
756 if (!priv->scale) in tw9910_get_fmt()
760 mf->width = priv->scale->width; in tw9910_get_fmt()
761 mf->height = priv->scale->height; in tw9910_get_fmt()
801 const struct tw9910_scale_ctrl *scale; in tw9910_set_fmt() local
817 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); in tw9910_set_fmt()
818 if (!scale) in tw9910_set_fmt()
821 mf->width = scale->width; in tw9910_set_fmt()
822 mf->height = scale->height; in tw9910_set_fmt()
865 priv->scale = &tw9910_ntsc_scales[0]; in tw9910_video_probe()