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()
604 priv->scale = tw9910_select_norm(priv->norm, *width, *height); in tw9910_set_frame()
605 if (!priv->scale) in tw9910_set_frame()
655 ret = tw9910_set_scale(client, priv->scale); in tw9910_set_frame()
666 *width = priv->scale->width; in tw9910_set_frame()
667 *height = priv->scale->height; in tw9910_set_frame()
674 priv->scale = NULL; in tw9910_set_frame()
731 if (!priv->scale) { in tw9910_get_fmt()
732 priv->scale = tw9910_select_norm(priv->norm, 640, 480); in tw9910_get_fmt()
733 if (!priv->scale) in tw9910_get_fmt()
737 mf->width = priv->scale->width; in tw9910_get_fmt()
738 mf->height = priv->scale->height; in tw9910_get_fmt()
778 const struct tw9910_scale_ctrl *scale; in tw9910_set_fmt() local
796 scale = tw9910_select_norm(priv->norm, mf->width, mf->height); in tw9910_set_fmt()
797 if (!scale) in tw9910_set_fmt()
800 mf->width = scale->width; in tw9910_set_fmt()
801 mf->height = scale->height; in tw9910_set_fmt()
849 priv->scale = &tw9910_ntsc_scales[0]; in tw9910_video_probe()