Home
last modified time | relevance | path

Searched refs:sizeimage (Results 1 – 25 of 237) sorted by relevance

12345678910

/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec.c167 q_data->sizeimage[0] = DFT_CFG_WIDTH * DFT_CFG_HEIGHT; in mtk_vcodec_dec_set_default_params()
179 q_data->sizeimage[0] = q_data->coded_width * q_data->coded_height; in mtk_vcodec_dec_set_default_params()
181 q_data->sizeimage[1] = q_data->sizeimage[0] / 2; in mtk_vcodec_dec_set_default_params()
311 pix_fmt_mp->plane_fmt[0].sizeimage = in vidioc_try_fmt()
316 pix_fmt_mp->plane_fmt[1].sizeimage = in vidioc_try_fmt()
359 if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) { in vidioc_try_fmt_vid_out_mplane()
494 q_data->sizeimage[0] = pix_mp->plane_fmt[0].sizeimage; in vidioc_vdec_s_fmt()
538 ctx->q_data[MTK_Q_DATA_DST].sizeimage[0] = in vidioc_vdec_s_fmt()
544 ctx->q_data[MTK_Q_DATA_DST].sizeimage[0] = in vidioc_vdec_s_fmt()
548 ctx->q_data[MTK_Q_DATA_DST].sizeimage[1] = in vidioc_vdec_s_fmt()
[all …]
/linux-6.6.21/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c107 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.6.21/drivers/media/usb/gspca/gl860/
Dgl860.c226 .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.6.21/drivers/media/platform/qcom/camss/
Dcamss-video.c318 pix->plane_fmt[i].sizeimage = pix->height / in video_mbus_to_pix_mp()
392 if (sizes[i] < format->plane_fmt[i].sizeimage) in video_queue_setup()
401 sizes[i] = format->plane_fmt[i].sizeimage; in video_queue_setup()
445 if (format->plane_fmt[i].sizeimage > vb2_plane_size(vb, i)) in video_buf_prepare()
448 vb2_set_plane_payload(vb, i, format->plane_fmt[i].sizeimage); in video_buf_prepare()
703 u32 sizeimage[3] = { 0 }; in __video_try_fmt() local
715 sizeimage[i] = clamp_t(u32, p->sizeimage, in __video_try_fmt()
742 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / in __video_try_fmt()
759 p->sizeimage = clamp_t(u32, p->sizeimage, in __video_try_fmt()
762 lines = p->sizeimage / p->bytesperline; in __video_try_fmt()
[all …]
/linux-6.6.21/drivers/media/usb/gspca/
Dvicam.c45 .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()
Dov534_9.c57 .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 …]
Dspca505.c30 .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,
Dsn9c20x.c170 .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 …]
Dkinect.c68 .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,
Dspca561.c47 .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,
Dov519.c241 .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 …]
Dsonixb.c122 .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 …]
Dspca508.c34 .sizeimage = 160 * 120 * 3 / 2,
39 .sizeimage = 176 * 144 * 3 / 2,
44 .sizeimage = 320 * 240 * 3 / 2,
49 .sizeimage = 352 * 288 * 3 / 2,
Dtouptek.c162 .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()
Dsq905.c84 .sizeimage = 160 * 120,
89 .sizeimage = 320 * 240,
94 .sizeimage = 640 * 480,
217 frame_sz = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].sizeimage in sq905_dostream()
/linux-6.6.21/drivers/media/platform/amphion/
Dvpu_v4l2.c192 fmt->sizeimage[i] = vpu_helper_get_plane_size(fmt->pixfmt, in vpu_calc_fmt_sizeimage()
199 fmt->sizeimage[i] = max_t(u32, fmt->sizeimage[i], PAGE_SIZE); in vpu_calc_fmt_sizeimage()
201 fmt->sizeimage[i] = clamp_val(fmt->sizeimage[i], SZ_128K, SZ_8M); in vpu_calc_fmt_sizeimage()
218 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size()
220 return fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size()
222 size = fmt->sizeimage[plane_no]; in vpu_get_fmt_plane_size()
224 size += fmt->sizeimage[i]; in vpu_get_fmt_plane_size()
250 if ((fmt->flags & V4L2_FMT_FLAG_COMPRESSED) && pixmp->plane_fmt[0].sizeimage) in vpu_try_fmt_common()
251 fmt->sizeimage[0] = clamp_val(pixmp->plane_fmt[0].sizeimage, SZ_128K, SZ_8M); in vpu_try_fmt_common()
262 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(fmt, i); in vpu_try_fmt_common()
[all …]
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/
Dmtk_vcodec_enc.c335 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.6.21/drivers/media/test-drivers/visl/
Dvisl-video.c72 "plane[%d]: sizeimage: %d\n", i, pix_mp->plane_fmt[i].sizeimage); in visl_print_fmt()
261 pix_mp->plane_fmt[0].sizeimage = pix_mp->width * pix_mp->height * 8; in visl_reset_coded_fmt()
411 if (pix_mp->plane_fmt[0].sizeimage == 0) in visl_try_fmt_vid_out()
412 pix_mp->plane_fmt[0].sizeimage = max(MIN_CODED_SZ, in visl_try_fmt_vid_out()
559 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in visl_queue_setup()
565 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in visl_queue_setup()
573 i, f->fmt.pix_mp.plane_fmt[i].sizeimage); in visl_queue_setup()
625 vb2_set_plane_payload(vb, 0, pix_fmt->sizeimage); in visl_buf_prepare()
628 if (plane_sz < pix_fmt->sizeimage) { in visl_buf_prepare()
630 plane_sz, pix_fmt->sizeimage); in visl_buf_prepare()
/linux-6.6.21/drivers/media/test-drivers/vimc/
Dvimc-capture.c104 format->sizeimage = format->bytesperline * format->height; in vimc_capture_try_fmt_vid_cap()
301 return sizes[0] < vcapture->format.sizeimage ? -EINVAL : 0; in vimc_capture_queue_setup()
304 sizes[0] = vcapture->format.sizeimage; in vimc_capture_queue_setup()
312 unsigned long size = vcapture->format.sizeimage; in vimc_capture_buffer_prepare()
387 memcpy(vbuf, frame, vcapture->format.sizeimage); in vimc_capture_process_frame()
391 vcapture->format.sizeimage); in vimc_capture_process_frame()
454 vcapture->format.sizeimage = vcapture->format.bytesperline * in vimc_capture_add()
/linux-6.6.21/drivers/media/platform/ti/davinci/
Dvpif_capture.c80 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()
525 common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; in vpif_update_std_info()
559 unsigned int hpitch, sizeimage; in vpif_calculate_offsets() local
575 sizeimage = common->fmt.fmt.pix.sizeimage; in vpif_calculate_offsets()
584 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets()
585 common->cbtm_off = sizeimage / 2 + hpitch; in vpif_calculate_offsets()
589 common->ybtm_off = sizeimage / 4; in vpif_calculate_offsets()
590 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets()
591 common->cbtm_off = common->ctop_off + sizeimage / 4; in vpif_calculate_offsets()
[all …]
Dvpif_display.c79 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()
481 common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; in vpif_update_resolution()
506 unsigned int hpitch, sizeimage; in vpif_calculate_offsets() local
517 sizeimage = common->fmt.fmt.pix.sizeimage; in vpif_calculate_offsets()
524 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets()
525 common->cbtm_off = sizeimage / 2 + hpitch; in vpif_calculate_offsets()
528 common->ybtm_off = sizeimage / 4; in vpif_calculate_offsets()
529 common->ctop_off = sizeimage / 2; in vpif_calculate_offsets()
530 common->cbtm_off = common->ctop_off + sizeimage / 4; in vpif_calculate_offsets()
[all …]
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c178 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.6.21/drivers/media/platform/verisilicon/
Dhantro_v4l2.c344 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
349 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
354 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
359 pix_mp->plane_fmt[0].sizeimage += in hantro_try_fmt()
362 } else if (!pix_mp->plane_fmt[0].sizeimage) { in hantro_try_fmt()
368 pix_mp->plane_fmt[0].sizeimage = fmt->header_size + in hantro_try_fmt()
820 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup()
827 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup()
839 sz = pixfmt->plane_fmt[i].sizeimage; in hantro_buf_plane_check()
873 vb2_set_plane_payload(vb, 0, pix_fmt->plane_fmt[0].sizeimage); in hantro_buf_prepare()
/linux-6.6.21/drivers/media/platform/chips-media/
Dimx-vdoa.c88 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()
/linux-6.6.21/drivers/media/platform/nxp/
Dmx2_emmaprp.c168 unsigned int sizeimage; member
446 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt()
492 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in vidioc_try_fmt()
558 q_data->sizeimage = q_data->width * q_data->height * 3 / 2; in vidioc_s_fmt()
560 q_data->sizeimage = q_data->width * q_data->height * 2; in vidioc_s_fmt()
656 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in emmaprp_buf_prepare()
660 (long)q_data->sizeimage); in emmaprp_buf_prepare()
664 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in emmaprp_buf_prepare()

12345678910