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