Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ffmpeg-doc / usr / share / doc / ffmpeg-doc / api / vdpau_8h_source.html
Size: Mime:
<!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"/>
<title>FFmpeg: libavcodec/vdpau.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">FFmpeg
   &#160;<span id="projectnumber">2.7.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><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="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">libavcodec/vdpau.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vdpau_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * The Video Decode and Presentation API for UNIX (VDPAU) is used for</span>
<a name="l00003"></a>00003 <span class="comment"> * hardware-accelerated decoding of MPEG-1/2, H.264 and VC-1.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2008 NVIDIA</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * This file is part of FFmpeg.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span>
<a name="l00010"></a>00010 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00011"></a>00011 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00012"></a>00012 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00017"></a>00017 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00020"></a>00020 <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00022"></a>00022 <span class="comment"> */</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef AVCODEC_VDPAU_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define AVCODEC_VDPAU_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00027"></a>00027 <span class="comment">/**</span>
<a name="l00028"></a>00028 <span class="comment"> * @file</span>
<a name="l00029"></a>00029 <span class="comment"> * @ingroup lavc_codec_hwaccel_vdpau</span>
<a name="l00030"></a>00030 <span class="comment"> * Public libavcodec VDPAU header.</span>
<a name="l00031"></a>00031 <span class="comment"> */</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment"></span>
<a name="l00034"></a>00034 <span class="comment">/**</span>
<a name="l00035"></a>00035 <span class="comment"> * @defgroup lavc_codec_hwaccel_vdpau VDPAU Decoder and Renderer</span>
<a name="l00036"></a>00036 <span class="comment"> * @ingroup lavc_codec_hwaccel</span>
<a name="l00037"></a>00037 <span class="comment"> *</span>
<a name="l00038"></a>00038 <span class="comment"> * VDPAU hardware acceleration has two modules</span>
<a name="l00039"></a>00039 <span class="comment"> * - VDPAU decoding</span>
<a name="l00040"></a>00040 <span class="comment"> * - VDPAU presentation</span>
<a name="l00041"></a>00041 <span class="comment"> *</span>
<a name="l00042"></a>00042 <span class="comment"> * The VDPAU decoding module parses all headers using FFmpeg</span>
<a name="l00043"></a>00043 <span class="comment"> * parsing mechanisms and uses VDPAU for the actual decoding.</span>
<a name="l00044"></a>00044 <span class="comment"> *</span>
<a name="l00045"></a>00045 <span class="comment"> * As per the current implementation, the actual decoding</span>
<a name="l00046"></a>00046 <span class="comment"> * and rendering (API calls) are done as part of the VDPAU</span>
<a name="l00047"></a>00047 <span class="comment"> * presentation (vo_vdpau.c) module.</span>
<a name="l00048"></a>00048 <span class="comment"> *</span>
<a name="l00049"></a>00049 <span class="comment"> * @{</span>
<a name="l00050"></a>00050 <span class="comment"> */</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;vdpau/vdpau.h&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;vdpau/vdpau_x11.h&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &quot;libavutil/avconfig.h&quot;</span>
<a name="l00055"></a>00055 <span class="preprocessor">#include &quot;<a class="code" href="attributes_8h.html" title="Macro definitions for various function/variable attributes.">libavutil/attributes.h</a>&quot;</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#include &quot;<a class="code" href="libavcodec_2avcodec_8h.html" title="Libavcodec external API header.">avcodec.h</a>&quot;</span>
<a name="l00058"></a>00058 <span class="preprocessor">#include &quot;<a class="code" href="libavcodec_2version_8h.html" title="Libavcodec version macros.">version.h</a>&quot;</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#if FF_API_BUFS_VDPAU</span>
<a name="l00061"></a><a class="code" href="unionAVVDPAUPictureInfo.html">00061</a> <span class="preprocessor"></span><span class="keyword">union </span><a class="code" href="unionAVVDPAUPictureInfo.html">AVVDPAUPictureInfo</a> {
<a name="l00062"></a><a class="code" href="unionAVVDPAUPictureInfo.html#a9b04dee7006f93e2b2cede4316d99673">00062</a>     VdpPictureInfoH264        <a class="code" href="unionAVVDPAUPictureInfo.html#a9b04dee7006f93e2b2cede4316d99673">h264</a>;
<a name="l00063"></a><a class="code" href="unionAVVDPAUPictureInfo.html#a0953a7bad8855265a7dc4959d7ef7316">00063</a>     VdpPictureInfoMPEG1Or2    <a class="code" href="unionAVVDPAUPictureInfo.html#a0953a7bad8855265a7dc4959d7ef7316">mpeg</a>;
<a name="l00064"></a><a class="code" href="unionAVVDPAUPictureInfo.html#a0d054be4e5fbebdc6d723f6a1498117e">00064</a>     VdpPictureInfoVC1          <a class="code" href="unionAVVDPAUPictureInfo.html#a0d054be4e5fbebdc6d723f6a1498117e">vc1</a>;
<a name="l00065"></a><a class="code" href="unionAVVDPAUPictureInfo.html#a03ba529bc77155578dd37aee7bb86af9">00065</a>     VdpPictureInfoMPEG4Part2 <a class="code" href="unionAVVDPAUPictureInfo.html#a03ba529bc77155578dd37aee7bb86af9">mpeg4</a>;
<a name="l00066"></a>00066 };
<a name="l00067"></a>00067 <span class="preprocessor">#endif</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a>00069 <span class="keyword">struct </span><a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a>;
<a name="l00070"></a>00070 <span class="keyword">struct </span><a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a>;
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga98e0853e07041294b96e1f4611ad9858">00072</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga98e0853e07041294b96e1f4611ad9858">AVVDPAU_Render2</a>)(<span class="keyword">struct </span><a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a> *, <span class="keyword">struct </span><a class="code" href="structAVFrame.html" title="This structure describes decoded (raw) audio or video data.">AVFrame</a> *,
<a name="l00073"></a>00073                                <span class="keyword">const</span> VdpPictureInfo *, uint32_t,
<a name="l00074"></a>00074                                <span class="keyword">const</span> VdpBitstreamBuffer *);
<a name="l00075"></a>00075 <span class="comment"></span>
<a name="l00076"></a>00076 <span class="comment">/**</span>
<a name="l00077"></a>00077 <span class="comment"> * This structure is used to share data between the libavcodec library and</span>
<a name="l00078"></a>00078 <span class="comment"> * the client video application.</span>
<a name="l00079"></a>00079 <span class="comment"> * The user shall allocate the structure via the av_alloc_vdpau_hwaccel</span>
<a name="l00080"></a>00080 <span class="comment"> * function and make it available as</span>
<a name="l00081"></a>00081 <span class="comment"> * AVCodecContext.hwaccel_context. Members can be set by the user once</span>
<a name="l00082"></a>00082 <span class="comment"> * during initialization or through each AVCodecContext.get_buffer()</span>
<a name="l00083"></a>00083 <span class="comment"> * function call. In any case, they must be valid prior to calling</span>
<a name="l00084"></a>00084 <span class="comment"> * decoding functions.</span>
<a name="l00085"></a>00085 <span class="comment"> *</span>
<a name="l00086"></a>00086 <span class="comment"> * The size of this structure is not a part of the public ABI and must not</span>
<a name="l00087"></a>00087 <span class="comment"> * be used outside of libavcodec. Use av_vdpau_alloc_context() to allocate an</span>
<a name="l00088"></a>00088 <span class="comment"> * AVVDPAUContext.</span>
<a name="l00089"></a>00089 <span class="comment"> */</span>
<a name="l00090"></a><a class="code" href="structAVVDPAUContext.html">00090</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a> {<span class="comment"></span>
<a name="l00091"></a>00091 <span class="comment">    /**</span>
<a name="l00092"></a>00092 <span class="comment">     * VDPAU decoder handle</span>
<a name="l00093"></a>00093 <span class="comment">     *</span>
<a name="l00094"></a>00094 <span class="comment">     * Set by user.</span>
<a name="l00095"></a>00095 <span class="comment">     */</span>
<a name="l00096"></a><a class="code" href="structAVVDPAUContext.html#a54b51de52e8b936c93272cad8e94e395">00096</a>     VdpDecoder <a class="code" href="structAVVDPAUContext.html#a54b51de52e8b936c93272cad8e94e395" title="VDPAU decoder handle.">decoder</a>;
<a name="l00097"></a>00097 <span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">    /**</span>
<a name="l00099"></a>00099 <span class="comment">     * VDPAU decoder render callback</span>
<a name="l00100"></a>00100 <span class="comment">     *</span>
<a name="l00101"></a>00101 <span class="comment">     * Set by the user.</span>
<a name="l00102"></a>00102 <span class="comment">     */</span>
<a name="l00103"></a><a class="code" href="structAVVDPAUContext.html#ac007e73409f8171d5aa26c2c1b72454c">00103</a>     VdpDecoderRender *<a class="code" href="structAVVDPAUContext.html#ac007e73409f8171d5aa26c2c1b72454c" title="VDPAU decoder render callback.">render</a>;
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="preprocessor">#if FF_API_BUFS_VDPAU</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="comment">    /**</span>
<a name="l00107"></a>00107 <span class="comment">     * VDPAU picture information</span>
<a name="l00108"></a>00108 <span class="comment">     *</span>
<a name="l00109"></a>00109 <span class="comment">     * Set by libavcodec.</span>
<a name="l00110"></a>00110 <span class="comment">     */</span>
<a name="l00111"></a>00111     <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00112"></a><a class="code" href="structAVVDPAUContext.html#af2826dbf7db72ddae2376372db67bd82">00112</a>     <span class="keyword">union </span><a class="code" href="unionAVVDPAUPictureInfo.html">AVVDPAUPictureInfo</a> <a class="code" href="structAVVDPAUContext.html#af2826dbf7db72ddae2376372db67bd82" title="VDPAU picture information.">info</a>;
<a name="l00113"></a>00113 <span class="comment"></span>
<a name="l00114"></a>00114 <span class="comment">    /**</span>
<a name="l00115"></a>00115 <span class="comment">     * Allocated size of the bitstream_buffers table.</span>
<a name="l00116"></a>00116 <span class="comment">     *</span>
<a name="l00117"></a>00117 <span class="comment">     * Set by libavcodec.</span>
<a name="l00118"></a>00118 <span class="comment">     */</span>
<a name="l00119"></a>00119     <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00120"></a><a class="code" href="structAVVDPAUContext.html#a4dcbc0fe3aa59529a032d63777e00b4a">00120</a>     <span class="keywordtype">int</span> <a class="code" href="structAVVDPAUContext.html#a4dcbc0fe3aa59529a032d63777e00b4a" title="Allocated size of the bitstream_buffers table.">bitstream_buffers_allocated</a>;
<a name="l00121"></a>00121 <span class="comment"></span>
<a name="l00122"></a>00122 <span class="comment">    /**</span>
<a name="l00123"></a>00123 <span class="comment">     * Useful bitstream buffers in the bitstream buffers table.</span>
<a name="l00124"></a>00124 <span class="comment">     *</span>
<a name="l00125"></a>00125 <span class="comment">     * Set by libavcodec.</span>
<a name="l00126"></a>00126 <span class="comment">     */</span>
<a name="l00127"></a>00127     <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00128"></a><a class="code" href="structAVVDPAUContext.html#a9116d89dbc37270ff70579b1e9411069">00128</a>     <span class="keywordtype">int</span> <a class="code" href="structAVVDPAUContext.html#a9116d89dbc37270ff70579b1e9411069" title="Useful bitstream buffers in the bitstream buffers table.">bitstream_buffers_used</a>;
<a name="l00129"></a>00129 <span class="comment"></span>
<a name="l00130"></a>00130 <span class="comment">   /**</span>
<a name="l00131"></a>00131 <span class="comment">     * Table of bitstream buffers.</span>
<a name="l00132"></a>00132 <span class="comment">     * The user is responsible for freeing this buffer using av_freep().</span>
<a name="l00133"></a>00133 <span class="comment">     *</span>
<a name="l00134"></a>00134 <span class="comment">     * Set by libavcodec.</span>
<a name="l00135"></a>00135 <span class="comment">     */</span>
<a name="l00136"></a>00136     <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a>
<a name="l00137"></a><a class="code" href="structAVVDPAUContext.html#a669a2d63ad020507d8327df13a075cd2">00137</a>     VdpBitstreamBuffer *<a class="code" href="structAVVDPAUContext.html#a669a2d63ad020507d8327df13a075cd2" title="Table of bitstream buffers.">bitstream_buffers</a>;
<a name="l00138"></a>00138 <span class="preprocessor">#endif</span>
<a name="l00139"></a><a class="code" href="structAVVDPAUContext.html#af220e2bf6c0093dd63c8384dccccd3d8">00139</a> <span class="preprocessor"></span>    <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga98e0853e07041294b96e1f4611ad9858">AVVDPAU_Render2</a> <a class="code" href="structAVVDPAUContext.html#af220e2bf6c0093dd63c8384dccccd3d8">render2</a>;
<a name="l00140"></a>00140 } <a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a>;
<a name="l00141"></a>00141 <span class="comment"></span>
<a name="l00142"></a>00142 <span class="comment">/**</span>
<a name="l00143"></a>00143 <span class="comment"> * @brief allocation function for AVVDPAUContext</span>
<a name="l00144"></a>00144 <span class="comment"> *</span>
<a name="l00145"></a>00145 <span class="comment"> * Allows extending the struct without breaking API/ABI</span>
<a name="l00146"></a>00146 <span class="comment"> */</span>
<a name="l00147"></a>00147 <a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a> *<a class="code" href="group__lavc__codec__hwaccel__vdpau.html#gabd46596564db27b9783814b2942f6d84" title="allocation function for AVVDPAUContext">av_alloc_vdpaucontext</a>(<span class="keywordtype">void</span>);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga98e0853e07041294b96e1f4611ad9858">AVVDPAU_Render2</a> <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga0a3496e46e9dfcd50f7baa96a9da0275">av_vdpau_hwaccel_get_render2</a>(<span class="keyword">const</span> <a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a> *);
<a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga5d993c664b580bb5b927e46c34455cf6">av_vdpau_hwaccel_set_render2</a>(<a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a> *, <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga98e0853e07041294b96e1f4611ad9858">AVVDPAU_Render2</a>);
<a name="l00151"></a>00151 <span class="comment"></span>
<a name="l00152"></a>00152 <span class="comment">/**</span>
<a name="l00153"></a>00153 <span class="comment"> * Associate a VDPAU device with a codec context for hardware acceleration.</span>
<a name="l00154"></a>00154 <span class="comment"> * This function is meant to be called from the get_format() codec callback,</span>
<a name="l00155"></a>00155 <span class="comment"> * or earlier. It can also be called after avcodec_flush_buffers() to change</span>
<a name="l00156"></a>00156 <span class="comment"> * the underlying VDPAU device mid-stream (e.g. to recover from non-transparent</span>
<a name="l00157"></a>00157 <span class="comment"> * display preemption).</span>
<a name="l00158"></a>00158 <span class="comment"> *</span>
<a name="l00159"></a>00159 <span class="comment"> * @note get_format() must return AV_PIX_FMT_VDPAU if this function completes</span>
<a name="l00160"></a>00160 <span class="comment"> * successfully.</span>
<a name="l00161"></a>00161 <span class="comment"> *</span>
<a name="l00162"></a>00162 <span class="comment"> * @param avctx decoding context whose get_format() callback is invoked</span>
<a name="l00163"></a>00163 <span class="comment"> * @param device VDPAU device handle to use for hardware acceleration</span>
<a name="l00164"></a>00164 <span class="comment"> * @param get_proc_address VDPAU device driver</span>
<a name="l00165"></a>00165 <span class="comment"> * @param flags zero of more OR&#39;d AV_HWACCEL_FLAG_* flags</span>
<a name="l00166"></a>00166 <span class="comment"> *</span>
<a name="l00167"></a>00167 <span class="comment"> * @return 0 on success, an AVERROR code on failure.</span>
<a name="l00168"></a>00168 <span class="comment"> */</span>
<a name="l00169"></a>00169 <span class="keywordtype">int</span> <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#gac56d6b1b4478056afc0e0a8f52271afa" title="Associate a VDPAU device with a codec context for hardware acceleration.">av_vdpau_bind_context</a>(<a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a> *avctx, VdpDevice device,
<a name="l00170"></a>00170                           VdpGetProcAddress *get_proc_address, <span class="keywordtype">unsigned</span> flags);
<a name="l00171"></a>00171 <span class="comment"></span>
<a name="l00172"></a>00172 <span class="comment">/**</span>
<a name="l00173"></a>00173 <span class="comment"> * Gets the parameters to create an adequate VDPAU video surface for the codec</span>
<a name="l00174"></a>00174 <span class="comment"> * context using VDPAU hardware decoding acceleration.</span>
<a name="l00175"></a>00175 <span class="comment"> *</span>
<a name="l00176"></a>00176 <span class="comment"> * @note Behavior is undefined if the context was not successfully bound to a</span>
<a name="l00177"></a>00177 <span class="comment"> * VDPAU device using av_vdpau_bind_context().</span>
<a name="l00178"></a>00178 <span class="comment"> *</span>
<a name="l00179"></a>00179 <span class="comment"> * @param avctx the codec context being used for decoding the stream</span>
<a name="l00180"></a>00180 <span class="comment"> * @param type storage space for the VDPAU video surface chroma type</span>
<a name="l00181"></a>00181 <span class="comment"> *              (or NULL to ignore)</span>
<a name="l00182"></a>00182 <span class="comment"> * @param width storage space for the VDPAU video surface pixel width</span>
<a name="l00183"></a>00183 <span class="comment"> *              (or NULL to ignore)</span>
<a name="l00184"></a>00184 <span class="comment"> * @param height storage space for the VDPAU video surface pixel height</span>
<a name="l00185"></a>00185 <span class="comment"> *              (or NULL to ignore)</span>
<a name="l00186"></a>00186 <span class="comment"> *</span>
<a name="l00187"></a>00187 <span class="comment"> * @return 0 on success, a negative AVERROR code on failure.</span>
<a name="l00188"></a>00188 <span class="comment"> */</span>
<a name="l00189"></a>00189 <span class="keywordtype">int</span> <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#gad4354a22f2f4d44000515e836b7863af" title="Gets the parameters to create an adequate VDPAU video surface for the codec context using VDPAU hardw...">av_vdpau_get_surface_parameters</a>(<a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a> *avctx, VdpChromaType *type,
<a name="l00190"></a>00190                                     uint32_t *<a class="code" href="demuxing__decoding_8c.html#a2474a5474cbff19523a51eb1de01cda4">width</a>, uint32_t *<a class="code" href="demuxing__decoding_8c.html#ad12fc34ce789bce6c8a05d8a17138534">height</a>);
<a name="l00191"></a>00191 <span class="comment"></span>
<a name="l00192"></a>00192 <span class="comment">/**</span>
<a name="l00193"></a>00193 <span class="comment"> * Allocate an AVVDPAUContext.</span>
<a name="l00194"></a>00194 <span class="comment"> *</span>
<a name="l00195"></a>00195 <span class="comment"> * @return Newly-allocated AVVDPAUContext or NULL on failure.</span>
<a name="l00196"></a>00196 <span class="comment"> */</span>
<a name="l00197"></a>00197 <a class="code" href="structAVVDPAUContext.html" title="This structure is used to share data between the libavcodec library and the client video application...">AVVDPAUContext</a> *<a class="code" href="group__lavc__codec__hwaccel__vdpau.html#gac3b2e926326d9bc7c4a856304c4bc0f8" title="Allocate an AVVDPAUContext.">av_vdpau_alloc_context</a>(<span class="keywordtype">void</span>);
<a name="l00198"></a>00198 <span class="comment"></span>
<a name="l00199"></a>00199 <span class="comment">/**</span>
<a name="l00200"></a>00200 <span class="comment"> * Get a decoder profile that should be used for initializing a VDPAU decoder.</span>
<a name="l00201"></a>00201 <span class="comment"> * Should be called from the AVCodecContext.get_format() callback.</span>
<a name="l00202"></a>00202 <span class="comment"> *</span>
<a name="l00203"></a>00203 <span class="comment"> * @param avctx the codec context being used for decoding the stream</span>
<a name="l00204"></a>00204 <span class="comment"> * @param profile a pointer into which the result will be written on success.</span>
<a name="l00205"></a>00205 <span class="comment"> *                The contents of profile are undefined if this function returns</span>
<a name="l00206"></a>00206 <span class="comment"> *                an error.</span>
<a name="l00207"></a>00207 <span class="comment"> *</span>
<a name="l00208"></a>00208 <span class="comment"> * @return 0 on success (non-negative), a negative AVERROR on failure.</span>
<a name="l00209"></a>00209 <span class="comment"> */</span>
<a name="l00210"></a>00210 <span class="keywordtype">int</span> <a class="code" href="group__lavc__codec__hwaccel__vdpau.html#gaa5dd9ae3912059bdb13f88ddfda26657" title="Get a decoder profile that should be used for initializing a VDPAU decoder.">av_vdpau_get_profile</a>(<a class="code" href="structAVCodecContext.html" title="main external API structure.">AVCodecContext</a> *avctx, VdpDecoderProfile *profile);
<a name="l00211"></a>00211 
<a name="l00212"></a>00212 <span class="preprocessor">#if FF_API_CAP_VDPAU</span>
<a name="l00213"></a>00213 <span class="preprocessor"></span><span class="comment">/** @brief The videoSurface is used for rendering. */</span>
<a name="l00214"></a><a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga87551b42b8cc836804d9e0c5ac6fa367">00214</a> <span class="preprocessor">#define FF_VDPAU_STATE_USED_FOR_RENDER 1</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00216"></a>00216 <span class="comment">/**</span>
<a name="l00217"></a>00217 <span class="comment"> * @brief The videoSurface is needed for reference/prediction.</span>
<a name="l00218"></a>00218 <span class="comment"> * The codec manipulates this.</span>
<a name="l00219"></a>00219 <span class="comment"> */</span>
<a name="l00220"></a><a class="code" href="group__lavc__codec__hwaccel__vdpau.html#ga1f3b6a25961a335e3bb131428266d4a9">00220</a> <span class="preprocessor">#define FF_VDPAU_STATE_USED_FOR_REFERENCE 2</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00222"></a>00222 <span class="comment">/**</span>
<a name="l00223"></a>00223 <span class="comment"> * @brief This structure is used as a callback between the FFmpeg</span>
<a name="l00224"></a>00224 <span class="comment"> * decoder (vd_) and presentation (vo_) module.</span>
<a name="l00225"></a>00225 <span class="comment"> * This is used for defining a video frame containing surface,</span>
<a name="l00226"></a>00226 <span class="comment"> * picture parameter, bitstream information etc which are passed</span>
<a name="l00227"></a>00227 <span class="comment"> * between the FFmpeg decoder and its clients.</span>
<a name="l00228"></a>00228 <span class="comment"> */</span>
<a name="l00229"></a><a class="code" href="structvdpau__render__state.html">00229</a> <span class="keyword">struct </span><a class="code" href="structvdpau__render__state.html" title="This structure is used as a callback between the FFmpeg decoder (vd_) and presentation (vo_) module...">vdpau_render_state</a> {
<a name="l00230"></a><a class="code" href="structvdpau__render__state.html#a03db4a28b9c8187ca69335d6aaa01d3f">00230</a>     VdpVideoSurface <a class="code" href="structvdpau__render__state.html#a03db4a28b9c8187ca69335d6aaa01d3f" title="Used as rendered surface, never changed.">surface</a>; <span class="comment">///&lt; Used as rendered surface, never changed.</span>
<a name="l00231"></a>00231 <span class="comment"></span>
<a name="l00232"></a><a class="code" href="structvdpau__render__state.html#ab52402f2ec91ac3daf3c39bee6e6b717">00232</a>     <span class="keywordtype">int</span> <a class="code" href="structvdpau__render__state.html#ab52402f2ec91ac3daf3c39bee6e6b717" title="Holds FF_VDPAU_STATE_* values.">state</a>; <span class="comment">///&lt; Holds FF_VDPAU_STATE_* values.</span>
<a name="l00233"></a>00233 <span class="comment"></span>
<a name="l00234"></a>00234 <span class="preprocessor">#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="comment">    /** picture parameter information for all supported codecs */</span>
<a name="l00236"></a>00236     <span class="keyword">union </span><a class="code" href="unionAVVDPAUPictureInfo.html">AVVDPAUPictureInfo</a> <a class="code" href="structvdpau__render__state.html#a761eb1f0760c95d8e755b4b9ac20c77c" title="picture parameter information for all supported codecs">info</a>;
<a name="l00237"></a>00237 <span class="preprocessor">#endif</span>
<a name="l00238"></a>00238 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00239"></a>00239 <span class="comment">    /** Describe size/location of the compressed video data.</span>
<a name="l00240"></a>00240 <span class="comment">        Set to 0 when freeing bitstream_buffers. */</span>
<a name="l00241"></a><a class="code" href="structvdpau__render__state.html#ab0e6b4e8689307349f7f10e451d57329">00241</a>     <span class="keywordtype">int</span> <a class="code" href="structvdpau__render__state.html#ab0e6b4e8689307349f7f10e451d57329" title="Describe size/location of the compressed video data.">bitstream_buffers_allocated</a>;
<a name="l00242"></a><a class="code" href="structvdpau__render__state.html#ab030c29ece1ef5130f78e69fa19af738">00242</a>     <span class="keywordtype">int</span> <a class="code" href="structvdpau__render__state.html#ab030c29ece1ef5130f78e69fa19af738">bitstream_buffers_used</a>;<span class="comment"></span>
<a name="l00243"></a>00243 <span class="comment">    /** The user is responsible for freeing this buffer using av_freep(). */</span>
<a name="l00244"></a><a class="code" href="structvdpau__render__state.html#a5716971d7108b6a94ee628fb4a884e32">00244</a>     VdpBitstreamBuffer *<a class="code" href="structvdpau__render__state.html#a5716971d7108b6a94ee628fb4a884e32" title="The user is responsible for freeing this buffer using av_freep().">bitstream_buffers</a>;
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 <span class="preprocessor">#if !AV_HAVE_INCOMPATIBLE_LIBAV_ABI</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="comment">    /** picture parameter information for all supported codecs */</span>
<a name="l00248"></a><a class="code" href="structvdpau__render__state.html#a761eb1f0760c95d8e755b4b9ac20c77c">00248</a>     <span class="keyword">union </span><a class="code" href="unionAVVDPAUPictureInfo.html">AVVDPAUPictureInfo</a> <a class="code" href="structvdpau__render__state.html#a761eb1f0760c95d8e755b4b9ac20c77c" title="picture parameter information for all supported codecs">info</a>;
<a name="l00249"></a>00249 <span class="preprocessor">#endif</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span>};
<a name="l00251"></a>00251 <span class="preprocessor">#endif</span>
<a name="l00252"></a>00252 <span class="preprocessor"></span>
<a name="l00253"></a>00253 <span class="comment">/* @}*/</span>
<a name="l00254"></a>00254 
<a name="l00255"></a>00255 <span class="preprocessor">#endif </span><span class="comment">/* AVCODEC_VDPAU_H */</span>
</pre></div></div><!-- contents -->
<!-- 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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</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>



<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.7.6.1
</small></address>

</body>
</html>