1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct vb2_plane</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-struct-vb2-mem-ops.html" title="struct vb2_mem_ops"><link rel="next" href="API-enum-vb2-io-modes.html" title="enum vb2_io_modes"></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_plane</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-vb2-mem-ops.html">Prev</a> </td><th width="60%" align="center">Video2Linux devices</th><td width="20%" align="right"> <a accesskey="n" href="API-enum-vb2-io-modes.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-vb2-plane"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct vb2_plane — 2 plane information 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct vb2_plane { 5 void * mem_priv; 6 struct dma_buf * dbuf; 7 unsigned int dbuf_mapped; 8 unsigned int bytesused; 9 unsigned int length; 10 union m; 11 unsigned int data_offset; 12}; </pre></div><div class="refsect1"><a name="id-1.8.2.89.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mem_priv</span></dt><dd><p> 13 private data with this plane 14 </p></dd><dt><span class="term">dbuf</span></dt><dd><p> 15 dma_buf - shared buffer object 16 </p></dd><dt><span class="term">dbuf_mapped</span></dt><dd><p> 17 flag to show whether dbuf is mapped or not 18 </p></dd><dt><span class="term">bytesused</span></dt><dd><p> 19 number of bytes occupied by data in the plane (payload) 20 </p></dd><dt><span class="term">length</span></dt><dd><p> 21 size of this plane (NOT the payload) in bytes 22 </p></dd><dt><span class="term">m</span></dt><dd><p> 23 Union with memtype-specific data (<em class="parameter"><code>offset</code></em>, <em class="parameter"><code>userptr</code></em> or 24 <em class="parameter"><code>fd</code></em>). 25 </p></dd><dt><span class="term">data_offset</span></dt><dd><p> 26 offset in the plane to the start of data; usually 0, 27 unless there is a header in front of the data 28 Should contain enough information to be able to cover all the fields 29 of struct v4l2_plane at videodev2.h 30 </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-struct-vb2-mem-ops.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-enum-vb2-io-modes.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct vb2_mem_ops</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">enum vb2_io_modes</span></td></tr></table></div></body></html> 31