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

#include <videodev2.h>

Data Fields

__u32 bytesused
 
__u32 length
 
union {
   __u32   mem_offset
 
   unsigned long   userptr
 
m
 
__u32 data_offset
 
__u32 reserved [11]
 

Detailed Description

struct v4l2_plane - plane info for multi-planar buffers : number of bytes occupied by data in the plane (payload) : size of this plane (NOT the payload) in bytes : when memory in the associated struct v4l2_buffer is V4L2_MEMORY_MMAP, equals the offset from the start of the device memory for this plane (or is a "cookie" that should be passed to mmap() called on the video node) : when memory is V4L2_MEMORY_USERPTR, a userspace pointer pointing to this plane : offset in the plane to the start of data; usually 0, unless there is a header in front of the data

Multi-planar buffers consist of one or more planes, e.g. an YCbCr buffer with two planes can have one plane for Y, and another for interleaved CbCr components. Each plane can reside in a separate memory buffer, or even in a completely separate memory node (e.g. in embedded devices).

Definition at line 612 of file videodev2.h.

Field Documentation

__u32 bytesused

Definition at line 613 of file videodev2.h.

__u32 data_offset

Definition at line 619 of file videodev2.h.

__u32 length

Definition at line 614 of file videodev2.h.

union { ... } m
__u32 mem_offset

Definition at line 616 of file videodev2.h.

__u32 reserved[11]

Definition at line 620 of file videodev2.h.

unsigned long userptr

Definition at line 617 of file videodev2.h.


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