enum vb2_buffer_state — current video buffer state
enum vb2_buffer_state { VB2_BUF_STATE_DEQUEUED, VB2_BUF_STATE_PREPARING, VB2_BUF_STATE_PREPARED, VB2_BUF_STATE_QUEUED, VB2_BUF_STATE_REQUEUEING, VB2_BUF_STATE_ACTIVE, VB2_BUF_STATE_DONE, VB2_BUF_STATE_ERROR };
buffer under userspace control
buffer is being prepared in videobuf
buffer prepared in videobuf and by the driver
buffer queued in videobuf, but not in driver
re-queue a buffer to the driver
buffer queued in driver and possibly used in a hardware operation
buffer returned from driver to videobuf, but not yet dequeued to userspace
same as above, but the operation on the buffer has ended with an error, which will be reported to the userspace when it is dequeued