• Home
  • Raw
  • Download

Lines Matching full:video

3  *	uvc_v4l2.c  --  USB Video Class Gadget driver
86 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
88 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
89 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
90 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
92 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
93 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
105 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
126 video->fcc = format->fcc; in uvc_v4l2_set_format()
127 video->bpp = format->bpp; in uvc_v4l2_set_format()
128 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
129 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
130 video->imagesize = imagesize; in uvc_v4l2_set_format()
146 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
148 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
151 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
159 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
161 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
169 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
172 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
176 return uvcg_video_pump(video); in uvc_v4l2_qbuf()
184 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
186 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
194 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
197 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
200 /* Enable UVC video. */ in uvc_v4l2_streamon()
201 ret = uvcg_video_enable(video, 1); in uvc_v4l2_streamon()
207 * userspace is ready to provide video frames. in uvc_v4l2_streamon()
220 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
222 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
225 return uvcg_video_enable(video, 0); in uvc_v4l2_streamoff()
294 handle->device = &uvc->video; in uvc_v4l2_open()
307 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
311 mutex_lock(&video->mutex); in uvc_v4l2_release()
312 uvcg_video_enable(video, 0); in uvc_v4l2_release()
313 uvcg_free_buffers(&video->queue); in uvc_v4l2_release()
314 mutex_unlock(&video->mutex); in uvc_v4l2_release()
330 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
339 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
350 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()