Lines Matching defs:rect
24 #include <media/v4l2-rect.h>
80 struct v4l2_rect rect;
820 decoder->rect.height = TVP5150_V_MAX_525_60;
822 decoder->rect.height = TVP5150_V_MAX_OTHERS;
1035 return &decoder->rect;
1059 f->width = decoder->rect.width;
1060 f->height = decoder->rect.height / 2;
1087 struct v4l2_rect *rect)
1092 regmap_write(decoder->regmap, TVP5150_VERT_BLANKING_START, rect->top);
1094 rect->top + rect->height - hmax);
1096 rect->left >> TVP5150_CROP_SHIFT);
1098 rect->left | (1 << TVP5150_CROP_SHIFT));
1100 (rect->left + rect->width - TVP5150_MAX_CROP_LEFT) >>
1103 rect->left + rect->width - TVP5150_MAX_CROP_LEFT);
1111 struct v4l2_rect *rect = &sel->r;
1119 __func__, rect->left, rect->top, rect->width, rect->height);
1122 rect->left = clamp(rect->left, 0, TVP5150_MAX_CROP_LEFT);
1123 rect->top = clamp(rect->top, 0, TVP5150_MAX_CROP_TOP);
1131 v4l_bound_align_image(&rect->width,
1132 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect->left,
1133 TVP5150_H_MAX - rect->left, 1, &rect->height,
1134 hmax - TVP5150_MAX_CROP_TOP - rect->top,
1135 hmax - rect->top, 0, 0);
1150 !v4l2_rect_equal(rect, crop))
1151 tvp5150_set_hw_selection(sd, rect);
1153 *crop = *rect;
1226 tvp5150_set_default(std, &decoder->rect);
1254 fse->min_width = decoder->rect.width;
1255 fse->max_width = decoder->rect.width;
1256 fse->min_height = decoder->rect.height / 2;
1257 fse->max_height = decoder->rect.height / 2;
2207 tvp5150_set_default(tvp5150_read_std(sd), &core->rect);