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