Lines Matching refs:capture
68 s->capture.done = s->output.done = 0;
69 s->capture.name = "capture";
85 s->capture.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
91 s->capture.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
118 ret = ff_v4l2_context_get_format(&s->capture, 1);
120 av_log(log_ctx, AV_LOG_DEBUG, "v4l2 capture format not supported\n");
150 cfmt = s->capture.format;
151 av_log(log_ctx, AV_LOG_INFO, "requesting formats: output=%s capture=%s\n",
165 ret = ff_v4l2_context_set_format(&s->capture);
167 av_log(log_ctx, AV_LOG_ERROR, "can't to set v4l2 capture format\n");
179 ret = ff_v4l2_context_init(&s->capture);
181 av_log(log_ctx, AV_LOG_ERROR, "no v4l2 capture context's buffers\n");
212 ret = ff_v4l2_context_set_status(&s->capture, VIDIOC_STREAMOFF);
214 av_log(log_ctx, AV_LOG_ERROR, "capture VIDIOC_STREAMOFF\n");
216 /* 2. unmap the capture buffers (v4l2 and ffmpeg):
224 ff_v4l2_context_release(&s->capture);
226 /* 3. get the new capture format */
227 ret = ff_v4l2_context_get_format(&s->capture, 0);
229 av_log(log_ctx, AV_LOG_ERROR, "query the new capture format\n");
233 /* 4. set the capture format */
234 ret = ff_v4l2_context_set_format(&s->capture);
236 av_log(log_ctx, AV_LOG_ERROR, "setting capture format\n");
251 ff_v4l2_context_release(&s->capture);
276 ret = ff_v4l2_context_set_status(&s->capture, VIDIOC_STREAMOFF);
278 av_log(s->avctx, AV_LOG_ERROR, "VIDIOC_STREAMOFF %s\n", s->capture.name);
345 priv->context->capture.num_buffers = priv->num_capture_buffers;