Home
last modified time | relevance | path

Searched refs:bytesperline (Results 1 – 25 of 221) sorted by relevance

123456789

/drivers/media/platform/coda/
Dimx-vdoa.c87 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 …]
/drivers/gpu/ipu-v3/
Dipu-cpmem.c588 #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 …]
/drivers/media/platform/qcom/camss/
Dcamss-video.c305 u32 bytesperline; in video_mbus_to_pix_mp() local
312 bytesperline = pix->width / f->hsub[i].numerator * in video_mbus_to_pix_mp()
314 bytesperline = ALIGN(bytesperline, alignment); in video_mbus_to_pix_mp()
315 pix->plane_fmt[i].bytesperline = bytesperline; in video_mbus_to_pix_mp()
318 bytesperline; in video_mbus_to_pix_mp()
427 format->plane_fmt[0].bytesperline * in video_buf_init()
689 u32 bytesperline[3] = { 0 }; in __video_try_fmt() local
700 bytesperline[i] = clamp_t(u32, p->bytesperline, in __video_try_fmt()
703 bytesperline[i], in __video_try_fmt()
704 bytesperline[i] * CAMSS_FRAME_MAX_HEIGHT_PIX); in __video_try_fmt()
[all …]
/drivers/media/usb/stk1160/
Dstk1160-video.c103 int bytesperline = dev->width * 2; in stk1160_copy_video() local
123 linesdone = buf->pos / bytesperline; in stk1160_copy_video()
124 lineoff = buf->pos % bytesperline; /* offset in current line */ in stk1160_copy_video()
127 dst += bytesperline; in stk1160_copy_video()
130 dst += linesdone * bytesperline * 2 + lineoff; in stk1160_copy_video()
133 if (remain < (bytesperline - lineoff)) in stk1160_copy_video()
136 lencopy = bytesperline - lineoff; in stk1160_copy_video()
172 dst += lencopy + bytesperline; in stk1160_copy_video()
176 if (remain < bytesperline) in stk1160_copy_video()
179 lencopy = bytesperline; in stk1160_copy_video()
/drivers/media/usb/gspca/gl860/
Dgl860.c225 .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 …]
/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c108 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()
/drivers/media/usb/gspca/
Dov534_9.c56 .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 …]
Dsn9c20x.c166 .bytesperline = 160,
171 .bytesperline = 160,
176 .bytesperline = 160,
181 .bytesperline = 320,
186 .bytesperline = 320,
191 .bytesperline = 320,
196 .bytesperline = 640,
201 .bytesperline = 640,
206 .bytesperline = 640,
214 .bytesperline = 160,
[all …]
Dvicam.c44 .bytesperline = 256,
49 .bytesperline = 256,
53 .bytesperline = 256,
58 .bytesperline = 512,
63 .bytesperline = 512,
Dspca505.c29 .bytesperline = 160,
34 .bytesperline = 176,
39 .bytesperline = 320,
44 .bytesperline = 352,
49 .bytesperline = 640,
Dkinect.c67 .bytesperline = 640 * 10 / 8,
75 .bytesperline = 640,
80 .bytesperline = 640 * 2,
85 .bytesperline = 1280,
90 .bytesperline = 640 * 10 / 8,
95 .bytesperline = 1280 * 10 / 8,
Dov519.c240 .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 …]
Dspca561.c46 .bytesperline = 160,
51 .bytesperline = 176,
56 .bytesperline = 320,
61 .bytesperline = 352,
69 .bytesperline = 160,
74 .bytesperline = 176,
79 .bytesperline = 320,
84 .bytesperline = 352,
Dspca508.c33 .bytesperline = 160,
38 .bytesperline = 176,
43 .bytesperline = 320,
48 .bytesperline = 352,
Dsonixb.c121 .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,
Dsunplus.c46 .bytesperline = 320,
51 .bytesperline = 640,
59 .bytesperline = 320,
64 .bytesperline = 464,
72 .bytesperline = 176,
77 .bytesperline = 320,
82 .bytesperline = 352,
87 .bytesperline = 640,
/drivers/media/platform/vsp1/
Dvsp1_rpf.c74 pstride = format->plane_fmt[0].bytesperline in rpf_configure_stream()
77 pstride |= format->plane_fmt[1].bytesperline in rpf_configure_stream()
216 offset_y = format->plane_fmt[0].bytesperline; in vsp1_rpf_configure_autofld()
217 offset_c = format->plane_fmt[1].bytesperline; in vsp1_rpf_configure_autofld()
290 mem.addr[0] += crop.top * format->plane_fmt[0].bytesperline in rpf_configure_partition()
294 unsigned int bpl = format->plane_fmt[1].bytesperline; in rpf_configure_partition()
/drivers/media/pci/cobalt/
Dcobalt-v4l2.c715 pix->bytesperline = s->stride; in cobalt_g_fmt_vid_cap()
728 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_g_fmt_vid_cap()
772 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_cap()
777 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()
786 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_cap()
806 s->stride = pix->bytesperline; in cobalt_s_fmt_vid_cap()
851 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out()
856 pix->bytesperline = max(pix->bytesperline & ~0x3, in cobalt_try_fmt_vid_out()
861 pix->sizeimage = pix->bytesperline * pix->height; in cobalt_try_fmt_vid_out()
[all …]
/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec.c581 q_data->bytesperline[0] = 0; in mtk_vcodec_dec_set_default_params()
600 q_data->bytesperline[0] = q_data->coded_width; in mtk_vcodec_dec_set_default_params()
602 q_data->bytesperline[1] = q_data->coded_width; in mtk_vcodec_dec_set_default_params()
665 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt()
707 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt()
712 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt()
1011 q_data->bytesperline[0] = ctx->last_decoded_picinfo.buf_w; in vidioc_vdec_g_fmt()
1012 q_data->bytesperline[1] = ctx->last_decoded_picinfo.buf_w; in vidioc_vdec_g_fmt()
1032 pix_mp->plane_fmt[0].bytesperline = q_data->bytesperline[0]; in vidioc_vdec_g_fmt()
1034 pix_mp->plane_fmt[1].bytesperline = q_data->bytesperline[1]; in vidioc_vdec_g_fmt()
[all …]
Dmtk_vcodec_enc.c272 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt()
322 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt()
329 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt()
331 pix_fmt_mp->plane_fmt[2].bytesperline = 0; in vidioc_try_fmt()
337 pix_fmt_mp->plane_fmt[1].bytesperline = in vidioc_try_fmt()
338 pix_fmt_mp->plane_fmt[2].bytesperline = in vidioc_try_fmt()
441 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_cap()
511 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_out()
539 pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; in vidioc_venc_g_fmt()
1212 q_data->bytesperline[0] = q_data->coded_width; in mtk_vcodec_enc_set_default_params()
[all …]
/drivers/media/platform/imx-jpeg/
Dmxc-jpeg.c830 desc->line_pitch = q_data_cap->bytesperline[0]; in mxc_jpeg_config_dec_desc()
1159 tmp_q.bytesperline[i] = q_data->bytesperline[i]; in mxc_jpeg_queue_setup()
1303 q->bytesperline[0] = 0; in mxc_jpeg_bytesperline()
1304 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1310 q->bytesperline[0] = q->w * DIV_ROUND_UP(precision, 8); in mxc_jpeg_bytesperline()
1311 q->bytesperline[1] = q->bytesperline[0]; in mxc_jpeg_bytesperline()
1313 q->bytesperline[0] = q->w * DIV_ROUND_UP(precision, 8) * 2; in mxc_jpeg_bytesperline()
1314 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
1316 q->bytesperline[0] = q->w * DIV_ROUND_UP(precision, 8) * q->fmt->nc; in mxc_jpeg_bytesperline()
1317 q->bytesperline[1] = 0; in mxc_jpeg_bytesperline()
[all …]
/drivers/media/platform/mtk-jpeg/
Dmtk_jpeg_enc_hw.c96 u32 bytesperline = ctx->out_q.pix_mp.plane_fmt[0].bytesperline; in mtk_jpeg_set_enc_params() local
122 mem_stride = bytesperline; in mtk_jpeg_set_enc_params()
/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c335 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 …]
/drivers/media/usb/au0828/
Dau0828-video.c316 int bytesperline = dev->width << 1; /* Assumes 16-bit depth @@@@ */ in au0828_copy_video() local
331 fieldstart = outp + bytesperline; in au0828_copy_video()
333 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
334 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
335 offset = linesdone * bytesperline * 2 + currlinedone; in au0828_copy_video()
337 lencopy = bytesperline - currlinedone; in au0828_copy_video()
354 startwrite += lencopy + bytesperline; in au0828_copy_video()
356 if (bytesperline > remain) in au0828_copy_video()
359 lencopy = bytesperline; in au0828_copy_video()
419 int bytesperline; in au0828_copy_vbi() local
[all …]
/drivers/media/common/saa7146/
Dsaa7146_video.c498 if (vv->ov_fb.fmt.bytesperline < vv->ov_fb.fmt.width) { in vidioc_s_fbuf()
499 vv->ov_fb.fmt.bytesperline = vv->ov_fb.fmt.width * fmt->depth / 8; in vidioc_s_fbuf()
500 DEB_D("setting bytesperline to %d\n", vv->ov_fb.fmt.bytesperline); in vidioc_s_fbuf()
663 if (f->fmt.pix.bytesperline < calc_bpl) in vidioc_try_fmt_vid_cap()
664 f->fmt.pix.bytesperline = calc_bpl; in vidioc_try_fmt_vid_cap()
666 if (f->fmt.pix.bytesperline > (2 * PAGE_SIZE * fmt->depth) / 8) /* arbitrary constraint */ in vidioc_try_fmt_vid_cap()
667 f->fmt.pix.bytesperline = calc_bpl; in vidioc_try_fmt_vid_cap()
669 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; in vidioc_try_fmt_vid_cap()
672 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in vidioc_try_fmt_vid_cap()
1069 buf->vb.bytesperline != vv->video_fmt.bytesperline || in buffer_prepare()
[all …]

123456789