diff options
Diffstat (limited to 'Documentation/DocBook/media/v4l/vidioc-expbuf.xml')
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-expbuf.xml | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Documentation/DocBook/media/v4l/vidioc-expbuf.xml b/Documentation/DocBook/media/v4l/vidioc-expbuf.xml index 72dfbd20a802..e287c8fc803b 100644 --- a/Documentation/DocBook/media/v4l/vidioc-expbuf.xml +++ b/Documentation/DocBook/media/v4l/vidioc-expbuf.xml | |||
@@ -83,15 +83,14 @@ descriptor. The application may pass it to other DMABUF-aware devices. Refer to | |||
83 | <link linkend="dmabuf">DMABUF importing</link> for details about importing | 83 | <link linkend="dmabuf">DMABUF importing</link> for details about importing |
84 | DMABUF files into V4L2 nodes. It is recommended to close a DMABUF file when it | 84 | DMABUF files into V4L2 nodes. It is recommended to close a DMABUF file when it |
85 | is no longer used to allow the associated memory to be reclaimed. </para> | 85 | is no longer used to allow the associated memory to be reclaimed. </para> |
86 | |||
87 | </refsect1> | 86 | </refsect1> |
87 | |||
88 | <refsect1> | 88 | <refsect1> |
89 | <section> | 89 | <title>Examples</title> |
90 | <title>Examples</title> | ||
91 | 90 | ||
92 | <example> | 91 | <example> |
93 | <title>Exporting a buffer.</title> | 92 | <title>Exporting a buffer.</title> |
94 | <programlisting> | 93 | <programlisting> |
95 | int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd) | 94 | int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd) |
96 | { | 95 | { |
97 | &v4l2-exportbuffer; expbuf; | 96 | &v4l2-exportbuffer; expbuf; |
@@ -108,12 +107,12 @@ int buffer_export(int v4lfd, &v4l2-buf-type; bt, int index, int *dmafd) | |||
108 | 107 | ||
109 | return 0; | 108 | return 0; |
110 | } | 109 | } |
111 | </programlisting> | 110 | </programlisting> |
112 | </example> | 111 | </example> |
113 | 112 | ||
114 | <example> | 113 | <example> |
115 | <title>Exporting a buffer using the multi-planar API.</title> | 114 | <title>Exporting a buffer using the multi-planar API.</title> |
116 | <programlisting> | 115 | <programlisting> |
117 | int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index, | 116 | int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index, |
118 | int dmafd[], int n_planes) | 117 | int dmafd[], int n_planes) |
119 | { | 118 | { |
@@ -137,12 +136,9 @@ int buffer_export_mp(int v4lfd, &v4l2-buf-type; bt, int index, | |||
137 | 136 | ||
138 | return 0; | 137 | return 0; |
139 | } | 138 | } |
140 | </programlisting> | 139 | </programlisting> |
141 | </example> | 140 | </example> |
142 | </section> | ||
143 | </refsect1> | ||
144 | 141 | ||
145 | <refsect1> | ||
146 | <table pgwide="1" frame="none" id="v4l2-exportbuffer"> | 142 | <table pgwide="1" frame="none" id="v4l2-exportbuffer"> |
147 | <title>struct <structname>v4l2_exportbuffer</structname></title> | 143 | <title>struct <structname>v4l2_exportbuffer</structname></title> |
148 | <tgroup cols="3"> | 144 | <tgroup cols="3"> |