Repository URL to install this package:
|
Version:
8:3.0.2-1ubuntu3 ▾
|
<!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.6"/>
<title>FFmpeg: AVQSVContext 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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">FFmpeg
 <span id="projectnumber">3.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</a></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">AVQSVContext Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This struct is used for communicating QSV parameters between libavcodec and the caller.
<a href="structAVQSVContext.html#details">More...</a></p>
<p><code>#include <<a class="el" href="qsv_8h_source.html">qsv.h</a>></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:aa88e55219891596ee8205ae78cbca275"><td class="memItemLeft" align="right" valign="top">mfxSession </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#aa88e55219891596ee8205ae78cbca275">session</a></td></tr>
<tr class="memdesc:aa88e55219891596ee8205ae78cbca275"><td class="mdescLeft"> </td><td class="mdescRight">If non-NULL, the session to use for encoding or decoding. <a href="#aa88e55219891596ee8205ae78cbca275">More...</a><br/></td></tr>
<tr class="separator:aa88e55219891596ee8205ae78cbca275"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6190ff613bf400fa6d7e5c78bacb4c00"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a6190ff613bf400fa6d7e5c78bacb4c00">iopattern</a></td></tr>
<tr class="memdesc:a6190ff613bf400fa6d7e5c78bacb4c00"><td class="mdescLeft"> </td><td class="mdescRight">The IO pattern to use. <a href="#a6190ff613bf400fa6d7e5c78bacb4c00">More...</a><br/></td></tr>
<tr class="separator:a6190ff613bf400fa6d7e5c78bacb4c00"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3c92105313bccdc0b7f63170ed9f992f"><td class="memItemLeft" align="right" valign="top">mfxExtBuffer ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a3c92105313bccdc0b7f63170ed9f992f">ext_buffers</a></td></tr>
<tr class="memdesc:a3c92105313bccdc0b7f63170ed9f992f"><td class="mdescLeft"> </td><td class="mdescRight">Extra buffers to pass to encoder or decoder initialization. <a href="#a3c92105313bccdc0b7f63170ed9f992f">More...</a><br/></td></tr>
<tr class="separator:a3c92105313bccdc0b7f63170ed9f992f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a19ca280b4a280676abbb5a018f619282"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a19ca280b4a280676abbb5a018f619282">nb_ext_buffers</a></td></tr>
<tr class="separator:a19ca280b4a280676abbb5a018f619282"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a00b4f91c36429e719743c5a080856e33"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a00b4f91c36429e719743c5a080856e33">opaque_alloc</a></td></tr>
<tr class="memdesc:a00b4f91c36429e719743c5a080856e33"><td class="mdescLeft"> </td><td class="mdescRight">Encoding only. <a href="#a00b4f91c36429e719743c5a080856e33">More...</a><br/></td></tr>
<tr class="separator:a00b4f91c36429e719743c5a080856e33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a31ff5ab3cbbde801fdc264a6660e55e9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a31ff5ab3cbbde801fdc264a6660e55e9">nb_opaque_surfaces</a></td></tr>
<tr class="memdesc:a31ff5ab3cbbde801fdc264a6660e55e9"><td class="mdescLeft"> </td><td class="mdescRight">Encoding only, and only if opaque_alloc is set to non-zero. <a href="#a31ff5ab3cbbde801fdc264a6660e55e9">More...</a><br/></td></tr>
<tr class="separator:a31ff5ab3cbbde801fdc264a6660e55e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae9a2a1e951ebdfc2640ea33077f0c67e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structAVBufferRef.html">AVBufferRef</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#ae9a2a1e951ebdfc2640ea33077f0c67e">opaque_surfaces</a></td></tr>
<tr class="memdesc:ae9a2a1e951ebdfc2640ea33077f0c67e"><td class="mdescLeft"> </td><td class="mdescRight">Encoding only, and only if opaque_alloc is set to non-zero. <a href="#ae9a2a1e951ebdfc2640ea33077f0c67e">More...</a><br/></td></tr>
<tr class="separator:ae9a2a1e951ebdfc2640ea33077f0c67e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a06f2493cfd72f41162e788e5247f5b90"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structAVQSVContext.html#a06f2493cfd72f41162e788e5247f5b90">opaque_alloc_type</a></td></tr>
<tr class="memdesc:a06f2493cfd72f41162e788e5247f5b90"><td class="mdescLeft"> </td><td class="mdescRight">Encoding only, and only if opaque_alloc is set to non-zero. <a href="#a06f2493cfd72f41162e788e5247f5b90">More...</a><br/></td></tr>
<tr class="separator:a06f2493cfd72f41162e788e5247f5b90"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This struct is used for communicating QSV parameters between libavcodec and the caller. </p>
<p>It is managed by the caller and must be assigned to <a class="el" href="structAVCodecContext.html#ab222f7d747dfdceff0a76999e09648c0" title="Hardware accelerator context. ">AVCodecContext.hwaccel_context</a>.</p>
<ul>
<li>decoding: hwaccel_context must be set on return from the get_format() callback</li>
<li>encoding: hwaccel_context must be set before <a class="el" href="group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" title="Initialize the AVCodecContext to use the given AVCodec. ">avcodec_open2()</a> </li>
</ul>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00036">36</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="aa88e55219891596ee8205ae78cbca275"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">mfxSession AVQSVContext::session</td>
</tr>
</table>
</div><div class="memdoc">
<p>If non-NULL, the session to use for encoding or decoding. </p>
<p>Otherwise, libavcodec will try to create an internal session. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00041">41</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a6190ff613bf400fa6d7e5c78bacb4c00"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int AVQSVContext::iopattern</td>
</tr>
</table>
</div><div class="memdoc">
<p>The IO pattern to use. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00046">46</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a3c92105313bccdc0b7f63170ed9f992f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">mfxExtBuffer** AVQSVContext::ext_buffers</td>
</tr>
</table>
</div><div class="memdoc">
<p>Extra buffers to pass to encoder or decoder initialization. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00051">51</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a19ca280b4a280676abbb5a018f619282"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int AVQSVContext::nb_ext_buffers</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00052">52</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a00b4f91c36429e719743c5a080856e33"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int AVQSVContext::opaque_alloc</td>
</tr>
</table>
</div><div class="memdoc">
<p>Encoding only. </p>
<p>If this field is set to non-zero by the caller, libavcodec will create an mfxExtOpaqueSurfaceAlloc extended buffer and pass it to the encoder initialization. This only makes sense if iopattern is also set to MFX_IOPATTERN_IN_OPAQUE_MEMORY.</p>
<p>The number of allocated opaque surfaces will be the sum of the number required by the encoder and the user-provided value nb_opaque_surfaces. The array of the opaque surfaces will be exported to the caller through the opaque_surfaces field. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00065">65</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a31ff5ab3cbbde801fdc264a6660e55e9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int AVQSVContext::nb_opaque_surfaces</td>
</tr>
</table>
</div><div class="memdoc">
<p>Encoding only, and only if opaque_alloc is set to non-zero. </p>
<p>Before calling <a class="el" href="group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" title="Initialize the AVCodecContext to use the given AVCodec. ">avcodec_open2()</a>, the caller should set this field to the number of extra opaque surfaces to allocate beyond what is required by the encoder.</p>
<p>On return from <a class="el" href="group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" title="Initialize the AVCodecContext to use the given AVCodec. ">avcodec_open2()</a>, this field will be set by libavcodec to the total number of allocated opaque surfaces. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00076">76</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="ae9a2a1e951ebdfc2640ea33077f0c67e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structAVBufferRef.html">AVBufferRef</a>* AVQSVContext::opaque_surfaces</td>
</tr>
</table>
</div><div class="memdoc">
<p>Encoding only, and only if opaque_alloc is set to non-zero. </p>
<p>On return from <a class="el" href="group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" title="Initialize the AVCodecContext to use the given AVCodec. ">avcodec_open2()</a>, this field will be used by libavcodec to export the array of the allocated opaque surfaces to the caller, so they can be passed to other parts of the pipeline.</p>
<p>The buffer reference exported here is owned and managed by libavcodec, the callers should make their own reference with <a class="el" href="group__lavu__buffer.html#gaa40ce7d3ede946a89d03323bbd7268c1" title="Create a new reference to an AVBuffer. ">av_buffer_ref()</a> and free it with <a class="el" href="group__lavu__buffer.html#ga135e9e929b5033bb8f68322497b2effc" title="Free a given reference and automatically free the buffer if there are no more references to it...">av_buffer_unref()</a> when it is no longer needed.</p>
<p>The buffer data is an nb_opaque_surfaces-sized array of mfxFrameSurface1. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00090">90</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<a class="anchor" id="a06f2493cfd72f41162e788e5247f5b90"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int AVQSVContext::opaque_alloc_type</td>
</tr>
</table>
</div><div class="memdoc">
<p>Encoding only, and only if opaque_alloc is set to non-zero. </p>
<p>On return from <a class="el" href="group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" title="Initialize the AVCodecContext to use the given AVCodec. ">avcodec_open2()</a>, this field will be set to the surface type used in the opaque allocation request. </p>
<p>Definition at line <a class="el" href="qsv_8h_source.html#l00097">97</a> of file <a class="el" href="qsv_8h_source.html">qsv.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>libavcodec/<a class="el" href="qsv_8h_source.html">qsv.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>