Home
last modified time | relevance | path

Searched refs:fbuf (Results 1 – 19 of 19) sorted by relevance

/drivers/media/video/omap/
Domap_voutlib.c44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) in omap_vout_default_crop() argument
46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop()
47 pix->width : fbuf->fmt.width; in omap_vout_default_crop()
48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
49 pix->height : fbuf->fmt.height; in omap_vout_default_crop()
63 int omap_vout_try_window(struct v4l2_framebuffer *fbuf, in omap_vout_try_window() argument
82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window()
83 try_win.width : fbuf->fmt.width; in omap_vout_try_window()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; in omap_vout_try_window()
[all …]
Domap_voutlib.h16 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
20 struct v4l2_framebuffer *fbuf,
23 int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
27 struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
31 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
Domap_vout.c1093 vout->fbuf.fmt.height = timing->y_res; in vidioc_try_fmt_vid_out()
1094 vout->fbuf.fmt.width = timing->x_res; in vidioc_try_fmt_vid_out()
1135 vout->fbuf.fmt.height = timing->x_res; in vidioc_s_fmt_vid_out()
1136 vout->fbuf.fmt.width = timing->y_res; in vidioc_s_fmt_vid_out()
1138 vout->fbuf.fmt.height = timing->y_res; in vidioc_s_fmt_vid_out()
1139 vout->fbuf.fmt.width = timing->x_res; in vidioc_s_fmt_vid_out()
1158 omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); in vidioc_s_fmt_vid_out()
1186 ret = omap_vout_try_window(&vout->fbuf, win); in vidioc_try_fmt_vid_overlay()
1211 ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); in vidioc_s_fmt_vid_overlay()
1278 omap_vout_default_crop(&vout->pix, &vout->fbuf, &cropcap->defrect); in vidioc_cropcap()
[all …]
Domap_voutdef.h147 struct v4l2_framebuffer fbuf; member
/drivers/media/video/pwc/
Dpwc-uncompress.c36 int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) in pwc_decompress() argument
43 image = vb2_plane_vaddr(&fbuf->vb, 0); in pwc_decompress()
45 yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ in pwc_decompress()
58 vb2_set_plane_payload(&fbuf->vb, 0, in pwc_decompress()
63 vb2_set_plane_payload(&fbuf->vb, 0, in pwc_decompress()
Dpwc-if.c198 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_frame_complete() local
205 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
230 if (fbuf->filled == 4) in pwc_frame_complete()
233 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
245 if (fbuf->filled < pdev->frame_total_size) { in pwc_frame_complete()
247 " discarded.\n", fbuf->filled); in pwc_frame_complete()
249 fbuf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in pwc_frame_complete()
250 fbuf->vb.v4l2_buf.sequence = pdev->vframe_count; in pwc_frame_complete()
251 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in pwc_frame_complete()
322 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_isoc_handler() local
[all …]
Dpwc.h393 int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf);
/drivers/staging/line6/
Dcapture.c143 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument
164 line6pcm->pos_in_done * bytes_per_frame, fbuf, in line6_capture_copy()
166 memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, in line6_capture_copy()
176 line6pcm->pos_in_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
232 char *fbuf; in audio_in_callback() local
241 fbuf = urb->transfer_buffer + fin->offset; in audio_in_callback()
253 line6pcm->prev_fbuf = fbuf; in audio_in_callback()
261 line6_capture_copy(line6pcm, fbuf, fsize); in audio_in_callback()
Dcapture.h22 extern void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf,
/drivers/media/video/
Dvideobuf-dma-sg.c455 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
496 if (NULL == fbuf) in __videobuf_iolock()
504 bus = (dma_addr_t)(unsigned long)fbuf->base + vb->boff; in __videobuf_iolock()
Dvideobuf-vmalloc.c159 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
Dvideobuf-dma-contig.c213 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
Dvideobuf-core.c120 struct v4l2_framebuffer *fbuf) in videobuf_iolock() argument
125 return CALL(q, iolock, q, vb, fbuf); in videobuf_iolock()
/drivers/media/video/bt8xx/
Dbttv-driver.c1784 if (0 != (rc = videobuf_iolock(q,&buf->vb,&btv->fbuf))) in bttv_prepare_buffer()
2342 if (NULL != btv->fbuf.base) in setup_window_lock()
2343 n = btcx_screen_clips(btv->fbuf.fmt.width, btv->fbuf.fmt.height, in setup_window_lock()
2699 *fb = btv->fbuf; in bttv_g_fbuf()
2715 if (unlikely(!btv->fbuf.base)) { in bttv_overlay()
2778 btv->fbuf.base = fb->base; in bttv_s_fbuf()
2779 btv->fbuf.fmt.width = fb->fmt.width; in bttv_s_fbuf()
2780 btv->fbuf.fmt.height = fb->fmt.height; in bttv_s_fbuf()
2782 btv->fbuf.fmt.bytesperline = fb->fmt.bytesperline; in bttv_s_fbuf()
2784 btv->fbuf.fmt.bytesperline = btv->fbuf.fmt.width*fmt->depth/8; in bttv_s_fbuf()
Dbttv-risc.c276 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay()
277 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay()
282 line++, addr += btv->fbuf.fmt.bytesperline) { in bttv_risc_overlay()
Dbttvp.h424 struct v4l2_framebuffer fbuf; member
/drivers/media/video/usbvision/
Dusbvision-core.c1794 usbvision->fbuf = usbvision_rvmalloc(usbvision->fbuf_size); in usbvision_frames_alloc()
1795 if (usbvision->fbuf) in usbvision_frames_alloc()
1808 usbvision->frame[i].data = usbvision->fbuf + in usbvision_frames_alloc()
1833 if (usbvision->fbuf != NULL) { in usbvision_frames_free()
1834 usbvision_rvfree(usbvision->fbuf, usbvision->fbuf_size); in usbvision_frames_free()
1835 usbvision->fbuf = NULL; in usbvision_frames_free()
Dusbvision.h414 char *fbuf; /* Videodev buffer area for mmap*/ member
/drivers/media/dvb/ngene/
Dngene.h713 struct v4l2_framebuffer fbuf; member