• Home
  • Raw
  • Download

Lines Matching refs:image

359 				 struct ipu_image_convert_image *image)  in calc_tile_dimensions()  argument
364 struct ipu_image_tile *tile = &image->tile[i]; in calc_tile_dimensions()
366 tile->height = image->base.pix.height / image->num_rows; in calc_tile_dimensions()
367 tile->width = image->base.pix.width / image->num_cols; in calc_tile_dimensions()
368 tile->size = ((tile->height * image->fmt->bpp) >> 3) * in calc_tile_dimensions()
371 if (image->fmt->planar) { in calc_tile_dimensions()
376 (image->fmt->bpp * tile->width) >> 3; in calc_tile_dimensions()
378 (image->fmt->bpp * tile->height) >> 3; in calc_tile_dimensions()
457 struct ipu_image_convert_image *image) in calc_tile_offsets_planar() argument
461 const struct ipu_image_pixfmt *fmt = image->fmt; in calc_tile_offsets_planar()
469 H = image->base.pix.height; in calc_tile_offsets_planar()
471 y_stride = image->stride; in calc_tile_offsets_planar()
479 for (row = 0; row < image->num_rows; row++) { in calc_tile_offsets_planar()
480 w = image->tile[tile].width; in calc_tile_offsets_planar()
481 h = image->tile[tile].height; in calc_tile_offsets_planar()
485 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_planar()
502 image->tile[tile].offset = y_off; in calc_tile_offsets_planar()
503 image->tile[tile].u_off = u_off; in calc_tile_offsets_planar()
504 image->tile[tile++].v_off = v_off; in calc_tile_offsets_planar()
509 image->type == IMAGE_CONVERT_IN ? in calc_tile_offsets_planar()
517 struct ipu_image_convert_image *image) in calc_tile_offsets_packed() argument
521 const struct ipu_image_pixfmt *fmt = image->fmt; in calc_tile_offsets_packed()
527 stride = image->stride; in calc_tile_offsets_packed()
530 for (row = 0; row < image->num_rows; row++) { in calc_tile_offsets_packed()
531 w = image->tile[tile].width; in calc_tile_offsets_packed()
532 h = image->tile[tile].height; in calc_tile_offsets_packed()
535 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_packed()
538 image->tile[tile].offset = row_off + col_off; in calc_tile_offsets_packed()
539 image->tile[tile].u_off = 0; in calc_tile_offsets_packed()
540 image->tile[tile++].v_off = 0; in calc_tile_offsets_packed()
545 image->type == IMAGE_CONVERT_IN ? in calc_tile_offsets_packed()
553 struct ipu_image_convert_image *image) in calc_tile_offsets() argument
555 if (image->fmt->planar) in calc_tile_offsets()
556 calc_tile_offsets_planar(ctx, image); in calc_tile_offsets()
558 calc_tile_offsets_packed(ctx, image); in calc_tile_offsets()
606 struct ipu_image_convert_image *image, in init_idmac_channel() argument
617 if (image->type == IMAGE_CONVERT_OUT) { in init_idmac_channel()
626 width = image->tile[0].height; in init_idmac_channel()
627 height = image->tile[0].width; in init_idmac_channel()
628 stride = image->tile[0].rot_stride; in init_idmac_channel()
633 width = image->tile[0].width; in init_idmac_channel()
634 height = image->tile[0].height; in init_idmac_channel()
635 stride = image->stride; in init_idmac_channel()
636 addr0 = image->base.phys0 + in init_idmac_channel()
637 image->tile[tile_idx[0]].offset; in init_idmac_channel()
639 addr1 = image->base.phys0 + in init_idmac_channel()
640 image->tile[tile_idx[1]].offset; in init_idmac_channel()
649 tile_image.pix.pixelformat = image->fmt->fourcc; in init_idmac_channel()
654 if (image->fmt->planar && !rot_swap_width_height) in init_idmac_channel()
656 image->tile[tile_idx[0]].u_off, in init_idmac_channel()
657 image->tile[tile_idx[0]].v_off); in init_idmac_channel()
1170 struct ipu_image *image, in fill_image() argument
1175 ic_image->base = *image; in fill_image()
1178 ic_image->fmt = get_format(image->pix.pixelformat); in fill_image()