Lines Matching refs:rect
39 struct v4l2_rect rect; member
745 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
747 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
846 f->width = decoder->rect.width; in tvp5150_mbus_fmt()
847 f->height = decoder->rect.height; in tvp5150_mbus_fmt()
860 struct v4l2_rect rect = a->c; in tvp5150_s_crop() local
866 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop()
872 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
873 rect.width = clamp(rect.width, in tvp5150_s_crop()
874 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect.left, in tvp5150_s_crop()
875 TVP5150_H_MAX - rect.left); in tvp5150_s_crop()
876 rect.top = clamp(rect.top, 0, TVP5150_MAX_CROP_TOP); in tvp5150_s_crop()
889 rect.height = clamp(rect.height, in tvp5150_s_crop()
890 hmax - TVP5150_MAX_CROP_TOP - rect.top, in tvp5150_s_crop()
891 hmax - rect.top); in tvp5150_s_crop()
893 tvp5150_write(sd, TVP5150_VERT_BLANKING_START, rect.top); in tvp5150_s_crop()
895 rect.top + rect.height - hmax); in tvp5150_s_crop()
897 rect.left >> TVP5150_CROP_SHIFT); in tvp5150_s_crop()
899 rect.left | (1 << TVP5150_CROP_SHIFT)); in tvp5150_s_crop()
901 (rect.left + rect.width - TVP5150_MAX_CROP_LEFT) >> in tvp5150_s_crop()
904 rect.left + rect.width - TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
906 decoder->rect = rect; in tvp5150_s_crop()
915 a->c = decoder->rect; in tvp5150_g_crop()
1196 core->rect.top = 0; in tvp5150_probe()
1198 core->rect.height = TVP5150_V_MAX_525_60; in tvp5150_probe()
1200 core->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_probe()
1201 core->rect.left = 0; in tvp5150_probe()
1202 core->rect.width = TVP5150_H_MAX; in tvp5150_probe()