Lines Matching refs:crop
251 struct v4l2_rect crop; in rpf_configure_partition() local
261 crop = *vsp1_rwpf_get_crop(rpf, rpf->entity.config); in rpf_configure_partition()
274 crop.width = pipe->partition->rpf.width; in rpf_configure_partition()
275 crop.left += pipe->partition->rpf.left; in rpf_configure_partition()
279 crop.height = round_down(crop.height / 2, fmtinfo->vsub); in rpf_configure_partition()
280 crop.top = round_down(crop.top / 2, fmtinfo->vsub); in rpf_configure_partition()
284 (crop.width << VI6_RPF_SRC_BSIZE_BHSIZE_SHIFT) | in rpf_configure_partition()
285 (crop.height << VI6_RPF_SRC_BSIZE_BVSIZE_SHIFT)); in rpf_configure_partition()
287 (crop.width << VI6_RPF_SRC_ESIZE_EHSIZE_SHIFT) | in rpf_configure_partition()
288 (crop.height << VI6_RPF_SRC_ESIZE_EVSIZE_SHIFT)); in rpf_configure_partition()
290 mem.addr[0] += crop.top * format->plane_fmt[0].bytesperline in rpf_configure_partition()
291 + crop.left * fmtinfo->bpp[0] / 8; in rpf_configure_partition()
296 offset = crop.top * format->plane_fmt[1].bytesperline in rpf_configure_partition()
297 + crop.left / fmtinfo->hsub in rpf_configure_partition()