/Linux-v6.6/drivers/media/platform/amphion/ |
D | vpu_helpers.c | 154 u32 bytesperline; in get_nv12_plane_size() local 157 bytesperline = width; in get_nv12_plane_size() 159 bytesperline = max(bytesperline, *pbl); in get_nv12_plane_size() 160 bytesperline = ALIGN(bytesperline, stride); in get_nv12_plane_size() 163 size = bytesperline * height; in get_nv12_plane_size() 165 size = bytesperline * height >> 1; in get_nv12_plane_size() 167 *pbl = bytesperline; in get_nv12_plane_size() 178 u32 bytesperline; in get_tiled_8l128_plane_size() local 185 bytesperline = DIV_ROUND_UP(width * bitdepth, BITS_PER_BYTE); in get_tiled_8l128_plane_size() 187 bytesperline = max(bytesperline, *pbl); in get_tiled_8l128_plane_size() [all …]
|
D | vpu_v4l2.c | 159 fmt->bytesperline[i] = 0; in vpu_calc_fmt_bytesperline() 164 fmt->bytesperline[i] = pixmp->plane_fmt[i].bytesperline; in vpu_calc_fmt_bytesperline() 174 fmt->bytesperline[i] = pixmp->plane_fmt[0].bytesperline; in vpu_calc_fmt_bytesperline() 198 &fmt->bytesperline[i]); in vpu_calc_fmt_sizeimage() 202 fmt->bytesperline[i] = 0; in vpu_calc_fmt_sizeimage() 261 pixmp->plane_fmt[i].bytesperline = fmt->bytesperline[i]; in vpu_try_fmt_common() 587 fmt->sizeimage[0], fmt->bytesperline[0], in vpu_vb2_start_streaming() 588 fmt->sizeimage[1], fmt->bytesperline[1], in vpu_vb2_start_streaming() 589 fmt->sizeimage[2], fmt->bytesperline[2], in vpu_vb2_start_streaming()
|
/Linux-v6.6/drivers/media/platform/chips-media/ |
D | imx-vdoa.c | 87 unsigned int bytesperline; member 178 writel(src_q_data->bytesperline << 16 | dst_q_data->bytesperline, in vdoa_device_run() 183 val = dst_q_data->bytesperline * dst_q_data->height; in vdoa_device_run() 190 val = round_up(src_q_data->bytesperline * src_q_data->height, 4096); in vdoa_device_run() 259 src_q_data->bytesperline = width; in vdoa_context_configure() 261 round_up(src_q_data->bytesperline * height, 4096) + in vdoa_context_configure() 262 src_q_data->bytesperline * height / 2; in vdoa_context_configure() 269 dst_q_data->bytesperline = width * 2; in vdoa_context_configure() 270 dst_q_data->sizeimage = dst_q_data->bytesperline * height; in vdoa_context_configure() 274 dst_q_data->bytesperline = width; in vdoa_context_configure() [all …]
|
/Linux-v6.6/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 588 #define Y_OFFSET(pix, x, y) ((x) + pix->bytesperline * (y)) 589 #define U_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ 590 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2) 591 #define V_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ 592 (pix->bytesperline * pix->height / 4) + \ 593 (pix->bytesperline * ((y) / 2) / 2) + (x) / 2) 594 #define U2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ 595 (pix->bytesperline * (y) / 2) + (x) / 2) 596 #define V2_OFFSET(pix, x, y) ((pix->bytesperline * pix->height) + \ 597 (pix->bytesperline * pix->height / 2) + \ [all …]
|
/Linux-v6.6/drivers/media/platform/qcom/camss/ |
D | camss-video.c | 307 u32 bytesperline; in video_mbus_to_pix_mp() local 314 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp() 316 bytesperline = ALIGN(bytesperline, alignment); in video_mbus_to_pix_mp() 317 pix->plane_fmt[i].bytesperline = bytesperline; in video_mbus_to_pix_mp() 320 bytesperline; in video_mbus_to_pix_mp() 430 format->plane_fmt[0].bytesperline * in video_buf_init() 702 u32 bytesperline[3] = { 0 }; in __video_try_fmt() local 713 bytesperline[i] = clamp_t(u32, p->bytesperline, in __video_try_fmt() 716 bytesperline[i], in __video_try_fmt() 717 bytesperline[i] * CAMSS_FRAME_MAX_HEIGHT_PIX); in __video_try_fmt() [all …]
|
/Linux-v6.6/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 103 int bytesperline = dev->width * 2; in stk1160_copy_video() local 124 linesdone = buf->pos / bytesperline; in stk1160_copy_video() 125 lineoff = buf->pos % bytesperline; /* offset in current line */ in stk1160_copy_video() 128 dst += bytesperline; in stk1160_copy_video() 131 dst += linesdone * bytesperline * 2 + lineoff; in stk1160_copy_video() 134 if (remain < (bytesperline - lineoff)) in stk1160_copy_video() 137 lencopy = bytesperline - lineoff; in stk1160_copy_video() 173 dst += lencopy + bytesperline; in stk1160_copy_video() 177 if (remain < bytesperline) in stk1160_copy_video() 180 lencopy = bytesperline; in stk1160_copy_video()
|
/Linux-v6.6/drivers/media/usb/gspca/gl860/ |
D | gl860.c | 225 .bytesperline = 640, 231 .bytesperline = 800, 237 .bytesperline = 1280, 243 .bytesperline = 1600, 252 .bytesperline = 640, 258 .bytesperline = 800, 264 .bytesperline = 1280, 270 .bytesperline = 1600, 279 .bytesperline = 640, 285 .bytesperline = 800, [all …]
|
/Linux-v6.6/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 108 unsigned int bytesperline = pix_fmt->bytesperline; in cedrus_prepare_format() local 122 bytesperline = 0; in cedrus_prepare_format() 129 bytesperline = ALIGN(width, 32); in cedrus_prepare_format() 135 sizeimage = bytesperline * height; in cedrus_prepare_format() 138 sizeimage += bytesperline * ALIGN(height, 64) / 2; in cedrus_prepare_format() 144 bytesperline = ALIGN(width, 16); in cedrus_prepare_format() 150 sizeimage = bytesperline * height; in cedrus_prepare_format() 153 sizeimage += bytesperline * height / 2; in cedrus_prepare_format() 161 pix_fmt->bytesperline = bytesperline; in cedrus_prepare_format()
|
/Linux-v6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec.c | 168 q_data->bytesperline[0] = 0; in mtk_vcodec_dec_set_default_params() 180 q_data->bytesperline[0] = q_data->coded_width; in mtk_vcodec_dec_set_default_params() 182 q_data->bytesperline[1] = q_data->coded_width; in mtk_vcodec_dec_set_default_params() 282 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt() 313 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt() 318 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt() 541 ctx->q_data[MTK_Q_DATA_DST].bytesperline[0] = in vidioc_vdec_s_fmt() 546 ctx->q_data[MTK_Q_DATA_DST].bytesperline[0] = in vidioc_vdec_s_fmt() 550 ctx->q_data[MTK_Q_DATA_DST].bytesperline[1] = in vidioc_vdec_s_fmt() 678 q_data->bytesperline[0] = ctx->last_decoded_picinfo.buf_w; in vidioc_vdec_g_fmt() [all …]
|
/Linux-v6.6/drivers/media/usb/gspca/ |
D | ov534_9.c | 56 .bytesperline = 320, 61 .bytesperline = 640, 66 .bytesperline = 800, 71 .bytesperline = 1024, 76 .bytesperline = 1280, 83 .bytesperline = 640, 91 .bytesperline = 2592, 109 .bytesperline = 0x800, 113 .bytesperline = 1600, 117 .bytesperline = 768, [all …]
|
D | sn9c20x.c | 169 .bytesperline = 160, 174 .bytesperline = 160, 179 .bytesperline = 160, 184 .bytesperline = 320, 189 .bytesperline = 320, 194 .bytesperline = 320, 199 .bytesperline = 640, 204 .bytesperline = 640, 209 .bytesperline = 640, 217 .bytesperline = 160, [all …]
|
D | spca505.c | 29 .bytesperline = 160, 34 .bytesperline = 176, 39 .bytesperline = 320, 44 .bytesperline = 352, 49 .bytesperline = 640,
|
D | vicam.c | 44 .bytesperline = 256, 49 .bytesperline = 256, 53 .bytesperline = 256, 58 .bytesperline = 512, 63 .bytesperline = 512,
|
D | kinect.c | 67 .bytesperline = 640 * 10 / 8, 75 .bytesperline = 640, 80 .bytesperline = 640 * 2, 85 .bytesperline = 1280, 90 .bytesperline = 640 * 10 / 8, 95 .bytesperline = 1280 * 10 / 8,
|
D | spca561.c | 46 .bytesperline = 160, 51 .bytesperline = 176, 56 .bytesperline = 320, 61 .bytesperline = 352, 69 .bytesperline = 160, 74 .bytesperline = 176, 79 .bytesperline = 320, 84 .bytesperline = 352,
|
D | ov519.c | 240 .bytesperline = 320, 245 .bytesperline = 640, 252 .bytesperline = 160, 257 .bytesperline = 176, 262 .bytesperline = 320, 267 .bytesperline = 352, 281 .bytesperline = 320, 286 .bytesperline = 640, 293 .bytesperline = 160, 298 .bytesperline = 176, [all …]
|
D | spca508.c | 33 .bytesperline = 160, 38 .bytesperline = 176, 43 .bytesperline = 320, 48 .bytesperline = 352,
|
D | sonixb.c | 121 .bytesperline = 160, 126 .bytesperline = 160, 131 .bytesperline = 320, 136 .bytesperline = 640, 143 .bytesperline = 160, 148 .bytesperline = 160, 153 .bytesperline = 176, 158 .bytesperline = 176, 163 .bytesperline = 320, 168 .bytesperline = 352,
|
/Linux-v6.6/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-regs.c | 188 u32 bpl = pix_mp->plane_fmt[i].bytesperline; in mdp_try_fmt_mplane() 194 pix_mp->plane_fmt[i].bytesperline = bpl; in mdp_try_fmt_mplane() 309 u32 bytesperline, unsigned int plane) in mdp_fmt_get_stride() argument 314 stride = (bytesperline * MDP_COLOR_BITS_PER_PIXEL(c)) in mdp_fmt_get_stride() 349 u32 bytesperline; in mdp_fmt_get_plane_size() local 351 bytesperline = (stride * fmt->row_depth[0]) in mdp_fmt_get_plane_size() 354 return bytesperline * height; in mdp_fmt_get_plane_size() 358 bytesperline = bytesperline * 2; in mdp_fmt_get_plane_size() 359 return bytesperline * height; in mdp_fmt_get_plane_size() 374 pix_mp->plane_fmt[i].bytesperline, i); in mdp_prepare_buffer()
|
/Linux-v6.6/drivers/media/platform/renesas/vsp1/ |
D | vsp1_rpf.c | 74 pstride = format->plane_fmt[0].bytesperline in rpf_configure_stream() 77 pstride |= format->plane_fmt[1].bytesperline in rpf_configure_stream() 268 offset_y = format->plane_fmt[0].bytesperline; in vsp1_rpf_configure_autofld() 269 offset_c = format->plane_fmt[1].bytesperline; in vsp1_rpf_configure_autofld() 342 mem.addr[0] += crop.top * format->plane_fmt[0].bytesperline in rpf_configure_partition() 346 unsigned int bpl = format->plane_fmt[1].bytesperline; in rpf_configure_partition()
|
/Linux-v6.6/drivers/media/pci/cobalt/ |
D | cobalt-v4l2.c | 714 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap() 730 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap() 776 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap() 781 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap() 785 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap() 790 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_cap() 810 s->stride = pix->bytesperline; in cobalt_s_fmt_vid_cap() 855 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out() 860 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out() 865 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_out() [all …]
|
/Linux-v6.6/drivers/media/test-drivers/vivid/ |
D | vivid-vid-out.c | 335 mp->plane_fmt[p].bytesperline = dev->bytesperline_out[p]; in vivid_g_fmt_vid_out() 337 mp->plane_fmt[p].bytesperline * mp->height + in vivid_g_fmt_vid_out() 357 unsigned bytesperline, max_bpl; in vivid_try_fmt_vid_out() local 406 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out() 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() 421 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_out() [all …]
|
/Linux-v6.6/include/media/tpg/ |
D | v4l2-tpg.h | 201 unsigned bytesperline[TPG_MAX_PLANES]; member 459 return tpg->bytesperline[plane]; in tpg_g_bytesperline() 467 tpg->bytesperline[plane] = bpl; in tpg_s_bytesperline() 474 tpg->bytesperline[p] = plane_w / tpg->hdownsampling[p]; in tpg_s_bytesperline() 477 tpg->bytesperline[1] = tpg->bytesperline[0]; in tpg_s_bytesperline()
|
/Linux-v6.6/drivers/media/pci/zoran/ |
D | zoran_driver.c | 199 zr->v4l_settings.bytesperline = bpp * zr->v4l_settings.width; in zoran_v4l_set_format() 305 fmt->fmt.pix.bytesperline = 0; in zoran_g_fmt_vid_out() 323 fmt->fmt.pix.bytesperline = zr->v4l_settings.bytesperline; in zoran_g_fmt_vid_cap() 389 fmt->fmt.pix.bytesperline = 0; in zoran_try_fmt_vid_out() 425 fmt->fmt.pix.bytesperline = fmt->fmt.pix.width * bpp; in zoran_try_fmt_vid_cap() 426 fmt->fmt.pix.sizeimage = fmt->fmt.pix.bytesperline * fmt->fmt.pix.height; in zoran_try_fmt_vid_cap() 504 fmt->fmt.pix.bytesperline = 0; in zoran_s_fmt_vid_out() 549 fmt->fmt.pix.bytesperline = zr->v4l_settings.bytesperline; in zoran_s_fmt_vid_cap() 851 reg += zr->v4l_settings.bytesperline; in zr_set_buf() 856 reg += zr->v4l_settings.bytesperline; in zr_set_buf()
|
/Linux-v6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc.c | 287 f->fmt.pix_mp.plane_fmt[0].bytesperline = 0; in vidioc_try_fmt_cap() 342 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt_out() 349 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt_out() 351 pix_fmt_mp->plane_fmt[2].bytesperline = 0; in vidioc_try_fmt_out() 357 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt_out() 358 pix_fmt_mp->plane_fmt[2].bytesperline = in vidioc_try_fmt_out() 452 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_cap() 516 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_out() 543 pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in vidioc_venc_g_fmt() 1315 q_data->bytesperline[0] = q_data->coded_width; in mtk_vcodec_enc_set_default_params() [all …]
|