Lines Matching defs:fmt
118 const struct ipu_image_pixfmt *fmt;
352 ic_image->fmt->fourcc & 0xff,
353 (ic_image->fmt->fourcc >> 8) & 0xff,
354 (ic_image->fmt->fourcc >> 16) & 0xff,
355 (ic_image->fmt->fourcc >> 24) & 0xff);
360 const struct ipu_image_pixfmt *fmt;
366 fmt = &image_convert_formats[index];
367 *fourcc = fmt->fourcc;
602 static inline u32 tile_left_align(const struct ipu_image_pixfmt *fmt)
604 if (fmt->planar)
605 return fmt->uv_packed ? 8 : 8 * fmt->uv_width_dec;
607 return fmt->bpp == 32 ? 2 : fmt->bpp == 16 ? 4 : 8;
613 static inline u32 tile_top_align(const struct ipu_image_pixfmt *fmt)
615 return fmt->uv_height_dec > 1 ? 2 : 1;
619 const struct ipu_image_pixfmt *fmt,
640 fmt->planar && !fmt->uv_packed) ?
641 8 * fmt->uv_width_dec : 8;
645 const struct ipu_image_pixfmt *fmt,
657 return (fmt->planar && !fmt->uv_packed) ? 8 * fmt->uv_width_dec : 8;
739 unsigned int in_left_align = tile_left_align(in->fmt);
740 unsigned int in_top_align = tile_top_align(in->fmt);
741 unsigned int out_left_align = tile_left_align(out->fmt);
742 unsigned int out_top_align = tile_top_align(out->fmt);
743 unsigned int out_width_align = tile_width_align(out->type, out->fmt,
745 unsigned int out_height_align = tile_height_align(out->type, out->fmt,
879 tile->size = ((tile->height * image->fmt->bpp) >> 3) *
882 if (image->fmt->planar) {
887 (image->fmt->bpp * tile->width) >> 3;
889 (image->fmt->bpp * tile->height) >> 3;
989 const struct ipu_image_pixfmt *fmt = image->fmt;
1000 uv_stride = y_stride / fmt->uv_width_dec;
1001 if (fmt->uv_packed)
1005 uv_size = y_size / (fmt->uv_width_dec * fmt->uv_height_dec);
1010 uv_row_off = (top * uv_stride) / fmt->uv_height_dec;
1014 uv_col_off = y_col_off / fmt->uv_width_dec;
1015 if (fmt->uv_packed)
1022 v_off = (fmt->uv_packed) ? 0 : u_off + uv_size;
1023 if (fmt->uv_swapped)
1051 const struct ipu_image_pixfmt *fmt = image->fmt;
1058 bpp = fmt->bpp;
1091 if (image->fmt->planar)
1335 tile_image.pix.pixelformat = image->fmt->fourcc;
1338 if (image->fmt->planar && !rot_swap_width_height) {
1354 image->fmt->planar && image->fmt->uv_height_dec == 2)
1689 if (s_image->fmt->planar)
1693 if (d_image->fmt->planar)
1931 ic_image->fmt = get_format(image->pix.pixelformat);
1932 if (!ic_image->fmt) {
1938 if (ic_image->fmt->planar)
2159 ipu_pixelformat_to_colorspace(s_image->fmt->fourcc),
2162 ipu_pixelformat_to_colorspace(d_image->fmt->fourcc));
2186 !s_image->fmt->planar &&
2187 !d_image->fmt->planar);