1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct vb2_buffer</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="mediadev.html#id-1.8.2" title="Video2Linux devices"><link rel="prev" href="API-enum-vb2-buffer-state.html" title="enum vb2_buffer_state"><link rel="next" href="API-struct-vb2-ops.html" title="struct vb2_ops"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct vb2_buffer</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-enum-vb2-buffer-state.html">Prev</a> </td><th width="60%" align="center">Video2Linux devices</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-vb2-ops.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-vb2-buffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct vb2_buffer — 
2     represents a video buffer
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct vb2_buffer {
5  struct vb2_queue * vb2_queue;
6  unsigned int index;
7  unsigned int type;
8  unsigned int memory;
9  unsigned int num_planes;
10  struct vb2_plane planes[VB2_MAX_PLANES];
11};  </pre></div><div class="refsect1"><a name="id-1.8.2.92.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">vb2_queue</span></dt><dd><p>
12   the queue to which this driver belongs
13      </p></dd><dt><span class="term">index</span></dt><dd><p>
14   id number of the buffer
15      </p></dd><dt><span class="term">type</span></dt><dd><p>
16   buffer type
17      </p></dd><dt><span class="term">memory</span></dt><dd><p>
18   the method, in which the actual data is passed
19      </p></dd><dt><span class="term">num_planes</span></dt><dd><p>
20   number of planes in the buffer
21   on an internal driver queue
22      </p></dd><dt><span class="term">planes[VB2_MAX_PLANES]</span></dt><dd><p>
23   private per-plane information; do not change
24      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-enum-vb2-buffer-state.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="mediadev.html#id-1.8.2">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-vb2-ops.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">enum vb2_buffer_state</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct vb2_ops</span></td></tr></table></div></body></html>
25