Lines Matching refs:scale

234 	const struct tw9910_scale_ctrl	*scale;  member
353 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument
358 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale()
359 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale()
364 scale->hscale & 0x00FF); in tw9910_set_scale()
369 scale->vscale & 0x00FF); in tw9910_set_scale()
431 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local
437 scale = tw9910_ntsc_scales; in tw9910_select_norm()
440 scale = tw9910_pal_scales; in tw9910_select_norm()
447 tmp = abs(width - scale[i].width) + in tw9910_select_norm()
448 abs(height - scale[i].height); in tw9910_select_norm()
451 ret = scale + i; in tw9910_select_norm()
483 if (!priv->scale) { in tw9910_s_stream()
489 priv->scale->name, in tw9910_s_stream()
490 priv->scale->width, in tw9910_s_stream()
491 priv->scale->height); in tw9910_s_stream()
657 priv->scale = tw9910_select_norm(priv->norm, *width, *height); in tw9910_set_frame()
658 if (!priv->scale) in tw9910_set_frame()
700 ret = tw9910_set_scale(client, priv->scale); in tw9910_set_frame()
709 *width = priv->scale->width; in tw9910_set_frame()
710 *height = priv->scale->height; in tw9910_set_frame()
717 priv->scale = NULL; in tw9910_set_frame()
759 if (!priv->scale) { in tw9910_get_fmt()
760 priv->scale = tw9910_select_norm(priv->norm, 640, 480); in tw9910_get_fmt()
761 if (!priv->scale) in tw9910_get_fmt()
765 mf->width = priv->scale->width; in tw9910_get_fmt()
766 mf->height = priv->scale->height; in tw9910_get_fmt()
806 const struct tw9910_scale_ctrl *scale; in tw9910_set_fmt() local
822 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); in tw9910_set_fmt()
823 if (!scale) in tw9910_set_fmt()
826 mf->width = scale->width; in tw9910_set_fmt()
827 mf->height = scale->height; in tw9910_set_fmt()
872 priv->scale = &tw9910_ntsc_scales[0]; in tw9910_video_probe()