/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec.c | 215 q_data->sizeimage[0] = DFT_CFG_WIDTH * DFT_CFG_HEIGHT; in mtk_vcodec_dec_set_default_params() 227 q_data->sizeimage[0] = q_data->coded_width * q_data->coded_height; in mtk_vcodec_dec_set_default_params() 229 q_data->sizeimage[1] = q_data->sizeimage[0] / 2; in mtk_vcodec_dec_set_default_params() 337 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt() 342 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt() 385 if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) { in vidioc_try_fmt_vid_out_mplane() 520 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt() 564 ctx->q_data[MTK_Q_DATA_DST].sizeimage[0] = in vidioc_vdec_s_fmt() 570 ctx->q_data[MTK_Q_DATA_DST].sizeimage[0] = in vidioc_vdec_s_fmt() 574 ctx->q_data[MTK_Q_DATA_DST].sizeimage[1] = in vidioc_vdec_s_fmt() [all …]
|
/linux-6.12.1/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 107 unsigned int sizeimage = pix_fmt->sizeimage; in cedrus_prepare_format() local 124 sizeimage = max_t(u32, SZ_1K, sizeimage); in cedrus_prepare_format() 135 sizeimage = bytesperline * height; in cedrus_prepare_format() 138 sizeimage += bytesperline * ALIGN(height, 64) / 2; in cedrus_prepare_format() 150 sizeimage = bytesperline * height; in cedrus_prepare_format() 153 sizeimage += bytesperline * height / 2; in cedrus_prepare_format() 162 pix_fmt->sizeimage = sizeimage; in cedrus_prepare_format() 254 pix_fmt->sizeimage += in cedrus_try_fmt_vid_cap_p() 444 if (sizes[0] < pix_fmt->sizeimage) in cedrus_queue_setup() 447 sizes[0] = pix_fmt->sizeimage; in cedrus_queue_setup() [all …]
|
/linux-6.12.1/drivers/media/platform/qcom/camss/ |
D | camss-video.c | 59 pix->plane_fmt[i].sizeimage = pix->height / in video_mbus_to_pix_mp() 132 if (sizes[i] < format->plane_fmt[i].sizeimage) in video_queue_setup() 141 sizes[i] = format->plane_fmt[i].sizeimage; in video_queue_setup() 185 if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i)) in video_buf_prepare() 188 vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage); in video_buf_prepare() 437 u32 sizeimage[3] = { 0 }; in __video_try_fmt() local 449 sizeimage[i] = clamp_t(u32, p->sizeimage, in __video_try_fmt() 476 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / in __video_try_fmt() 493 p->sizeimage = clamp_t(u32, p->sizeimage, in __video_try_fmt() 496 lines = p->sizeimage / p->bytesperline; in __video_try_fmt() [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/gl860/ |
D | gl860.c | 226 .sizeimage = 640 * 480, 232 .sizeimage = 800 * 598, 238 .sizeimage = 1280 * 1024, 244 .sizeimage = 1600 * 1198, 253 .sizeimage = 640 * 480, 259 .sizeimage = 800 * 600, 265 .sizeimage = 1280 * 960, 271 .sizeimage = 1600 * 1200, 280 .sizeimage = 640 * 480, 286 .sizeimage = 800 * 600, [all …]
|
/linux-6.12.1/drivers/media/usb/gspca/ |
D | vicam.c | 45 .sizeimage = 256 * 122, 50 .sizeimage = 256 * 200, 54 .sizeimage = 256 * 240, 59 .sizeimage = 512 * 122, 64 .sizeimage = 512 * 244, 174 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage + in vicam_dostream()
|
D | ov534_9.c | 57 .sizeimage = 320 * 240 * 3 / 8 + 590, 62 .sizeimage = 640 * 480 * 3 / 8 + 590, 67 .sizeimage = 800 * 600 * 3 / 8 + 590, 72 .sizeimage = 1024 * 768 * 3 / 8 + 590, 77 .sizeimage = 1280 * 1024 * 3 / 8 + 590, 84 .sizeimage = 640 * 480, 92 .sizeimage = 2592 * 1680, 110 .sizeimage = 0x800 * 0x600, 114 .sizeimage = 1600 * 1200, 118 .sizeimage = 1024 * 768, [all …]
|
D | sn9c20x.c | 170 .sizeimage = 160 * 120 * 4 / 8 + 590, 175 .sizeimage = 160 * 120, 180 .sizeimage = 240 * 120, 185 .sizeimage = 320 * 240 * 4 / 8 + 590, 190 .sizeimage = 320 * 240 , 195 .sizeimage = 480 * 240 , 200 .sizeimage = 640 * 480 * 4 / 8 + 590, 205 .sizeimage = 640 * 480, 210 .sizeimage = 960 * 480, 218 .sizeimage = 160 * 120 * 4 / 8 + 590, [all …]
|
D | spca505.c | 30 .sizeimage = 160 * 120 * 3 / 2, 35 .sizeimage = 176 * 144 * 3 / 2, 40 .sizeimage = 320 * 240 * 3 / 2, 45 .sizeimage = 352 * 288 * 3 / 2, 50 .sizeimage = 640 * 480 * 3 / 2,
|
D | kinect.c | 68 .sizeimage = 640 * 480 * 10 / 8, 76 .sizeimage = 640 * 480, 81 .sizeimage = 640 * 480 * 2, 86 .sizeimage = 1280 * 1024, 91 .sizeimage = 640 * 488 * 10 / 8, 96 .sizeimage = 1280 * 1024 * 10 / 8,
|
D | spca561.c | 47 .sizeimage = 160 * 120, 52 .sizeimage = 176 * 144, 57 .sizeimage = 320 * 240 * 4 / 8, 62 .sizeimage = 352 * 288 * 4 / 8, 70 .sizeimage = 160 * 120, 75 .sizeimage = 176 * 144, 80 .sizeimage = 320 * 240, 85 .sizeimage = 352 * 288,
|
D | ov519.c | 241 .sizeimage = 320 * 240 * 3 / 8 + 590, 246 .sizeimage = 640 * 480 * 3 / 8 + 590, 253 .sizeimage = 160 * 120 * 3 / 8 + 590, 258 .sizeimage = 176 * 144 * 3 / 8 + 590, 263 .sizeimage = 320 * 240 * 3 / 8 + 590, 268 .sizeimage = 352 * 288 * 3 / 8 + 590, 282 .sizeimage = 320 * 240 * 3, 287 .sizeimage = 640 * 480 * 2, 294 .sizeimage = 70000, 299 .sizeimage = 70000, [all …]
|
D | sonixb.c | 122 .sizeimage = 160 * 120, 127 .sizeimage = 160 * 120 * 5 / 4, 132 .sizeimage = 320 * 240 * 5 / 4, 137 .sizeimage = 640 * 480 * 5 / 4, 144 .sizeimage = 160 * 120, 149 .sizeimage = 160 * 120 * 5 / 4, 154 .sizeimage = 176 * 144, 159 .sizeimage = 176 * 144 * 5 / 4, 164 .sizeimage = 320 * 240 * 5 / 4, 169 .sizeimage = 352 * 288 * 5 / 4, [all …]
|
D | spca508.c | 34 .sizeimage = 160 * 120 * 3 / 2, 39 .sizeimage = 176 * 144 * 3 / 2, 44 .sizeimage = 320 * 240 * 3 / 2, 49 .sizeimage = 352 * 288 * 3 / 2,
|
D | touptek.c | 162 .sizeimage = 800 * 600, 168 .sizeimage = 1600 * 1200, 174 .sizeimage = 3264 * 2448, 560 if (sd->this_f + len == gspca_dev->pixfmt.sizeimage) { in sd_pkt_scan() 563 sd->this_f, gspca_dev->pixfmt.sizeimage, len); in sd_pkt_scan() 568 sd->this_f, gspca_dev->pixfmt.sizeimage, len); in sd_pkt_scan()
|
/linux-6.12.1/drivers/media/platform/amphion/ |
D | vpu_v4l2.c | 199 fmt->sizeimage[i] = vpu_helper_get_plane_size(fmt->pixfmt, in vpu_calc_fmt_sizeimage() 206 fmt->sizeimage[i] = max_t(u32, fmt->sizeimage[i], PAGE_SIZE); in vpu_calc_fmt_sizeimage() 208 fmt->sizeimage[i] = clamp_val(fmt->sizeimage[i], SZ_128K, SZ_8M); in vpu_calc_fmt_sizeimage() 225 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size() 227 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size() 229 size = fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size() 231 size += fmt->sizeimage[i]; in vpu_get_fmt_plane_size() 257 if ((fmt->flags & V4L2_FMT_FLAG_COMPRESSED) && pixmp->plane_fmt[0].sizeimage) in vpu_try_fmt_common() 258 fmt->sizeimage[0] = clamp_val(pixmp->plane_fmt[0].sizeimage, SZ_128K, SZ_8M); in vpu_try_fmt_common() 269 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(fmt, i); in vpu_try_fmt_common() [all …]
|
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc.c | 335 pix_fmt_mp->plane_fmt[0].sizeimage, in vidioc_try_fmt_out() 336 pix_fmt_mp->plane_fmt[1].sizeimage); in vidioc_try_fmt_out() 339 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt_out() 345 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt_out() 348 pix_fmt_mp->plane_fmt[2].sizeimage = 0; in vidioc_try_fmt_out() 353 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt_out() 354 pix_fmt_mp->plane_fmt[2].sizeimage = in vidioc_try_fmt_out() 453 q_data->sizeimage[i] = plane_fmt->sizeimage; in vidioc_venc_s_fmt_cap() 517 q_data->sizeimage[i] = plane_fmt->sizeimage; in vidioc_venc_s_fmt_out() 544 pix->plane_fmt[i].sizeimage = q_data->sizeimage[i]; in vidioc_venc_g_fmt() [all …]
|
/linux-6.12.1/drivers/media/platform/chips-media/wave5/ |
D | wave5-vpu-dec.c | 246 pix_mp->plane_fmt[0].sizeimage = width * height * 3 / 2; in wave5_update_pix_fmt() 254 pix_mp->plane_fmt[0].sizeimage = width * height * 2; in wave5_update_pix_fmt() 260 pix_mp->plane_fmt[0].sizeimage = width * height; in wave5_update_pix_fmt() 262 pix_mp->plane_fmt[1].sizeimage = width * height / 4; in wave5_update_pix_fmt() 264 pix_mp->plane_fmt[2].sizeimage = width * height / 4; in wave5_update_pix_fmt() 271 pix_mp->plane_fmt[0].sizeimage = width * height; in wave5_update_pix_fmt() 273 pix_mp->plane_fmt[1].sizeimage = width * height / 2; in wave5_update_pix_fmt() 279 pix_mp->plane_fmt[0].sizeimage = width * height; in wave5_update_pix_fmt() 281 pix_mp->plane_fmt[1].sizeimage = width * height / 2; in wave5_update_pix_fmt() 283 pix_mp->plane_fmt[2].sizeimage = width * height / 2; in wave5_update_pix_fmt() [all …]
|
/linux-6.12.1/drivers/media/test-drivers/visl/ |
D | visl-video.c | 75 "plane[%d]: sizeimage: %d\n", i, pix_mp->plane_fmt[i].sizeimage); in visl_print_fmt() 279 pix_mp->plane_fmt[0].sizeimage = pix_mp->width * pix_mp->height * 8; in visl_reset_coded_fmt() 429 if (pix_mp->plane_fmt[0].sizeimage == 0) in visl_try_fmt_vid_out() 430 pix_mp->plane_fmt[0].sizeimage = max(MIN_CODED_SZ, in visl_try_fmt_vid_out() 578 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in visl_queue_setup() 584 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in visl_queue_setup() 592 i, f->fmt.pix_mp.plane_fmt[i].sizeimage); in visl_queue_setup() 644 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in visl_buf_prepare() 647 if (plane_sz < pix_fmt->sizeimage) { in visl_buf_prepare() 649 plane_sz, pix_fmt->sizeimage); in visl_buf_prepare()
|
/linux-6.12.1/drivers/media/test-drivers/vimc/ |
D | vimc-capture.c | 104 format->sizeimage = format->bytesperline * format->height; in vimc_capture_try_fmt_vid_cap() 302 return sizes[0] < vcapture->format.sizeimage ? -EINVAL : 0; in vimc_capture_queue_setup() 305 sizes[0] = vcapture->format.sizeimage; in vimc_capture_queue_setup() 313 unsigned long size = vcapture->format.sizeimage; in vimc_capture_buffer_prepare() 388 memcpy(vbuf, frame, vcapture->format.sizeimage); in vimc_capture_process_frame() 392 vcapture->format.sizeimage); in vimc_capture_process_frame() 455 vcapture->format.sizeimage = vcapture->format.bytesperline * in vimc_capture_add()
|
/linux-6.12.1/drivers/media/platform/ti/davinci/ |
D | vpif_capture.c | 80 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 115 unsigned size = common->fmt.fmt.pix.sizeimage; in vpif_buffer_queue_setup() 526 common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; in vpif_update_std_info() 560 unsigned int hpitch, sizeimage; in vpif_calculate_offsets() local 576 sizeimage = common->fmt.fmt.pix.sizeimage; in vpif_calculate_offsets() 585 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets() 586 common->cbtm_off = sizeimage / 2 + hpitch; in vpif_calculate_offsets() 590 common->ybtm_off = sizeimage / 4; in vpif_calculate_offsets() 591 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets() 592 common->cbtm_off = common->ctop_off + sizeimage / 4; in vpif_calculate_offsets() [all …]
|
D | vpif_display.c | 79 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 117 unsigned size = common->fmt.fmt.pix.sizeimage; in vpif_buffer_queue_setup() 482 common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; in vpif_update_resolution() 507 unsigned int hpitch, sizeimage; in vpif_calculate_offsets() local 518 sizeimage = common->fmt.fmt.pix.sizeimage; in vpif_calculate_offsets() 525 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets() 526 common->cbtm_off = sizeimage / 2 + hpitch; in vpif_calculate_offsets() 529 common->ybtm_off = sizeimage / 4; in vpif_calculate_offsets() 530 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets() 531 common->cbtm_off = common->ctop_off + sizeimage / 4; in vpif_calculate_offsets() [all …]
|
/linux-6.12.1/drivers/media/platform/imagination/ |
D | e5010-jpeg-enc.c | 302 plane_fmt[i].sizeimage = queue->sizeimage[i]; in e5010_g_fmt() 309 plane_fmt[0].sizeimage = queue->sizeimage[0]; in e5010_g_fmt() 360 plane_fmt[0].sizeimage = pix_mp->width * pix_mp->height * JPEG_MAX_BYTES_PER_PIXEL; in e5010_jpeg_try_fmt() 361 plane_fmt[0].sizeimage += HEADER_SIZE; in e5010_jpeg_try_fmt() 372 plane_fmt[0].sizeimage, plane_fmt[1].sizeimage, in e5010_jpeg_try_fmt() 421 queue->sizeimage[i] = plane_fmt[i].sizeimage; in e5010_s_fmt() 428 queue->sizeimage[0] = plane_fmt[0].sizeimage; in e5010_s_fmt() 429 queue->sizeimage[1] = 0; in e5010_s_fmt() 702 queue->sizeimage[i] = plane_fmt[i].sizeimage; in e5010_jpeg_set_default_params() 719 queue->sizeimage[0] = pix_mp->width * pix_mp->height * JPEG_MAX_BYTES_PER_PIXEL; in e5010_jpeg_set_default_params() [all …]
|
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-rotate/ |
D | sun8i_rotate.c | 178 unsigned int height, width, alignment, sizeimage, size, bpl; in rotate_prepare_format() local 195 sizeimage = 0; in rotate_prepare_format() 203 sizeimage += size; in rotate_prepare_format() 209 pix_fmt->sizeimage = sizeimage; in rotate_prepare_format() 437 if (sizes[0] < pix_fmt->sizeimage) in rotate_queue_setup() 440 sizes[0] = pix_fmt->sizeimage; in rotate_queue_setup() 458 if (vb2_plane_size(vb, 0) < pix_fmt->sizeimage) in rotate_buf_prepare() 461 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in rotate_buf_prepare() 589 fmt.sizeimage != ctx->dst_fmt.sizeimage) { in rotate_s_ctrl()
|
/linux-6.12.1/drivers/media/platform/verisilicon/ |
D | hantro_v4l2.c | 340 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt() 345 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt() 350 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt() 355 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt() 358 } else if (!pix_mp->plane_fmt[0].sizeimage) { in hantro_try_fmt() 364 pix_mp->plane_fmt[0].sizeimage = fmt->header_size + in hantro_try_fmt() 799 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup() 806 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup() 818 sz = pixfmt->plane_fmt[i].sizeimage; in hantro_buf_plane_check() 852 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
|
/linux-6.12.1/drivers/media/platform/chips-media/coda/ |
D | imx-vdoa.c | 88 unsigned int sizeimage; member 260 src_q_data->sizeimage = in vdoa_context_configure() 270 dst_q_data->sizeimage = dst_q_data->bytesperline * height; in vdoa_context_configure() 275 dst_q_data->sizeimage = in vdoa_context_configure()
|