Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
vb2_buffer Struct Reference

#include <videobuf2-core.h>

Data Fields

struct v4l2_buffer v4l2_buf
 
struct v4l2_plane v4l2_planes [VIDEO_MAX_PLANES]
 
struct vb2_queuevb2_queue
 
unsigned int num_planes
 
enum vb2_buffer_state state
 
struct list_head queued_entry
 
struct list_head done_entry
 
struct vb2_plane planes [VIDEO_MAX_PLANES]
 

Detailed Description

struct vb2_buffer - represents a video buffer : struct v4l2_buffer associated with this buffer; can be read by the driver and relevant entries can be changed by the driver in case of CAPTURE types (such as timestamp) : struct v4l2_planes associated with this buffer; can be read by the driver and relevant entries can be changed by the driver in case of CAPTURE types (such as bytesused); NOTE that even for single-planar types, the v4l2_planes[0] struct should be used instead of v4l2_buf for filling bytesused - drivers should use the vb2_set_plane_payload() function for that : the queue to which this driver belongs : number of planes in the buffer on an internal driver queue : current buffer state; do not change : entry on the queued buffers list, which holds all buffers queued from userspace : entry on the list that stores all buffers ready to be dequeued to userspace : private per-plane information; do not change

Definition at line 152 of file videobuf2-core.h.

Field Documentation

struct list_head done_entry

Definition at line 164 of file videobuf2-core.h.

unsigned int num_planes

Definition at line 158 of file videobuf2-core.h.

Definition at line 166 of file videobuf2-core.h.

struct list_head queued_entry

Definition at line 163 of file videobuf2-core.h.

Definition at line 161 of file videobuf2-core.h.

struct v4l2_buffer v4l2_buf

Definition at line 153 of file videobuf2-core.h.

Definition at line 154 of file videobuf2-core.h.

Definition at line 156 of file videobuf2-core.h.


The documentation for this struct was generated from the following file: