Lines Matching defs:fmt
115 const struct ipu_image_pixfmt *fmt;
349 ic_image->fmt->fourcc & 0xff,
350 (ic_image->fmt->fourcc >> 8) & 0xff,
351 (ic_image->fmt->fourcc >> 16) & 0xff,
352 (ic_image->fmt->fourcc >> 24) & 0xff);
357 const struct ipu_image_pixfmt *fmt;
363 fmt = &image_convert_formats[index];
364 *fourcc = fmt->fourcc;
603 static inline u32 tile_left_align(const struct ipu_image_pixfmt *fmt)
605 if (fmt->planar)
606 return fmt->uv_packed ? 8 : 8 * fmt->uv_width_dec;
608 return fmt->bpp == 32 ? 2 : fmt->bpp == 16 ? 4 : 8;
614 static inline u32 tile_top_align(const struct ipu_image_pixfmt *fmt)
616 return fmt->uv_height_dec > 1 ? 2 : 1;
620 const struct ipu_image_pixfmt *fmt,
641 fmt->planar && !fmt->uv_packed) ?
642 8 * fmt->uv_width_dec : 8;
646 const struct ipu_image_pixfmt *fmt,
658 return (fmt->planar && !fmt->uv_packed) ? 8 * fmt->uv_width_dec : 8;
740 unsigned int in_left_align = tile_left_align(in->fmt);
741 unsigned int in_top_align = tile_top_align(in->fmt);
742 unsigned int out_left_align = tile_left_align(out->fmt);
743 unsigned int out_top_align = tile_top_align(out->fmt);
744 unsigned int out_width_align = tile_width_align(out->type, out->fmt,
746 unsigned int out_height_align = tile_height_align(out->type, out->fmt,
880 tile->size = ((tile->height * image->fmt->bpp) >> 3) *
883 if (image->fmt->planar) {
888 (image->fmt->bpp * tile->width) >> 3;
890 (image->fmt->bpp * tile->height) >> 3;
990 const struct ipu_image_pixfmt *fmt = image->fmt;
1001 uv_stride = y_stride / fmt->uv_width_dec;
1002 if (fmt->uv_packed)
1006 uv_size = y_size / (fmt->uv_width_dec * fmt->uv_height_dec);
1011 uv_row_off = (top * uv_stride) / fmt->uv_height_dec;
1015 uv_col_off = y_col_off / fmt->uv_width_dec;
1016 if (fmt->uv_packed)
1023 v_off = (fmt->uv_packed) ? 0 : u_off + uv_size;
1024 if (fmt->uv_swapped) {
1055 const struct ipu_image_pixfmt *fmt = image->fmt;
1062 bpp = fmt->bpp;
1095 if (image->fmt->planar)
1339 tile_image.pix.pixelformat = image->fmt->fourcc;
1342 if (image->fmt->planar && !rot_swap_width_height) {
1358 image->fmt->planar && image->fmt->uv_height_dec == 2)
1693 if (s_image->fmt->planar)
1697 if (d_image->fmt->planar)
1935 ic_image->fmt = get_format(image->pix.pixelformat);
1936 if (!ic_image->fmt) {
1942 if (ic_image->fmt->planar)
2163 ipu_pixelformat_to_colorspace(s_image->fmt->fourcc),
2166 ipu_pixelformat_to_colorspace(d_image->fmt->fourcc));
2190 !s_image->fmt->planar &&
2191 !d_image->fmt->planar);