Skip to content

v4l2, why need VIDIOC_DQBUF 2 times to get the latest frame #1297

Open
@dodoma

Description

@dodoma

hello, I have a raspberry pi 2 mode b+

I want to take a still image from camera through v4l2 api,
This is my code http://paste.ubuntu.com/15099128/,
my question is why do I need ioctl VIDIOC_QBUF and VIDIOC_DQBUF 2 times to get the latest frame?
Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions