Home
last modified time | relevance | path

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

/linux-6.6.21/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.6.21/drivers/staging/media/meson/vdec/
Dvdec.c496 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common() local
501 memset(pfmt[0].reserved, 0, sizeof(pfmt[0].reserved)); in vdec_try_fmt_common()
524 if (!pfmt[0].sizeimage) in vdec_try_fmt_common()
525 pfmt[0].sizeimage = sess->src_buffer_size; in vdec_try_fmt_common()
526 pfmt[0].bytesperline = 0; in vdec_try_fmt_common()
533 memset(pfmt[1].reserved, 0, sizeof(pfmt[1].reserved)); in vdec_try_fmt_common()
535 pfmt[0].sizeimage = output_size; in vdec_try_fmt_common()
536 pfmt[0].bytesperline = ALIGN(pixmp->width, 32); in vdec_try_fmt_common()
538 pfmt[1].sizeimage = output_size / 2; in vdec_try_fmt_common()
539 pfmt[1].bytesperline = ALIGN(pixmp->width, 32); in vdec_try_fmt_common()
[all …]
/linux-6.6.21/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c355 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_out() local
410 if (pfmt[p].bytesperline > max_bpl) in vivid_try_fmt_vid_out()
411 pfmt[p].bytesperline = max_bpl; in vivid_try_fmt_vid_out()
412 if (pfmt[p].bytesperline < bytesperline) in vivid_try_fmt_vid_out()
413 pfmt[p].bytesperline = bytesperline; in vivid_try_fmt_vid_out()
415 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_out()
418 memset(pfmt[p].reserved, 0, sizeof(pfmt[p].reserved)); in vivid_try_fmt_vid_out()
421 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_out()
Dvivid-vid-cap.c559 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_cap() local
625 if (pfmt[p].bytesperline > max_bpl) in vivid_try_fmt_vid_cap()
626 pfmt[p].bytesperline = max_bpl; in vivid_try_fmt_vid_cap()
627 if (pfmt[p].bytesperline < bytesperline) in vivid_try_fmt_vid_cap()
628 pfmt[p].bytesperline = bytesperline; in vivid_try_fmt_vid_cap()
630 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_cap()
633 memset(pfmt[p].reserved, 0, sizeof(pfmt[p].reserved)); in vivid_try_fmt_vid_cap()
636 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_cap()
/linux-6.6.21/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.6.21/tools/perf/
Dbuiltin-diff.c1329 char pfmt[20] = " "; in hpp__color_baseline() local
1332 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1334 pfmt, percent); in hpp__color_baseline()
1337 dfmt->header_width, pfmt); in hpp__color_baseline()
1405 char pfmt[20] = " "; in __hpp__color_compare() local
1426 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1428 pfmt, diff); in __hpp__color_compare()
1437 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1439 pfmt, diff); in __hpp__color_compare()
1448 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
[all …]
/linux-6.6.21/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.6.21/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.6.21/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c2251 struct v4l2_plane_pix_format *pfmt; in mxc_jpeg_try_fmt() local
2293 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
2294 q_data->bytesperline[i] = pfmt->bytesperline; in mxc_jpeg_try_fmt()
2295 q_data->sizeimage[i] = pfmt->sizeimage; in mxc_jpeg_try_fmt()
2304 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
2305 memset(pfmt->reserved, 0, sizeof(pfmt->reserved)); in mxc_jpeg_try_fmt()
2306 pfmt->bytesperline = q_data->bytesperline[i]; in mxc_jpeg_try_fmt()
2307 pfmt->sizeimage = mxc_jpeg_get_plane_size(q_data, i); in mxc_jpeg_try_fmt()
/linux-6.6.21/arch/s390/include/asm/
Dqdio.h101 u32 pfmt : 8; member
/linux-6.6.21/drivers/s390/cio/
Dqdio_setup.c334 irq_ptr->qib.pfmt = init_data->qib_param_field_format; in setup_qib()
/linux-6.6.21/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()