Lines Matching defs:capture
40 V4L2Context *const capture = &s->capture;
54 if (capture->streamon)
57 /* 2. get the capture format */
58 capture->format.type = capture->type;
59 ret = ioctl(s->fd, VIDIOC_G_FMT, &capture->format);
66 avctx->pix_fmt = ff_v4l2_format_v4l2_to_avfmt(capture->format.fmt.pix_mp.pixelformat, AV_CODEC_ID_RAWVIDEO);
67 capture->av_pix_fmt = avctx->pix_fmt;
81 capture->height = selection.r.height;
82 capture->width = selection.r.width;
86 /* 4. init the capture context now that we have the capture format */
87 if (!capture->buffers) {
88 ret = ff_v4l2_context_init(capture);
90 av_log(avctx, AV_LOG_ERROR, "can't request capture buffers\n");
95 /* 5. start the capture process */
96 ret = ff_v4l2_context_set_status(capture, VIDIOC_STREAMON);
98 av_log(avctx, AV_LOG_DEBUG, "VIDIOC_STREAMON, on capture context\n");
139 V4L2Context *const capture = &s->capture;
147 return ff_v4l2_context_dequeue_frame(capture, frame, 0);
175 return ff_v4l2_context_dequeue_frame(capture, frame, -1);
183 V4L2Context *capture, *output;
192 capture = &s->capture;
199 output->height = capture->height = avctx->coded_height;
200 output->width = capture->width = avctx->coded_width;
205 capture->av_codec_id = AV_CODEC_ID_RAWVIDEO;
206 capture->av_pix_fmt = avctx->pix_fmt;
228 { "num_capture_buffers", "Number of buffers in the capture context",