Lines Matching defs:video

82 	struct uvc_video *video = &uvc->video;
84 fmt->fmt.pix.pixelformat = video->fcc;
85 fmt->fmt.pix.width = video->width;
86 fmt->fmt.pix.height = video->height;
88 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8;
89 fmt->fmt.pix.sizeimage = video->imagesize;
101 struct uvc_video *video = &uvc->video;
122 video->fcc = format->fcc;
123 video->bpp = format->bpp;
124 video->width = fmt->fmt.pix.width;
125 video->height = fmt->fmt.pix.height;
126 video->imagesize = imagesize;
142 struct uvc_video *video = &uvc->video;
144 if (b->type != video->queue.queue.type)
147 return uvcg_alloc_buffers(&video->queue, b);
155 struct uvc_video *video = &uvc->video;
157 return uvcg_query_buffer(&video->queue, b);
165 struct uvc_video *video = &uvc->video;
168 ret = uvcg_queue_buffer(&video->queue, b);
172 schedule_work(&video->pump);
182 struct uvc_video *video = &uvc->video;
184 return uvcg_dequeue_buffer(&video->queue, b, file->f_flags & O_NONBLOCK);
192 struct uvc_video *video = &uvc->video;
195 if (type != video->queue.queue.type)
198 /* Enable UVC video. */
199 ret = uvcg_video_enable(video, 1);
205 * userspace is ready to provide video frames.
218 struct uvc_video *video = &uvc->video;
220 if (type != video->queue.queue.type)
223 return uvcg_video_enable(video, 0);
256 uvcg_video_enable(&uvc->video, 0);
257 uvcg_free_buffers(&uvc->video.queue);
331 handle->device = &uvc->video;
343 struct uvc_video *video = handle->device;
345 mutex_lock(&video->mutex);
348 mutex_unlock(&video->mutex);
364 return uvcg_queue_mmap(&uvc->video.queue, vma);
373 return uvcg_queue_poll(&uvc->video.queue, file, wait);
384 return uvcg_queue_get_unmapped_area(&uvc->video.queue, pgoff);