Home
last modified time | relevance | path

Searched refs:pfmt (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/drivers/media/platform/amphion/
Dvpu_helpers.c33 const struct vpu_format *pfmt; in vpu_helper_check_type() local
35 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_check_type()
36 if (!vpu_iface_check_format(inst, pfmt->pixfmt)) in vpu_helper_check_type()
38 if (pfmt->type == type) in vpu_helper_check_type()
47 const struct vpu_format *pfmt; in vpu_helper_find_format() local
55 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_find_format()
56 if (pfmt->pixfmt == pixelfmt && (!type || type == pfmt->type)) in vpu_helper_find_format()
57 return pfmt; in vpu_helper_find_format()
95 const struct vpu_format *pfmt; in vpu_helper_enum_format() local
101 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_enum_format()
[all …]
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-isys-video.c122 const struct ipu6_isys_pixelformat *pfmt = &ipu6_isys_pfmts[i]; in ipu6_isys_get_isys_format() local
124 if (type && ((!pfmt->is_meta && in ipu6_isys_get_isys_format()
126 (pfmt->is_meta && in ipu6_isys_get_isys_format()
131 default_pfmt = pfmt; in ipu6_isys_get_isys_format()
133 if (pfmt->pixelformat != pixelformat) in ipu6_isys_get_isys_format()
136 return pfmt; in ipu6_isys_get_isys_format()
232 const struct ipu6_isys_pixelformat *pfmt = in ipu6_isys_try_fmt_cap() local
235 *format = pfmt->pixelformat; in ipu6_isys_try_fmt_cap()
239 if (pfmt->bpp != pfmt->bpp_packed) in ipu6_isys_try_fmt_cap()
240 *bytesperline = *width * DIV_ROUND_UP(pfmt->bpp, BITS_PER_BYTE); in ipu6_isys_try_fmt_cap()
[all …]
Dipu6-isys-queue.c511 const struct ipu6_isys_pixelformat *pfmt = in start_streaming() local
520 ipu6_isys_get_frame_height(av), pfmt->css_pixelformat); in start_streaming()
/linux-6.12.1/drivers/staging/media/meson/vdec/
Dvdec.c497 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() local
502 memset(pfmt[0].reserved, 0, sizeof(pfmt[0].reserved)); in vdec_try_fmt_common()
525 if (!pfmt[0].sizeimage) in vdec_try_fmt_common()
526 pfmt[0].sizeimage = sess->src_buffer_size; in vdec_try_fmt_common()
527 pfmt[0].bytesperline = 0; in vdec_try_fmt_common()
534 memset(pfmt[1].reserved, 0, sizeof(pfmt[1].reserved)); in vdec_try_fmt_common()
536 pfmt[0].sizeimage = output_size; in vdec_try_fmt_common()
537 pfmt[0].bytesperline = ALIGN(pixmp->width, 32); in vdec_try_fmt_common()
539 pfmt[1].sizeimage = output_size / 2; in vdec_try_fmt_common()
540 pfmt[1].bytesperline = ALIGN(pixmp->width, 32); in vdec_try_fmt_common()
[all …]
/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c350 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_out() local
405 if (pfmt[p].bytesperline > max_bpl) in vivid_try_fmt_vid_out()
406 pfmt[p].bytesperline = max_bpl; in vivid_try_fmt_vid_out()
407 if (pfmt[p].bytesperline < bytesperline) in vivid_try_fmt_vid_out()
408 pfmt[p].bytesperline = bytesperline; in vivid_try_fmt_vid_out()
410 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_out()
413 memset(pfmt[p].reserved, 0, sizeof(pfmt[p].reserved)); in vivid_try_fmt_vid_out()
416 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_out()
Dvivid-vid-cap.c553 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_cap() local
619 if (pfmt[p].bytesperline > max_bpl) in vivid_try_fmt_vid_cap()
620 pfmt[p].bytesperline = max_bpl; in vivid_try_fmt_vid_cap()
621 if (pfmt[p].bytesperline < bytesperline) in vivid_try_fmt_vid_cap()
622 pfmt[p].bytesperline = bytesperline; in vivid_try_fmt_vid_cap()
624 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_cap()
627 memset(pfmt[p].reserved, 0, sizeof(pfmt[p].reserved)); in vivid_try_fmt_vid_cap()
630 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_cap()
/linux-6.12.1/tools/perf/
Dbuiltin-diff.c1315 char pfmt[20] = " "; in hpp__color_baseline() local
1318 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1320 pfmt, percent); in hpp__color_baseline()
1323 dfmt->header_width, pfmt); in hpp__color_baseline()
1391 char pfmt[20] = " "; in __hpp__color_compare() local
1412 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1414 pfmt, diff); in __hpp__color_compare()
1423 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1425 pfmt, diff); in __hpp__color_compare()
1434 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
[all …]
/linux-6.12.1/drivers/media/platform/renesas/
Dsh_vou.c140 u32 pfmt; member
151 .pfmt = V4L2_PIX_FMT_NV12,
158 .pfmt = V4L2_PIX_FMT_NV16,
165 .pfmt = V4L2_PIX_FMT_RGB24,
172 .pfmt = V4L2_PIX_FMT_RGB565,
179 .pfmt = V4L2_PIX_FMT_RGB565X,
392 fmt->pixelformat = vou_fmt[fmt->index].pfmt; in sh_vou_enum_fmt_vid_out()
486 fmt->pfmt, vouvcr); in sh_vou_configure_geometry()
666 if (vou_fmt[pix_idx].pfmt == pix->pixelformat) in sh_vou_try_fmt_vid_out()
707 if (vou_fmt[pix_idx].pfmt == pix->pixelformat) in sh_vou_set_fmt_vid_out()
/linux-6.12.1/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.c270 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[0]; in mtk_jpeg_try_fmt_mplane() local
277 pfmt->bytesperline = 0; in mtk_jpeg_try_fmt_mplane()
279 pfmt->sizeimage = round_up(pfmt->sizeimage, 128); in mtk_jpeg_try_fmt_mplane()
280 if (pfmt->sizeimage == 0) in mtk_jpeg_try_fmt_mplane()
281 pfmt->sizeimage = MTK_JPEG_DEFAULT_SIZEIMAGE; in mtk_jpeg_try_fmt_mplane()
292 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[i]; in mtk_jpeg_try_fmt_mplane() local
296 pfmt->bytesperline = stride; in mtk_jpeg_try_fmt_mplane()
297 pfmt->sizeimage = stride * h; in mtk_jpeg_try_fmt_mplane()
337 struct v4l2_plane_pix_format *pfmt = &pix_mp->plane_fmt[i]; in mtk_jpeg_g_fmt_vid_mplane() local
339 pfmt->bytesperline = q_data->pix_mp.plane_fmt[i].bytesperline; in mtk_jpeg_g_fmt_vid_mplane()
[all …]
/linux-6.12.1/drivers/media/platform/qcom/venus/
Dvdec.c188 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() local
192 memset(pfmt[0].reserved, 0, sizeof(pfmt[0].reserved)); in vdec_try_fmt_common()
230 pfmt[0].sizeimage = szimage; in vdec_try_fmt_common()
231 pfmt[0].bytesperline = ALIGN(stride, 128); in vdec_try_fmt_common()
233 pfmt[0].sizeimage = clamp_t(u32, pfmt[0].sizeimage, 0, SZ_8M); in vdec_try_fmt_common()
234 pfmt[0].sizeimage = max(pfmt[0].sizeimage, szimage); in vdec_try_fmt_common()
235 pfmt[0].bytesperline = 0; in vdec_try_fmt_common()
Dvenc.c175 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in venc_try_fmt_common() local
179 memset(pfmt[0].reserved, 0, sizeof(pfmt[0].reserved)); in venc_try_fmt_common()
214 pfmt[0].sizeimage = max(ALIGN(pfmt[0].sizeimage, SZ_4K), sizeimage); in venc_try_fmt_common()
217 pfmt[0].bytesperline = ALIGN(pixmp->width, 128); in venc_try_fmt_common()
219 pfmt[0].bytesperline = 0; in venc_try_fmt_common()
/linux-6.12.1/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c2259 struct v4l2_plane_pix_format *pfmt; in mxc_jpeg_try_fmt() local
2301 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
2302 q_data->bytesperline[i] = pfmt->bytesperline; in mxc_jpeg_try_fmt()
2303 q_data->sizeimage[i] = pfmt->sizeimage; in mxc_jpeg_try_fmt()
2312 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
2313 memset(pfmt->reserved, 0, sizeof(pfmt->reserved)); in mxc_jpeg_try_fmt()
2314 pfmt->bytesperline = q_data->bytesperline[i]; in mxc_jpeg_try_fmt()
2315 pfmt->sizeimage = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_try_fmt()
/linux-6.12.1/arch/s390/include/asm/
Dqdio.h102 u32 pfmt : 8; member
/linux-6.12.1/drivers/s390/cio/
Dqdio_setup.c334 irq_ptr->qib.pfmt = init_data->qib_param_field_format; in setup_qib()
/linux-6.12.1/drivers/media/platform/marvell/
Dmcam-core.c316 static bool mcam_fmt_is_planar(__u32 pfmt) in mcam_fmt_is_planar() argument
320 f = mcam_find_format(pfmt); in mcam_fmt_is_planar()