Lines Matching full:video
3 * uvc_v4l2.c -- USB Video Class Gadget driver
149 struct uvc_video *video = &uvc->video; in find_closest_frame_by_size() local
184 uvcg_dbg(&video->uvc->func, "Unsupported size %ux%u\n", rw, rh); in find_closest_frame_by_size()
233 struct uvc_video *video = &uvc->video; in uvc_v4l2_get_format() local
235 fmt->fmt.pix.pixelformat = video->fcc; in uvc_v4l2_get_format()
236 fmt->fmt.pix.width = video->width; in uvc_v4l2_get_format()
237 fmt->fmt.pix.height = video->height; in uvc_v4l2_get_format()
239 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; in uvc_v4l2_get_format()
240 fmt->fmt.pix.sizeimage = video->imagesize; in uvc_v4l2_get_format()
252 struct uvc_video *video = &uvc->video; in uvc_v4l2_try_format() local
258 if (fmt->type != video->queue.queue.type) in uvc_v4l2_try_format()
310 struct uvc_video *video = &uvc->video; in uvc_v4l2_set_format() local
317 video->fcc = fmt->fmt.pix.pixelformat; in uvc_v4l2_set_format()
318 video->bpp = fmt->fmt.pix.bytesperline * 8 / video->width; in uvc_v4l2_set_format()
319 video->width = fmt->fmt.pix.width; in uvc_v4l2_set_format()
320 video->height = fmt->fmt.pix.height; in uvc_v4l2_set_format()
321 video->imagesize = fmt->fmt.pix.sizeimage; in uvc_v4l2_set_format()
331 struct uvc_video *video = &uvc->video; in uvc_v4l2_g_parm() local
338 timeperframe.numerator = video->interval; in uvc_v4l2_g_parm()
345 video->interval); in uvc_v4l2_g_parm()
358 struct uvc_video *video = &uvc->video; in uvc_v4l2_s_parm() local
366 video->interval = v4l2_fraction_to_interval(timeperframe.numerator, in uvc_v4l2_s_parm()
371 video->interval); in uvc_v4l2_s_parm()
471 struct uvc_video *video = &uvc->video; in uvc_v4l2_reqbufs() local
473 if (b->type != video->queue.queue.type) in uvc_v4l2_reqbufs()
476 return uvcg_alloc_buffers(&video->queue, b); in uvc_v4l2_reqbufs()
484 struct uvc_video *video = &uvc->video; in uvc_v4l2_querybuf() local
486 return uvcg_query_buffer(&video->queue, b); in uvc_v4l2_querybuf()
494 struct uvc_video *video = &uvc->video; in uvc_v4l2_qbuf() local
497 ret = uvcg_queue_buffer(&video->queue, b); in uvc_v4l2_qbuf()
502 queue_work(video->async_wq, &video->pump); in uvc_v4l2_qbuf()
512 struct uvc_video *video = &uvc->video; in uvc_v4l2_dqbuf() local
514 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK); in uvc_v4l2_dqbuf()
522 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamon() local
525 if (type != video->queue.queue.type) in uvc_v4l2_streamon()
528 /* Enable UVC video. */ in uvc_v4l2_streamon()
529 ret = uvcg_video_enable(video); in uvc_v4l2_streamon()
535 * userspace is ready to provide video frames. in uvc_v4l2_streamon()
548 struct uvc_video *video = &uvc->video; in uvc_v4l2_streamoff() local
551 if (type != video->queue.queue.type) in uvc_v4l2_streamoff()
554 ret = uvcg_video_disable(video); in uvc_v4l2_streamoff()
596 uvcg_video_disable(&uvc->video); in uvc_v4l2_disable()
597 uvcg_free_buffers(&uvc->video.queue); in uvc_v4l2_disable()
677 handle->device = &uvc->video; in uvc_v4l2_open()
689 struct uvc_video *video = handle->device; in uvc_v4l2_release() local
691 mutex_lock(&video->mutex); in uvc_v4l2_release()
694 mutex_unlock(&video->mutex); in uvc_v4l2_release()
710 return uvcg_queue_mmap(&uvc->video.queue, vma); in uvc_v4l2_mmap()
719 return uvcg_queue_poll(&uvc->video.queue, file, wait); in uvc_v4l2_poll()
730 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff); in uvcg_v4l2_get_unmapped_area()