Lines Matching refs:rect

38 	struct v4l2_rect rect;  member
746 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
748 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
840 f->width = decoder->rect.width; in tvp5150_mbus_fmt()
841 f->height = decoder->rect.height; in tvp5150_mbus_fmt()
854 struct v4l2_rect rect = a->c; in tvp5150_s_crop() local
860 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop()
866 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
867 rect.width = clamp_t(unsigned int, rect.width, in tvp5150_s_crop()
868 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect.left, in tvp5150_s_crop()
869 TVP5150_H_MAX - rect.left); in tvp5150_s_crop()
870 rect.top = clamp(rect.top, 0, TVP5150_MAX_CROP_TOP); in tvp5150_s_crop()
883 rect.height = clamp_t(unsigned int, rect.height, in tvp5150_s_crop()
884 hmax - TVP5150_MAX_CROP_TOP - rect.top, in tvp5150_s_crop()
885 hmax - rect.top); in tvp5150_s_crop()
887 tvp5150_write(sd, TVP5150_VERT_BLANKING_START, rect.top); in tvp5150_s_crop()
889 rect.top + rect.height - hmax); in tvp5150_s_crop()
891 rect.left >> TVP5150_CROP_SHIFT); in tvp5150_s_crop()
893 rect.left | (1 << TVP5150_CROP_SHIFT)); in tvp5150_s_crop()
895 (rect.left + rect.width - TVP5150_MAX_CROP_LEFT) >> in tvp5150_s_crop()
898 rect.left + rect.width - TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
900 decoder->rect = rect; in tvp5150_s_crop()
909 a->c = decoder->rect; in tvp5150_g_crop()
1173 core->rect.top = 0; in tvp5150_probe()
1175 core->rect.height = TVP5150_V_MAX_525_60; in tvp5150_probe()
1177 core->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_probe()
1178 core->rect.left = 0; in tvp5150_probe()
1179 core->rect.width = TVP5150_H_MAX; in tvp5150_probe()