Lines Matching refs:cr

475 			paddr->cr = 0;
480 paddr->cr = 0;
486 paddr->cr = (u32)(paddr->cb
489 paddr->cr = (u32)(paddr->cb
500 paddr->cr = vb2_dma_contig_plane_dma_addr(vb, 2);
503 dbg("PHYS_ADDR: y= 0x%X cb= 0x%X cr= 0x%X ret= %d",
504 paddr->y, paddr->cb, paddr->cr, ret);
1243 struct v4l2_cropcap *cr)
1248 frame = ctx_get_frame(ctx, cr->type);
1252 cr->bounds.left = 0;
1253 cr->bounds.top = 0;
1254 cr->bounds.width = frame->o_width;
1255 cr->bounds.height = frame->o_height;
1256 cr->defrect = cr->bounds;
1261 static int fimc_m2m_g_crop(struct file *file, void *fh, struct v4l2_crop *cr)
1266 frame = ctx_get_frame(ctx, cr->type);
1270 cr->c.left = frame->offs_h;
1271 cr->c.top = frame->offs_v;
1272 cr->c.width = frame->width;
1273 cr->c.height = frame->height;
1278 static int fimc_m2m_try_crop(struct fimc_ctx *ctx, struct v4l2_crop *cr)
1285 if (cr->c.top < 0 || cr->c.left < 0) {
1290 if (cr->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
1292 else if (cr->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
1309 v4l_bound_align_image(&cr->c.width, min_size, f->o_width,
1311 &cr->c.height, min_size, f->o_height,
1315 if (cr->c.left + cr->c.width > f->o_width)
1316 cr->c.left = f->o_width - cr->c.width;
1317 if (cr->c.top + cr->c.height > f->o_height)
1318 cr->c.top = f->o_height - cr->c.height;
1320 cr->c.left = round_down(cr->c.left, min_size);
1321 cr->c.top = round_down(cr->c.top, fimc->variant->hor_offs_align);
1324 cr->c.left, cr->c.top, cr->c.width, cr->c.height,
1330 static int fimc_m2m_s_crop(struct file *file, void *fh, struct v4l2_crop *cr)
1337 ret = fimc_m2m_try_crop(ctx, cr);
1341 f = (cr->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) ?
1346 if (cr->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
1347 ret = fimc_check_scaler_ratio(ctx, cr->c.width,
1348 cr->c.height, ctx->d_frame.width,
1352 ctx->s_frame.height, cr->c.width,
1353 cr->c.height, ctx->rotation);
1361 f->offs_h = cr->c.left;
1362 f->offs_v = cr->c.top;
1363 f->width = cr->c.width;
1364 f->height = cr->c.height;