Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > e9a2bf4cbad8eb886872edae7c352314 > files > 107

libvpx-devel-1.0.0-1.fc15.i686.rpm

<!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"/>
<title>WebM VP8 Codec SDK: vpx/vpx_encoder.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">WebM VP8 Codec SDK</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <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>
    </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 class="header">
  <div class="headertitle">
<div class="title">vpx/vpx_encoder.h</div>  </div>
</div>
<div class="contents">
<a href="vpx__encoder_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"> *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> *  Use of this source code is governed by a BSD-style license</span>
<a name="l00005"></a>00005 <span class="comment"> *  that can be found in the LICENSE file in the root of the source</span>
<a name="l00006"></a>00006 <span class="comment"> *  tree. An additional intellectual property rights grant can be found</span>
<a name="l00007"></a>00007 <span class="comment"> *  in the file PATENTS.  All contributing project authors may</span>
<a name="l00008"></a>00008 <span class="comment"> *  be found in the AUTHORS file in the root of the source tree.</span>
<a name="l00009"></a>00009 <span class="comment"> */</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 
<a name="l00027"></a>00027 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00029"></a>00029 <span class="preprocessor">#endif</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef VPX_ENCODER_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define VPX_ENCODER_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="vpx__codec_8h.html" title="Describes the codec algorithm interface to applications.">vpx_codec.h</a>&quot;</span>
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="preprocessor">#define MAX_PERIODICITY 16</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define MAX_LAYERS       5</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00046"></a><a class="code" href="group__encoder.html#gaa4f0b52293c08ba672429c3a03648b9d">00046</a> <span class="preprocessor">#define VPX_ENCODER_ABI_VERSION (3 + VPX_CODEC_ABI_VERSION) </span>
<a name="l00058"></a><a class="code" href="group__encoder.html#ga398803f408d6f71aae730b5ee7793e1c">00058</a> <span class="preprocessor">#define VPX_CODEC_CAP_PSNR  0x10000 </span>
<a name="l00065"></a><a class="code" href="group__encoder.html#ga69768adb51faa28d98870cbc77e9ea93">00065</a> <span class="preprocessor">#define VPX_CODEC_CAP_OUTPUT_PARTITION  0x20000</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a>00067 
<a name="l00075"></a><a class="code" href="group__encoder.html#ga57bb9eb1881c7e4bf86580660a5e40a0">00075</a> <span class="preprocessor">#define VPX_CODEC_USE_PSNR  0x10000 </span>
<a name="l00076"></a><a class="code" href="group__encoder.html#gac26cd92b3719953aa0fbb0ff8c1d9c8d">00076</a> <span class="preprocessor">#define VPX_CODEC_USE_OUTPUT_PARTITION  0x20000 </span>
<a name="l00084"></a><a class="code" href="structvpx__fixed__buf.html">00084</a> <span class="preprocessor">    typedef struct vpx_fixed_buf</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>    {
<a name="l00086"></a><a class="code" href="structvpx__fixed__buf.html#ac93e43ae3fcc1023dca86d37016ae3f0">00086</a>         <span class="keywordtype">void</span>          *<a class="code" href="structvpx__fixed__buf.html#ac93e43ae3fcc1023dca86d37016ae3f0">buf</a>; 
<a name="l00087"></a><a class="code" href="structvpx__fixed__buf.html#a43d7f8247ed9752f65f0a7639817ae84">00087</a>         <span class="keywordtype">size_t</span>         <a class="code" href="structvpx__fixed__buf.html#a43d7f8247ed9752f65f0a7639817ae84">sz</a>;  
<a name="l00088"></a>00088     } <a class="code" href="group__encoder.html#ga21fab7dd28065f349c97165501223764" title="Generic fixed size buffer structure.">vpx_fixed_buf_t</a>; 
<a name="l00096"></a><a class="code" href="group__encoder.html#ga7e711b0a71c65aef8f0faea8bd57b05f">00096</a>     <span class="keyword">typedef</span> int64_t <a class="code" href="group__encoder.html#ga7e711b0a71c65aef8f0faea8bd57b05f" title="Time Stamp Type.">vpx_codec_pts_t</a>;
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 
<a name="l00106"></a><a class="code" href="group__encoder.html#gaac8ee319b9a6175f6946f59437c7ae4b">00106</a>     <span class="keyword">typedef</span> uint32_t <a class="code" href="group__encoder.html#gaac8ee319b9a6175f6946f59437c7ae4b" title="Compressed Frame Flags.">vpx_codec_frame_flags_t</a>;
<a name="l00107"></a><a class="code" href="group__encoder.html#ga7a896eb3bc74f33419e6a9812c60e4c9">00107</a> <span class="preprocessor">#define VPX_FRAME_IS_KEY       0x1 </span>
<a name="l00108"></a><a class="code" href="group__encoder.html#gab899503032065a30ac6864b4c89626a9">00108</a> <span class="preprocessor">#define VPX_FRAME_IS_DROPPABLE 0x2 </span>
<a name="l00111"></a><a class="code" href="group__encoder.html#ga060d7e881d249bdb6e1a29b42e559685">00111</a> <span class="preprocessor">#define VPX_FRAME_IS_INVISIBLE 0x4 </span>
<a name="l00113"></a><a class="code" href="group__encoder.html#gafb9f7dbf9b8a764c521d8b12c0e6959d">00113</a> <span class="preprocessor">#define VPX_FRAME_IS_FRAGMENT  0x8 </span>
<a name="l00122"></a><a class="code" href="group__encoder.html#ga77e0e1fff62556a4f4d54c84467a41f3">00122</a> <span class="preprocessor">    typedef uint32_t vpx_codec_er_flags_t;</span>
<a name="l00123"></a><a class="code" href="group__encoder.html#ga651e80c00662995ac9151bb7433db3e5">00123</a> <span class="preprocessor"></span><span class="preprocessor">#define VPX_ERROR_RESILIENT_DEFAULT     0x1 </span>
<a name="l00125"></a><a class="code" href="group__encoder.html#gac9b4ca99f12504d951589fac6854fc09">00125</a> <span class="preprocessor">#define VPX_ERROR_RESILIENT_PARTITIONS  0x2 </span>
<a name="l00140"></a><a class="code" href="group__encoder.html#ga28a79375279536526552af3a83d2ed72">00140</a> <span class="preprocessor">    enum vpx_codec_cx_pkt_kind</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span>    {
<a name="l00142"></a><a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a2261aae5594289400e812fb1e6b6b0cc">00142</a>         <a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a2261aae5594289400e812fb1e6b6b0cc">VPX_CODEC_CX_FRAME_PKT</a>,    
<a name="l00143"></a><a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a77cd8b95d9891bcce36117f5f31994fd">00143</a>         <a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a77cd8b95d9891bcce36117f5f31994fd">VPX_CODEC_STATS_PKT</a>,       
<a name="l00144"></a><a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a11eefa1328e6d22eb7c844645a260628">00144</a>         <a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a11eefa1328e6d22eb7c844645a260628">VPX_CODEC_PSNR_PKT</a>,        
<a name="l00145"></a><a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a7b54c122969397b1926de853d28b3c80">00145</a>         <a class="code" href="group__encoder.html#gga28a79375279536526552af3a83d2ed72a7b54c122969397b1926de853d28b3c80">VPX_CODEC_CUSTOM_PKT</a> = 256 
<a name="l00146"></a>00146     };
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 
<a name="l00154"></a><a class="code" href="structvpx__codec__cx__pkt.html">00154</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structvpx__codec__cx__pkt.html" title="Encoder output packet.">vpx_codec_cx_pkt</a>
<a name="l00155"></a>00155     {
<a name="l00156"></a><a class="code" href="structvpx__codec__cx__pkt.html#a41f395b39516343c1329a4a85a0084f2">00156</a>         <span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga28a79375279536526552af3a83d2ed72" title="Encoder output packet variants.">vpx_codec_cx_pkt_kind</a>  <a class="code" href="structvpx__codec__cx__pkt.html#a41f395b39516343c1329a4a85a0084f2">kind</a>; 
<a name="l00157"></a>00157         <span class="keyword">union</span>
<a name="l00158"></a>00158         {
<a name="l00159"></a>00159             <span class="keyword">struct</span>
<a name="l00160"></a>00160             {
<a name="l00161"></a><a class="code" href="structvpx__codec__cx__pkt.html#a9e1db068593b6037e70b05b5239784d2">00161</a>                 <span class="keywordtype">void</span>                    *<a class="code" href="structvpx__codec__cx__pkt.html#a9e1db068593b6037e70b05b5239784d2">buf</a>;      
<a name="l00162"></a><a class="code" href="structvpx__codec__cx__pkt.html#a857321ba2dc65e81c430d14c36a542d9">00162</a>                 <span class="keywordtype">size_t</span>                   <a class="code" href="structvpx__codec__cx__pkt.html#a857321ba2dc65e81c430d14c36a542d9">sz</a>;       
<a name="l00163"></a><a class="code" href="structvpx__codec__cx__pkt.html#aa75fe039fe6b47fb25d20684864bef12">00163</a>                 vpx_codec_pts_t          <a class="code" href="structvpx__codec__cx__pkt.html#aa75fe039fe6b47fb25d20684864bef12">pts</a>;      
<a name="l00165"></a><a class="code" href="structvpx__codec__cx__pkt.html#afb8d9069980e759d97d2eb9fae7e5e06">00165</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>            <a class="code" href="structvpx__codec__cx__pkt.html#afb8d9069980e759d97d2eb9fae7e5e06">duration</a>; 
<a name="l00167"></a><a class="code" href="structvpx__codec__cx__pkt.html#a3876fe0306342611465e9c15c6c4ae2f">00167</a>                 vpx_codec_frame_flags_t  <a class="code" href="structvpx__codec__cx__pkt.html#a3876fe0306342611465e9c15c6c4ae2f">flags</a>;    
<a name="l00168"></a><a class="code" href="structvpx__codec__cx__pkt.html#aaffee6af93af238ca7a145fb56c6d6f7">00168</a>                 <span class="keywordtype">int</span>                      <a class="code" href="structvpx__codec__cx__pkt.html#aaffee6af93af238ca7a145fb56c6d6f7">partition_id</a>; 
<a name="l00175"></a>00175             } <a class="code" href="structvpx__codec__cx__pkt.html#a81e33bf4408a3983abb16492fee359ff">frame</a>;  
<a name="l00176"></a><a class="code" href="structvpx__codec__cx__pkt.html#a53db8576979fa7335e478eb849b256f1">00176</a>             <span class="keyword">struct </span><a class="code" href="structvpx__fixed__buf.html" title="Generic fixed size buffer structure.">vpx_fixed_buf</a> <a class="code" href="structvpx__codec__cx__pkt.html#a53db8576979fa7335e478eb849b256f1">twopass_stats</a>;  
<a name="l00177"></a>00177             <span class="keyword">struct </span>vpx_psnr_pkt
<a name="l00178"></a>00178             {
<a name="l00179"></a><a class="code" href="structvpx__codec__cx__pkt.html#a4d3fc7eb2d19c5913c6f3f474e5cf77b">00179</a>                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structvpx__codec__cx__pkt.html#a4d3fc7eb2d19c5913c6f3f474e5cf77b">samples</a>[4];  
<a name="l00180"></a><a class="code" href="structvpx__codec__cx__pkt.html#ad65e918d3f26743cc7a8898b88bcb397">00180</a>                 uint64_t     <a class="code" href="structvpx__codec__cx__pkt.html#ad65e918d3f26743cc7a8898b88bcb397">sse</a>[4];      
<a name="l00181"></a><a class="code" href="structvpx__codec__cx__pkt.html#a63744aeceb50355d6402d55309c151b6">00181</a>                 <span class="keywordtype">double</span>       <a class="code" href="structvpx__codec__cx__pkt.html#a63744aeceb50355d6402d55309c151b6">psnr</a>[4];     
<a name="l00182"></a>00182             } <a class="code" href="structvpx__codec__cx__pkt.html#a63744aeceb50355d6402d55309c151b6">psnr</a>;                       
<a name="l00183"></a><a class="code" href="structvpx__codec__cx__pkt.html#acc7ee91ea9c907aea7c3b953324f7c26">00183</a>             <span class="keyword">struct </span><a class="code" href="structvpx__fixed__buf.html" title="Generic fixed size buffer structure.">vpx_fixed_buf</a> <a class="code" href="structvpx__codec__cx__pkt.html#acc7ee91ea9c907aea7c3b953324f7c26">raw</a>;     
<a name="l00185"></a>00185             <span class="comment">/* This packet size is fixed to allow codecs to extend this</span>
<a name="l00186"></a>00186 <span class="comment">             * interface without having to manage storage for raw packets,</span>
<a name="l00187"></a>00187 <span class="comment">             * i.e., if it&#39;s smaller than 128 bytes, you can store in the</span>
<a name="l00188"></a>00188 <span class="comment">             * packet list directly.</span>
<a name="l00189"></a>00189 <span class="comment">             */</span>
<a name="l00190"></a><a class="code" href="structvpx__codec__cx__pkt.html#a49a0ba012fdabd49bff8069dfacf6ced">00190</a>             <span class="keywordtype">char</span> <a class="code" href="structvpx__codec__cx__pkt.html#a49a0ba012fdabd49bff8069dfacf6ced">pad</a>[128 - <span class="keyword">sizeof</span>(<span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga28a79375279536526552af3a83d2ed72" title="Encoder output packet variants.">vpx_codec_cx_pkt_kind</a>)]; 
<a name="l00191"></a>00191         } <a class="code" href="structvpx__codec__cx__pkt.html#a7f97b060a23b7e89fe5b885c0074f696">data</a>; 
<a name="l00192"></a>00192     } <a class="code" href="group__encoder.html#ga3f711e17fbefac545e8959ef5a023556" title="Encoder output packet.">vpx_codec_cx_pkt_t</a>; 
<a name="l00199"></a><a class="code" href="structvpx__rational.html">00199</a>     <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structvpx__rational.html" title="Rational Number.">vpx_rational</a>
<a name="l00200"></a>00200     {
<a name="l00201"></a><a class="code" href="structvpx__rational.html#ae7774f21a22c9bef3aa73156c79f4731">00201</a>         <span class="keywordtype">int</span> <a class="code" href="structvpx__rational.html#ae7774f21a22c9bef3aa73156c79f4731">num</a>; 
<a name="l00202"></a><a class="code" href="structvpx__rational.html#a29dd2ab4001377b3aa21885ef969759f">00202</a>         <span class="keywordtype">int</span> <a class="code" href="structvpx__rational.html#a29dd2ab4001377b3aa21885ef969759f">den</a>; 
<a name="l00203"></a>00203     } <a class="code" href="group__encoder.html#ga2c08c6d71202024f17a5aef71a3d13e5" title="Rational Number.">vpx_rational_t</a>; 
<a name="l00207"></a><a class="code" href="group__encoder.html#ga476c5417f9c15a1dc5d3f68fa44c493f">00207</a>     <span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga476c5417f9c15a1dc5d3f68fa44c493f" title="Multi-pass Encoding Pass.">vpx_enc_pass</a>
<a name="l00208"></a>00208     {
<a name="l00209"></a><a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493fa7b6943a41868e8e26a77e9500f139ca1">00209</a>         <a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493fa7b6943a41868e8e26a77e9500f139ca1">VPX_RC_ONE_PASS</a>,   
<a name="l00210"></a><a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493faa0765945345b160905f3b762986dae3b">00210</a>         <a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493faa0765945345b160905f3b762986dae3b">VPX_RC_FIRST_PASS</a>, 
<a name="l00211"></a><a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493fa65da543b956d6a9b1f301ab8cc90d3a7">00211</a>         <a class="code" href="group__encoder.html#gga476c5417f9c15a1dc5d3f68fa44c493fa65da543b956d6a9b1f301ab8cc90d3a7">VPX_RC_LAST_PASS</a>   
<a name="l00212"></a>00212     };
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 
<a name="l00216"></a><a class="code" href="group__encoder.html#gaf50e74d91be4cae6f70dfeba5b7410d2">00216</a>     <span class="keyword">enum</span> <a class="code" href="group__encoder.html#gaf50e74d91be4cae6f70dfeba5b7410d2" title="Rate control mode.">vpx_rc_mode</a>
<a name="l00217"></a>00217     {
<a name="l00218"></a><a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2ab8fbe4441ed3f31a167c8194e8a64f87">00218</a>         <a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2ab8fbe4441ed3f31a167c8194e8a64f87">VPX_VBR</a>, 
<a name="l00219"></a><a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2a8b02853cb35790d60cc171a11f6c268a">00219</a>         <a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2a8b02853cb35790d60cc171a11f6c268a">VPX_CBR</a>,  
<a name="l00220"></a><a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2a5f2fd02b55c67d62bfd79380bcb03f63">00220</a>         <a class="code" href="group__encoder.html#ggaf50e74d91be4cae6f70dfeba5b7410d2a5f2fd02b55c67d62bfd79380bcb03f63">VPX_CQ</a>   
<a name="l00221"></a>00221     };
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 
<a name="l00232"></a><a class="code" href="group__encoder.html#ga9f461802aa4db35c04a8b23837987f40">00232</a>     <span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga9f461802aa4db35c04a8b23837987f40" title="Keyframe placement mode.">vpx_kf_mode</a>
<a name="l00233"></a>00233     {
<a name="l00234"></a><a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40a6bd87eea515c65661a5241a0f01e44a6">00234</a>         <a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40a6bd87eea515c65661a5241a0f01e44a6">VPX_KF_FIXED</a>, 
<a name="l00235"></a><a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40ab1b423e78f72e77d2dce755d6c9652f8">00235</a>         <a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40ab1b423e78f72e77d2dce755d6c9652f8">VPX_KF_AUTO</a>,  
<a name="l00236"></a><a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40a56513f60cbf3434ca0092173005d0ab2">00236</a>         <a class="code" href="group__encoder.html#gga9f461802aa4db35c04a8b23837987f40a56513f60cbf3434ca0092173005d0ab2">VPX_KF_DISABLED</a> = 0 
<a name="l00237"></a>00237     };
<a name="l00238"></a>00238 
<a name="l00239"></a>00239 
<a name="l00247"></a><a class="code" href="group__encoder.html#ga99e4a3c966f0de19fe1aa626bd860366">00247</a>     <span class="keyword">typedef</span> <span class="keywordtype">long</span> <a class="code" href="group__encoder.html#ga99e4a3c966f0de19fe1aa626bd860366" title="Encoded Frame Flags.">vpx_enc_frame_flags_t</a>;
<a name="l00248"></a><a class="code" href="group__encoder.html#ga4c4f4e3cbb5225d2c6c050e2d1e948fa">00248</a> <span class="preprocessor">#define VPX_EFLAG_FORCE_KF (1&lt;&lt;0)  </span>
<a name="l00257"></a><a class="code" href="structvpx__codec__enc__cfg.html">00257</a> <span class="preprocessor">    typedef struct vpx_codec_enc_cfg</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>    {
<a name="l00259"></a>00259         <span class="comment">/*</span>
<a name="l00260"></a>00260 <span class="comment">         * generic settings (g)</span>
<a name="l00261"></a>00261 <span class="comment">         */</span>
<a name="l00262"></a>00262 
<a name="l00270"></a><a class="code" href="structvpx__codec__enc__cfg.html#a5bcf7fc1efc4890de351e3c6fe252355">00270</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a5bcf7fc1efc4890de351e3c6fe252355" title="Algorithm specific &quot;usage&quot; value.">g_usage</a>;
<a name="l00271"></a>00271 
<a name="l00272"></a>00272 
<a name="l00279"></a><a class="code" href="structvpx__codec__enc__cfg.html#aff9d8d458c45c95dd542603210ba2b8b">00279</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#aff9d8d458c45c95dd542603210ba2b8b" title="Maximum number of threads to use.">g_threads</a>;
<a name="l00280"></a>00280 
<a name="l00281"></a>00281 
<a name="l00290"></a><a class="code" href="structvpx__codec__enc__cfg.html#a3d7fe3a8b237338c094d5a956a41804d">00290</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a3d7fe3a8b237338c094d5a956a41804d" title="Bitstream profile to use.">g_profile</a>;  
<a name="l00301"></a><a class="code" href="structvpx__codec__enc__cfg.html#a5c165f5b41ca1158f2883983a2b7709c">00301</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a5c165f5b41ca1158f2883983a2b7709c" title="Width of the frame.">g_w</a>;
<a name="l00302"></a>00302 
<a name="l00303"></a>00303 
<a name="l00311"></a><a class="code" href="structvpx__codec__enc__cfg.html#a4132bd89ce85bce7c08f2cc3b6f2b82e">00311</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a4132bd89ce85bce7c08f2cc3b6f2b82e" title="Height of the frame.">g_h</a>;
<a name="l00312"></a>00312 
<a name="l00313"></a>00313 
<a name="l00326"></a><a class="code" href="structvpx__codec__enc__cfg.html#a6498d378e4c29ef3e22258289e481087">00326</a>         <span class="keyword">struct </span><a class="code" href="structvpx__rational.html" title="Rational Number.">vpx_rational</a>    g_timebase;
<a name="l00327"></a>00327 
<a name="l00328"></a>00328 
<a name="l00335"></a><a class="code" href="structvpx__codec__enc__cfg.html#a4e17173b66ca0d7dfba9978625d7ba76">00335</a>         <a class="code" href="group__encoder.html#ga77e0e1fff62556a4f4d54c84467a41f3" title="Error Resilient flags.">vpx_codec_er_flags_t</a>   <a class="code" href="structvpx__codec__enc__cfg.html#a4e17173b66ca0d7dfba9978625d7ba76" title="Enable error resilient modes.">g_error_resilient</a>;
<a name="l00336"></a>00336 
<a name="l00337"></a>00337 
<a name="l00343"></a><a class="code" href="structvpx__codec__enc__cfg.html#a70d62d87aae7d1168746577f14a6dccf">00343</a>         <span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga476c5417f9c15a1dc5d3f68fa44c493f" title="Multi-pass Encoding Pass.">vpx_enc_pass</a>      <a class="code" href="structvpx__codec__enc__cfg.html#a70d62d87aae7d1168746577f14a6dccf" title="Multi-pass Encoding Mode.">g_pass</a>;
<a name="l00344"></a>00344 
<a name="l00345"></a>00345 
<a name="l00358"></a><a class="code" href="structvpx__codec__enc__cfg.html#a992668d9e30305f3f7ab2672ea31a890">00358</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a992668d9e30305f3f7ab2672ea31a890" title="Allow lagged encoding.">g_lag_in_frames</a>;
<a name="l00359"></a>00359 
<a name="l00360"></a>00360 
<a name="l00361"></a>00361         <span class="comment">/*</span>
<a name="l00362"></a>00362 <span class="comment">         * rate control settings (rc)</span>
<a name="l00363"></a>00363 <span class="comment">         */</span>
<a name="l00364"></a>00364 
<a name="l00381"></a><a class="code" href="structvpx__codec__enc__cfg.html#a619269f9a6904de58c4790e6806a3905">00381</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a619269f9a6904de58c4790e6806a3905" title="Temporal resampling configuration, if supported by the codec.">rc_dropframe_thresh</a>;
<a name="l00382"></a>00382 
<a name="l00383"></a>00383 
<a name="l00391"></a><a class="code" href="structvpx__codec__enc__cfg.html#a02a4e2f18fb0fdfff44df8b0d9a99d6c">00391</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a02a4e2f18fb0fdfff44df8b0d9a99d6c" title="Enable/disable spatial resampling, if supported by the codec.">rc_resize_allowed</a>;
<a name="l00392"></a>00392 
<a name="l00393"></a>00393 
<a name="l00400"></a><a class="code" href="structvpx__codec__enc__cfg.html#a855599c0660f31dfcab4a64996b4f6ad">00400</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a855599c0660f31dfcab4a64996b4f6ad" title="Spatial resampling up watermark.">rc_resize_up_thresh</a>;
<a name="l00401"></a>00401 
<a name="l00402"></a>00402 
<a name="l00409"></a><a class="code" href="structvpx__codec__enc__cfg.html#a1be7bd7b0eaf1e99b5e4028c37c65488">00409</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a1be7bd7b0eaf1e99b5e4028c37c65488" title="Spatial resampling down watermark.">rc_resize_down_thresh</a>;
<a name="l00410"></a>00410 
<a name="l00411"></a>00411 
<a name="l00420"></a><a class="code" href="structvpx__codec__enc__cfg.html#a99c415edb6c6f909a095a57c3430a116">00420</a>         <span class="keyword">enum</span> <a class="code" href="group__encoder.html#gaf50e74d91be4cae6f70dfeba5b7410d2" title="Rate control mode.">vpx_rc_mode</a>       <a class="code" href="structvpx__codec__enc__cfg.html#a99c415edb6c6f909a095a57c3430a116" title="Rate control algorithm to use.">rc_end_usage</a>;
<a name="l00421"></a>00421 
<a name="l00422"></a>00422 
<a name="l00428"></a><a class="code" href="structvpx__codec__enc__cfg.html#a618616a07d9d8883c544731957b56f3c">00428</a>         <span class="keyword">struct </span><a class="code" href="structvpx__fixed__buf.html" title="Generic fixed size buffer structure.">vpx_fixed_buf</a>   rc_twopass_stats_in;
<a name="l00429"></a>00429 
<a name="l00430"></a>00430 
<a name="l00435"></a><a class="code" href="structvpx__codec__enc__cfg.html#ab8339685175d66710f482706cc9f0aed">00435</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#ab8339685175d66710f482706cc9f0aed" title="Target data rate.">rc_target_bitrate</a>;
<a name="l00436"></a>00436 
<a name="l00437"></a>00437 
<a name="l00438"></a>00438         <span class="comment">/*</span>
<a name="l00439"></a>00439 <span class="comment">         * quantizer settings</span>
<a name="l00440"></a>00440 <span class="comment">         */</span>
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 
<a name="l00451"></a><a class="code" href="structvpx__codec__enc__cfg.html#a1324600e3c63faaa7717e85cf6509dd9">00451</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a1324600e3c63faaa7717e85cf6509dd9" title="Minimum (Best Quality) Quantizer.">rc_min_quantizer</a>;
<a name="l00452"></a>00452 
<a name="l00453"></a>00453 
<a name="l00462"></a><a class="code" href="structvpx__codec__enc__cfg.html#a8abdd985d317b720e142335887d737df">00462</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a8abdd985d317b720e142335887d737df" title="Maximum (Worst Quality) Quantizer.">rc_max_quantizer</a>;
<a name="l00463"></a>00463 
<a name="l00464"></a>00464 
<a name="l00465"></a>00465         <span class="comment">/*</span>
<a name="l00466"></a>00466 <span class="comment">         * bitrate tolerance</span>
<a name="l00467"></a>00467 <span class="comment">         */</span>
<a name="l00468"></a>00468 
<a name="l00469"></a>00469 
<a name="l00480"></a><a class="code" href="structvpx__codec__enc__cfg.html#ad279fbb0a9fe9395340913161e28651a">00480</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#ad279fbb0a9fe9395340913161e28651a" title="Rate control adaptation undershoot control.">rc_undershoot_pct</a>;
<a name="l00481"></a>00481 
<a name="l00482"></a>00482 
<a name="l00493"></a><a class="code" href="structvpx__codec__enc__cfg.html#a4f2fbd015c1b1f395cc4a4b03d4ead5f">00493</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a4f2fbd015c1b1f395cc4a4b03d4ead5f" title="Rate control adaptation overshoot control.">rc_overshoot_pct</a>;
<a name="l00494"></a>00494 
<a name="l00495"></a>00495 
<a name="l00496"></a>00496         <span class="comment">/*</span>
<a name="l00497"></a>00497 <span class="comment">         * decoder buffer model parameters</span>
<a name="l00498"></a>00498 <span class="comment">         */</span>
<a name="l00499"></a>00499 
<a name="l00500"></a>00500 
<a name="l00510"></a><a class="code" href="structvpx__codec__enc__cfg.html#a61866272bb588cd86d28834f420430f0">00510</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a61866272bb588cd86d28834f420430f0" title="Decoder Buffer Size.">rc_buf_sz</a>;
<a name="l00511"></a>00511 
<a name="l00512"></a>00512 
<a name="l00520"></a><a class="code" href="structvpx__codec__enc__cfg.html#aa9e4d6405994ef42d61d478cf6e0d5e0">00520</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#aa9e4d6405994ef42d61d478cf6e0d5e0" title="Decoder Buffer Initial Size.">rc_buf_initial_sz</a>;
<a name="l00521"></a>00521 
<a name="l00522"></a>00522 
<a name="l00530"></a><a class="code" href="structvpx__codec__enc__cfg.html#aafde485867e040a58504ad796e79e47f">00530</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#aafde485867e040a58504ad796e79e47f" title="Decoder Buffer Optimal Size.">rc_buf_optimal_sz</a>;
<a name="l00531"></a>00531 
<a name="l00532"></a>00532 
<a name="l00533"></a>00533         <span class="comment">/*</span>
<a name="l00534"></a>00534 <span class="comment">         * 2 pass rate control parameters</span>
<a name="l00535"></a>00535 <span class="comment">         */</span>
<a name="l00536"></a>00536 
<a name="l00537"></a>00537 
<a name="l00546"></a><a class="code" href="structvpx__codec__enc__cfg.html#a21c21ff097890dc3a450731c9b504cf4">00546</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a21c21ff097890dc3a450731c9b504cf4" title="Two-pass mode CBR/VBR bias.">rc_2pass_vbr_bias_pct</a>;       
<a name="l00554"></a><a class="code" href="structvpx__codec__enc__cfg.html#a21eb9fce0844ae07b617bf3f0a25f5a5">00554</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a21eb9fce0844ae07b617bf3f0a25f5a5" title="Two-pass mode per-GOP minimum bitrate.">rc_2pass_vbr_minsection_pct</a>;
<a name="l00555"></a>00555 
<a name="l00556"></a>00556 
<a name="l00562"></a><a class="code" href="structvpx__codec__enc__cfg.html#ab5212050b71b2d9f4dc663caa496949e">00562</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#ab5212050b71b2d9f4dc663caa496949e" title="Two-pass mode per-GOP maximum bitrate.">rc_2pass_vbr_maxsection_pct</a>;
<a name="l00563"></a>00563 
<a name="l00564"></a>00564 
<a name="l00565"></a>00565         <span class="comment">/*</span>
<a name="l00566"></a>00566 <span class="comment">         * keyframing settings (kf)</span>
<a name="l00567"></a>00567 <span class="comment">         */</span>
<a name="l00568"></a>00568 
<a name="l00575"></a><a class="code" href="structvpx__codec__enc__cfg.html#a491d67f061dcdb13f60c017563e9d788">00575</a>         <span class="keyword">enum</span> <a class="code" href="group__encoder.html#ga9f461802aa4db35c04a8b23837987f40" title="Keyframe placement mode.">vpx_kf_mode</a>       <a class="code" href="structvpx__codec__enc__cfg.html#a491d67f061dcdb13f60c017563e9d788" title="Keyframe placement mode.">kf_mode</a>;
<a name="l00576"></a>00576 
<a name="l00577"></a>00577 
<a name="l00585"></a><a class="code" href="structvpx__codec__enc__cfg.html#a0a7b5444ecb09745cbe8d5af17553846">00585</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a0a7b5444ecb09745cbe8d5af17553846" title="Keyframe minimum interval.">kf_min_dist</a>;
<a name="l00586"></a>00586 
<a name="l00587"></a>00587 
<a name="l00595"></a><a class="code" href="structvpx__codec__enc__cfg.html#ae018440136e271743376730413d25a9b">00595</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#ae018440136e271743376730413d25a9b" title="Keyframe maximum interval.">kf_max_dist</a>;
<a name="l00596"></a>00596 
<a name="l00597"></a>00597         <span class="comment">/*</span>
<a name="l00598"></a>00598 <span class="comment">         * Temporal scalability settings (ts)</span>
<a name="l00599"></a>00599 <span class="comment">         */</span>
<a name="l00600"></a>00600 
<a name="l00605"></a><a class="code" href="structvpx__codec__enc__cfg.html#a16d4549a30cbd585e3c3056ef873d8c7">00605</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a16d4549a30cbd585e3c3056ef873d8c7" title="Number of coding layers.">ts_number_layers</a>;
<a name="l00606"></a>00606 
<a name="l00611"></a><a class="code" href="structvpx__codec__enc__cfg.html#aba7ceb7a90500a8f76aff89575737f3a">00611</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           ts_target_bitrate[MAX_LAYERS];
<a name="l00612"></a>00612 
<a name="l00618"></a><a class="code" href="structvpx__codec__enc__cfg.html#ad40c30846ef8ef1d8684f10a491ec535">00618</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           ts_rate_decimator[MAX_LAYERS];
<a name="l00619"></a>00619 
<a name="l00627"></a><a class="code" href="structvpx__codec__enc__cfg.html#a4ec338780115dd270acf0dac24193474">00627</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           <a class="code" href="structvpx__codec__enc__cfg.html#a4ec338780115dd270acf0dac24193474" title="Length of the sequence defining frame layer membership.">ts_periodicity</a>;
<a name="l00628"></a>00628 
<a name="l00636"></a><a class="code" href="structvpx__codec__enc__cfg.html#a4d105d2470dbfb7210b33d298f1cf1f6">00636</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           ts_layer_id[MAX_PERIODICITY];
<a name="l00637"></a>00637     } <a class="code" href="group__encoder.html#ga946236c809e493b31a815d82db1e59db" title="Encoder configuration structure.">vpx_codec_enc_cfg_t</a>; 
<a name="l00662"></a>00662     <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__encoder.html#ga6ed21b96c481c0b6e1b543ef958a57a4" title="Initialize an encoder instance.">vpx_codec_enc_init_ver</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>      *ctx,
<a name="l00663"></a>00663                                            <a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a>    *iface,
<a name="l00664"></a>00664                                            <a class="code" href="structvpx__codec__enc__cfg.html" title="Encoder configuration structure.">vpx_codec_enc_cfg_t</a>  *cfg,
<a name="l00665"></a>00665                                            <a class="code" href="group__codec.html#ga3b36d5af89ddc463489fe5bde0a57877" title="Initialization-time Feature Enabling.">vpx_codec_flags_t</a>     flags,
<a name="l00666"></a>00666                                            <span class="keywordtype">int</span>                   ver);
<a name="l00667"></a>00667 
<a name="l00668"></a>00668 
<a name="l00673"></a><a class="code" href="group__encoder.html#ga3d490a2a9a6acd7c9ef82a603155f3cf">00673</a> <span class="preprocessor">#define vpx_codec_enc_init(ctx, iface, cfg, flags) \</span>
<a name="l00674"></a>00674 <span class="preprocessor">    vpx_codec_enc_init_ver(ctx, iface, cfg, flags, VPX_ENCODER_ABI_VERSION)</span>
<a name="l00675"></a>00675 <span class="preprocessor"></span>
<a name="l00676"></a>00676 
<a name="l00701"></a>00701     <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__encoder.html#ga1c0415984a5469687f53613a5471f53d" title="Initialize multi-encoder instance.">vpx_codec_enc_init_multi_ver</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>      *ctx,
<a name="l00702"></a>00702                                                  <a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a>    *iface,
<a name="l00703"></a>00703                                                  <a class="code" href="structvpx__codec__enc__cfg.html" title="Encoder configuration structure.">vpx_codec_enc_cfg_t</a>  *cfg,
<a name="l00704"></a>00704                                                  <span class="keywordtype">int</span>                   num_enc,
<a name="l00705"></a>00705                                                  <a class="code" href="group__codec.html#ga3b36d5af89ddc463489fe5bde0a57877" title="Initialization-time Feature Enabling.">vpx_codec_flags_t</a>     flags,
<a name="l00706"></a>00706                                                  <a class="code" href="structvpx__rational.html" title="Rational Number.">vpx_rational_t</a>       *dsf,
<a name="l00707"></a>00707                                                  <span class="keywordtype">int</span>                   ver);
<a name="l00708"></a>00708 
<a name="l00709"></a>00709 
<a name="l00714"></a><a class="code" href="group__encoder.html#gad7ae1d930cf110d6fe70beafeacfd9c7">00714</a> <span class="preprocessor">#define vpx_codec_enc_init_multi(ctx, iface, cfg, num_enc, flags, dsf) \</span>
<a name="l00715"></a>00715 <span class="preprocessor">    vpx_codec_enc_init_multi_ver(ctx, iface, cfg, num_enc, flags, dsf, \</span>
<a name="l00716"></a>00716 <span class="preprocessor">                                 VPX_ENCODER_ABI_VERSION)</span>
<a name="l00717"></a>00717 <span class="preprocessor"></span>
<a name="l00718"></a>00718 
<a name="l00738"></a>00738     <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a>  <a class="code" href="group__encoder.html#ga9ab8c79623312e9c5d5405d66a788f59" title="Get a default configuration.">vpx_codec_enc_config_default</a>(<a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a>    *iface,
<a name="l00739"></a>00739             <a class="code" href="structvpx__codec__enc__cfg.html" title="Encoder configuration structure.">vpx_codec_enc_cfg_t</a>  *cfg,
<a name="l00740"></a>00740             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>          usage);
<a name="l00741"></a>00741 
<a name="l00742"></a>00742 
<a name="l00757"></a>00757     <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a>  <a class="code" href="group__encoder.html#gabbc036b1fbc1288485df5562a989da9b" title="Set or change configuration.">vpx_codec_enc_config_set</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>            *ctx,
<a name="l00758"></a>00758             <span class="keyword">const</span> <a class="code" href="structvpx__codec__enc__cfg.html" title="Encoder configuration structure.">vpx_codec_enc_cfg_t</a>  *cfg);
<a name="l00759"></a>00759 
<a name="l00760"></a>00760 
<a name="l00772"></a>00772     <a class="code" href="structvpx__fixed__buf.html" title="Generic fixed size buffer structure.">vpx_fixed_buf_t</a> *<a class="code" href="group__encoder.html#ga512eb105fef18bebb02e134e4cbc82ff" title="Get global stream headers.">vpx_codec_get_global_headers</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>   *ctx);
<a name="l00773"></a>00773 
<a name="l00774"></a>00774 
<a name="l00775"></a><a class="code" href="group__encoder.html#ga04253cc9ec1146d72fa8bb86bcf32144">00775</a> <span class="preprocessor">#define VPX_DL_REALTIME     (1)        </span>
<a name="l00777"></a><a class="code" href="group__encoder.html#ga5d00a9f9e10b9f49ca91e72c1f01c9fd">00777</a> <span class="preprocessor">#define VPX_DL_GOOD_QUALITY (1000000)  </span>
<a name="l00779"></a><a class="code" href="group__encoder.html#gab350573bea112f2fdf8e5677db3ac0da">00779</a> <span class="preprocessor">#define VPX_DL_BEST_QUALITY (0)        </span>
<a name="l00817"></a>00817 <span class="preprocessor">    vpx_codec_err_t  vpx_codec_encode(vpx_codec_ctx_t            *ctx,</span>
<a name="l00818"></a>00818 <span class="preprocessor"></span>                                      <span class="keyword">const</span> <a class="code" href="structvpx__image.html" title="Image Descriptor.">vpx_image_t</a>          *img,
<a name="l00819"></a>00819                                       vpx_codec_pts_t             pts,
<a name="l00820"></a>00820                                       <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>               duration,
<a name="l00821"></a>00821                                       vpx_enc_frame_flags_t       flags,
<a name="l00822"></a>00822                                       <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>               deadline);
<a name="l00823"></a>00823 
<a name="l00867"></a>00867     <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__encoder.html#gae9f8f75978a1ebcf1f358964b55ecb9e" title="Set compressed data output buffer.">vpx_codec_set_cx_data_buf</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>       *ctx,
<a name="l00868"></a>00868             <span class="keyword">const</span> <a class="code" href="structvpx__fixed__buf.html" title="Generic fixed size buffer structure.">vpx_fixed_buf_t</a> *<a class="code" href="structvpx__fixed__buf.html#ac93e43ae3fcc1023dca86d37016ae3f0">buf</a>,
<a name="l00869"></a>00869             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           pad_before,
<a name="l00870"></a>00870             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>           pad_after);
<a name="l00871"></a>00871 
<a name="l00872"></a>00872 
<a name="l00896"></a>00896     <span class="keyword">const</span> <a class="code" href="structvpx__codec__cx__pkt.html" title="Encoder output packet.">vpx_codec_cx_pkt_t</a> *<a class="code" href="group__encoder.html#gae81cab25d66cf3bc59f1f75f8a5af720" title="Encoded data iterator.">vpx_codec_get_cx_data</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>   *ctx,
<a name="l00897"></a>00897             <a class="code" href="group__codec.html#ga6ea348f76b1f8a1fe50e14db684146c6" title="Iterator.">vpx_codec_iter_t</a>  *iter);
<a name="l00898"></a>00898 
<a name="l00899"></a>00899 
<a name="l00912"></a>00912     <span class="keyword">const</span> <a class="code" href="structvpx__image.html" title="Image Descriptor.">vpx_image_t</a> *<a class="code" href="group__encoder.html#ga250aee4536aa2475e85cf61c9710c963" title="Get Preview Frame.">vpx_codec_get_preview_frame</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a>   *ctx);
<a name="l00913"></a>00913 
<a name="l00914"></a>00914 
<a name="l00917"></a>00917 <span class="preprocessor">#endif</span>
<a name="l00918"></a>00918 <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00919"></a>00919 <span class="preprocessor"></span>}
<a name="l00920"></a>00920 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Jan 30 2012 for WebM VP8 Codec SDK by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>