Lines Matching refs:scale

233 	const struct tw9910_scale_ctrl	*scale;  member
351 const struct tw9910_scale_ctrl *scale) in tw9910_set_scale() argument
356 (scale->vscale & 0x0F00) >> 4 | in tw9910_set_scale()
357 (scale->hscale & 0x0F00) >> 8); in tw9910_set_scale()
362 scale->hscale & 0x00FF); in tw9910_set_scale()
367 scale->vscale & 0x00FF); in tw9910_set_scale()
429 const struct tw9910_scale_ctrl *scale; in tw9910_select_norm() local
435 scale = tw9910_ntsc_scales; in tw9910_select_norm()
438 scale = tw9910_pal_scales; in tw9910_select_norm()
445 tmp = abs(width - scale[i].width) + in tw9910_select_norm()
446 abs(height - scale[i].height); in tw9910_select_norm()
449 ret = scale + i; in tw9910_select_norm()
481 if (!priv->scale) { in tw9910_s_stream()
487 priv->scale->name, in tw9910_s_stream()
488 priv->scale->width, in tw9910_s_stream()
489 priv->scale->height); in tw9910_s_stream()
578 priv->scale = tw9910_select_norm(priv->norm, *width, *height); in tw9910_set_frame()
579 if (!priv->scale) in tw9910_set_frame()
629 ret = tw9910_set_scale(client, priv->scale); in tw9910_set_frame()
640 *width = priv->scale->width; in tw9910_set_frame()
641 *height = priv->scale->height; in tw9910_set_frame()
648 priv->scale = NULL; in tw9910_set_frame()
700 if (!priv->scale) { in tw9910_g_fmt()
701 priv->scale = tw9910_select_norm(priv->norm, 640, 480); in tw9910_g_fmt()
702 if (!priv->scale) in tw9910_g_fmt()
706 mf->width = priv->scale->width; in tw9910_g_fmt()
707 mf->height = priv->scale->height; in tw9910_g_fmt()
745 const struct tw9910_scale_ctrl *scale; in tw9910_try_fmt() local
760 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); in tw9910_try_fmt()
761 if (!scale) in tw9910_try_fmt()
764 mf->width = scale->width; in tw9910_try_fmt()
765 mf->height = scale->height; in tw9910_try_fmt()