This file is indexed.

/usr/share/doc/ffmpeg/api/structAVHWFramesContext.html is in ffmpeg-doc 7:3.4.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FFmpeg: AVHWFramesContext Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FFmpeg
   &#160;<span id="projectnumber">3.4.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">AVHWFramesContext Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This struct describes a set or pool of "hardware" frames (i.e.  
 <a href="structAVHWFramesContext.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="hwcontext_8h_source.html">libavutil/hwcontext.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a70e916d610148748f95147cde35ce7c9"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structAVClass.html">AVClass</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a70e916d610148748f95147cde35ce7c9">av_class</a></td></tr>
<tr class="memdesc:a70e916d610148748f95147cde35ce7c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A class for logging.  <a href="#a70e916d610148748f95147cde35ce7c9">More...</a><br /></td></tr>
<tr class="separator:a70e916d610148748f95147cde35ce7c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69e956e8d2d73d65d015c4ed895ec642"><td class="memItemLeft" align="right" valign="top"><a class="el" href="hwcontext_8h.html#a01b62f32bcd517164857e7b5f5359f85">AVHWFramesInternal</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a69e956e8d2d73d65d015c4ed895ec642">internal</a></td></tr>
<tr class="memdesc:a69e956e8d2d73d65d015c4ed895ec642"><td class="mdescLeft">&#160;</td><td class="mdescRight">Private data used internally by libavutil.  <a href="#a69e956e8d2d73d65d015c4ed895ec642">More...</a><br /></td></tr>
<tr class="separator:a69e956e8d2d73d65d015c4ed895ec642"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f3908bfadd569103b67ee4972ee7305"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVBufferRef.html">AVBufferRef</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a2f3908bfadd569103b67ee4972ee7305">device_ref</a></td></tr>
<tr class="memdesc:a2f3908bfadd569103b67ee4972ee7305"><td class="mdescLeft">&#160;</td><td class="mdescRight">A reference to the parent <a class="el" href="structAVHWDeviceContext.html" title="This struct aggregates all the (hardware/vendor-specific) &quot;high-level&quot; state, i.e. ">AVHWDeviceContext</a>.  <a href="#a2f3908bfadd569103b67ee4972ee7305">More...</a><br /></td></tr>
<tr class="separator:a2f3908bfadd569103b67ee4972ee7305"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9a7dbd0cbfcabc0b1529cb34cf53b6d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVHWDeviceContext.html">AVHWDeviceContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#ac9a7dbd0cbfcabc0b1529cb34cf53b6d">device_ctx</a></td></tr>
<tr class="memdesc:ac9a7dbd0cbfcabc0b1529cb34cf53b6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The parent <a class="el" href="structAVHWDeviceContext.html" title="This struct aggregates all the (hardware/vendor-specific) &quot;high-level&quot; state, i.e. ">AVHWDeviceContext</a>.  <a href="#ac9a7dbd0cbfcabc0b1529cb34cf53b6d">More...</a><br /></td></tr>
<tr class="separator:ac9a7dbd0cbfcabc0b1529cb34cf53b6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e38c3e4355321e23e0f4c7411cb8ee"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a54e38c3e4355321e23e0f4c7411cb8ee">hwctx</a></td></tr>
<tr class="memdesc:a54e38c3e4355321e23e0f4c7411cb8ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">The format-specific data, allocated and freed automatically along with this context.  <a href="#a54e38c3e4355321e23e0f4c7411cb8ee">More...</a><br /></td></tr>
<tr class="separator:a54e38c3e4355321e23e0f4c7411cb8ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeccab495e5027aa0402dea10bdcd166"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#aaeccab495e5027aa0402dea10bdcd166">free</a> )(struct <a class="el" href="structAVHWFramesContext.html">AVHWFramesContext</a> *ctx)</td></tr>
<tr class="memdesc:aaeccab495e5027aa0402dea10bdcd166"><td class="mdescLeft">&#160;</td><td class="mdescRight">This field may be set by the caller before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>.  <a href="#aaeccab495e5027aa0402dea10bdcd166">More...</a><br /></td></tr>
<tr class="separator:aaeccab495e5027aa0402dea10bdcd166"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d6e4c17632bd6770654b7627722222e"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a4d6e4c17632bd6770654b7627722222e">user_opaque</a></td></tr>
<tr class="memdesc:a4d6e4c17632bd6770654b7627722222e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Arbitrary user data, to be used e.g.  <a href="#a4d6e4c17632bd6770654b7627722222e">More...</a><br /></td></tr>
<tr class="separator:a4d6e4c17632bd6770654b7627722222e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad67ff3a5828a611d1b1cddd64fc1de71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__lavu__bufferpool.html#ga13bc8038952b61bae4d591f30c7421f6">AVBufferPool</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#ad67ff3a5828a611d1b1cddd64fc1de71">pool</a></td></tr>
<tr class="memdesc:ad67ff3a5828a611d1b1cddd64fc1de71"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pool from which the frames are allocated by <a class="el" href="hwcontext_8h.html#a03e7cf122b61f6472d0a4d37f52d4965" title="Allocate a new frame attached to the given AVHWFramesContext. ">av_hwframe_get_buffer()</a>.  <a href="#ad67ff3a5828a611d1b1cddd64fc1de71">More...</a><br /></td></tr>
<tr class="separator:ad67ff3a5828a611d1b1cddd64fc1de71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c3a94dcd9c96e19059b56a6bae9c764"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a9c3a94dcd9c96e19059b56a6bae9c764">initial_pool_size</a></td></tr>
<tr class="memdesc:a9c3a94dcd9c96e19059b56a6bae9c764"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initial size of the frame pool.  <a href="#a9c3a94dcd9c96e19059b56a6bae9c764">More...</a><br /></td></tr>
<tr class="separator:a9c3a94dcd9c96e19059b56a6bae9c764"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a045bc1713932804f6ceef170a5578e0e"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5">AVPixelFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a045bc1713932804f6ceef170a5578e0e">format</a></td></tr>
<tr class="memdesc:a045bc1713932804f6ceef170a5578e0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The pixel format identifying the underlying HW surface type.  <a href="#a045bc1713932804f6ceef170a5578e0e">More...</a><br /></td></tr>
<tr class="separator:a045bc1713932804f6ceef170a5578e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a663a9aceca97aa7b2426c9aba6543e4a"><td class="memItemLeft" align="right" valign="top">enum <a class="el" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5">AVPixelFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a663a9aceca97aa7b2426c9aba6543e4a">sw_format</a></td></tr>
<tr class="memdesc:a663a9aceca97aa7b2426c9aba6543e4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The pixel format identifying the actual data layout of the hardware frames.  <a href="#a663a9aceca97aa7b2426c9aba6543e4a">More...</a><br /></td></tr>
<tr class="separator:a663a9aceca97aa7b2426c9aba6543e4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e6f29d0f744930cdd0e8bdff8771520"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#a9e6f29d0f744930cdd0e8bdff8771520">width</a></td></tr>
<tr class="memdesc:a9e6f29d0f744930cdd0e8bdff8771520"><td class="mdescLeft">&#160;</td><td class="mdescRight">The allocated dimensions of the frames in this pool.  <a href="#a9e6f29d0f744930cdd0e8bdff8771520">More...</a><br /></td></tr>
<tr class="separator:a9e6f29d0f744930cdd0e8bdff8771520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae61bbe1d8645a0c573085e29f1d0a58f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structAVHWFramesContext.html#ae61bbe1d8645a0c573085e29f1d0a58f">height</a></td></tr>
<tr class="separator:ae61bbe1d8645a0c573085e29f1d0a58f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This struct describes a set or pool of "hardware" frames (i.e. </p>
<p>those with data not located in normal system memory). All the frames in the pool are assumed to be allocated in the same way and interchangeable.</p>
<p>This struct is reference-counted with the AVBuffer mechanism and tied to a given <a class="el" href="structAVHWDeviceContext.html" title="This struct aggregates all the (hardware/vendor-specific) &quot;high-level&quot; state, i.e. ">AVHWDeviceContext</a> instance. The <a class="el" href="hwcontext_8h.html#a48f93ecf13855387e89d6d5e34054b11" title="Allocate an AVHWFramesContext tied to a given device context. ">av_hwframe_ctx_alloc()</a> constructor yields a reference, whose data field points to the actual <a class="el" href="structAVHWFramesContext.html" title="This struct describes a set or pool of &quot;hardware&quot; frames (i.e. ">AVHWFramesContext</a> struct. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00121">121</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a70e916d610148748f95147cde35ce7c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70e916d610148748f95147cde35ce7c9">&#9670;&nbsp;</a></span>av_class</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structAVClass.html">AVClass</a>* AVHWFramesContext::av_class</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A class for logging. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00125">125</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a69e956e8d2d73d65d015c4ed895ec642"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69e956e8d2d73d65d015c4ed895ec642">&#9670;&nbsp;</a></span>internal</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="hwcontext_8h.html#a01b62f32bcd517164857e7b5f5359f85">AVHWFramesInternal</a>* AVHWFramesContext::internal</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Private data used internally by libavutil. </p>
<p>Must not be accessed in any way by the caller. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00131">131</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a2f3908bfadd569103b67ee4972ee7305"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f3908bfadd569103b67ee4972ee7305">&#9670;&nbsp;</a></span>device_ref</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAVBufferRef.html">AVBufferRef</a>* AVHWFramesContext::device_ref</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A reference to the parent <a class="el" href="structAVHWDeviceContext.html" title="This struct aggregates all the (hardware/vendor-specific) &quot;high-level&quot; state, i.e. ">AVHWDeviceContext</a>. </p>
<p>This reference is owned and managed by the enclosing <a class="el" href="structAVHWFramesContext.html" title="This struct describes a set or pool of &quot;hardware&quot; frames (i.e. ">AVHWFramesContext</a>, but the caller may derive additional references from it. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00138">138</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="ac9a7dbd0cbfcabc0b1529cb34cf53b6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9a7dbd0cbfcabc0b1529cb34cf53b6d">&#9670;&nbsp;</a></span>device_ctx</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAVHWDeviceContext.html">AVHWDeviceContext</a>* AVHWFramesContext::device_ctx</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The parent <a class="el" href="structAVHWDeviceContext.html" title="This struct aggregates all the (hardware/vendor-specific) &quot;high-level&quot; state, i.e. ">AVHWDeviceContext</a>. </p>
<p>This is simply a pointer to device_ref-&gt;data provided for convenience.</p>
<p>Set by libavutil in <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00146">146</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a54e38c3e4355321e23e0f4c7411cb8ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54e38c3e4355321e23e0f4c7411cb8ee">&#9670;&nbsp;</a></span>hwctx</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* AVHWFramesContext::hwctx</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The format-specific data, allocated and freed automatically along with this context. </p>
<p>Should be cast by the user to the format-specific context defined in the corresponding header (hwframe_*.h) and filled as described in the documentation before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>.</p>
<p>After any frames using this context are created, the contents of this struct should not be modified by the caller. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00159">159</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="aaeccab495e5027aa0402dea10bdcd166"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeccab495e5027aa0402dea10bdcd166">&#9670;&nbsp;</a></span>free</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* AVHWFramesContext::free) (struct <a class="el" href="structAVHWFramesContext.html">AVHWFramesContext</a> *ctx)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This field may be set by the caller before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. </p>
<p>If non-NULL, this callback will be called when the last reference to this context is unreferenced, immediately before it is freed. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00167">167</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a4d6e4c17632bd6770654b7627722222e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d6e4c17632bd6770654b7627722222e">&#9670;&nbsp;</a></span>user_opaque</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* AVHWFramesContext::user_opaque</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Arbitrary user data, to be used e.g. </p>
<p>by the <a class="el" href="structAVHWFramesContext.html#aaeccab495e5027aa0402dea10bdcd166" title="This field may be set by the caller before calling av_hwframe_ctx_init(). ">free()</a> callback. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00172">172</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="ad67ff3a5828a611d1b1cddd64fc1de71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad67ff3a5828a611d1b1cddd64fc1de71">&#9670;&nbsp;</a></span>pool</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__lavu__bufferpool.html#ga13bc8038952b61bae4d591f30c7421f6">AVBufferPool</a>* AVHWFramesContext::pool</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A pool from which the frames are allocated by <a class="el" href="hwcontext_8h.html#a03e7cf122b61f6472d0a4d37f52d4965" title="Allocate a new frame attached to the given AVHWFramesContext. ">av_hwframe_get_buffer()</a>. </p>
<p>This field may be set by the caller before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. The buffers returned by calling <a class="el" href="group__lavu__bufferpool.html#ga2c745ecb4001452423e775b06b20fb7c" title="Allocate a new AVBuffer, reusing an old buffer from the pool when available. ">av_buffer_pool_get()</a> on this pool must have the properties described in the documentation in the corresponding hw type's header (hwcontext_*.h). The pool will be freed strictly before this struct's <a class="el" href="structAVHWFramesContext.html#aaeccab495e5027aa0402dea10bdcd166" title="This field may be set by the caller before calling av_hwframe_ctx_init(). ">free()</a> callback is invoked.</p>
<p>This field may be NULL, then libavutil will attempt to allocate a pool internally. Note that certain device types enforce pools allocated at fixed size (frame count), which cannot be extended dynamically. In such a case, initial_pool_size must be set appropriately. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00187">187</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a9c3a94dcd9c96e19059b56a6bae9c764"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c3a94dcd9c96e19059b56a6bae9c764">&#9670;&nbsp;</a></span>initial_pool_size</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVHWFramesContext::initial_pool_size</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initial size of the frame pool. </p>
<p>If a device type does not support dynamically resizing the pool, then this is also the maximum pool size.</p>
<p>May be set by the caller before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. Must be set if pool is NULL and the device type does not support dynamic pools. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00196">196</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a045bc1713932804f6ceef170a5578e0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a045bc1713932804f6ceef170a5578e0e">&#9670;&nbsp;</a></span>format</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5">AVPixelFormat</a> AVHWFramesContext::format</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The pixel format identifying the underlying HW surface type. </p>
<p>Must be a hwaccel format, i.e. the corresponding descriptor must have the AV_PIX_FMT_FLAG_HWACCEL flag set.</p>
<p>Must be set by the user before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00206">206</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a663a9aceca97aa7b2426c9aba6543e4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a663a9aceca97aa7b2426c9aba6543e4a">&#9670;&nbsp;</a></span>sw_format</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="pixfmt_8h.html#a9a8e335cf3be472042bc9f0cf80cd4c5">AVPixelFormat</a> AVHWFramesContext::sw_format</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The pixel format identifying the actual data layout of the hardware frames. </p>
<p>Must be set by the caller before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>.</p>
<dl class="section note"><dt>Note</dt><dd>when the underlying API does not provide the exact data layout, but only the colorspace/bit depth, this field should be set to the fully planar version of that format (e.g. for 8-bit 420 YUV it should be AV_PIX_FMT_YUV420P, not AV_PIX_FMT_NV12 or anything else). </dd></dl>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00219">219</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="a9e6f29d0f744930cdd0e8bdff8771520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e6f29d0f744930cdd0e8bdff8771520">&#9670;&nbsp;</a></span>width</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVHWFramesContext::width</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The allocated dimensions of the frames in this pool. </p>
<p>Must be set by the user before calling <a class="el" href="hwcontext_8h.html#a66a7e1ebc7e459ce07d3de6639ac7e38" title="Finalize the context before use. ">av_hwframe_ctx_init()</a>. </p>

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00226">226</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<a id="ae61bbe1d8645a0c573085e29f1d0a58f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae61bbe1d8645a0c573085e29f1d0a58f">&#9670;&nbsp;</a></span>height</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int AVHWFramesContext::height</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hwcontext_8h_source.html#l00226">226</a> of file <a class="el" href="hwcontext_8h_source.html">hwcontext.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>libavutil/<a class="el" href="hwcontext_8h_source.html">hwcontext.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>