<!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_codec.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 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><a href="annotated.html"><span>Data 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 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_codec.h</div> </div> </div> <div class="contents"> <a href="vpx__codec_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="l00039"></a>00039 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00040"></a>00040 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00041"></a>00041 <span class="preprocessor">#endif</span> <a name="l00042"></a>00042 <span class="preprocessor"></span> <a name="l00043"></a>00043 <span class="preprocessor">#ifndef VPX_CODEC_H</span> <a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define VPX_CODEC_H</span> <a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#include "vpx_integer.h"</span> <a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="vpx__image_8h.html" title="Describes the vpx image descriptor and associated operations.">vpx_image.h</a>"</span> <a name="l00047"></a>00047 <a name="l00049"></a>00049 <span class="preprocessor">#ifndef DEPRECATED</span> <a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#if defined(__GNUC__) && __GNUC__</span> <a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define DEPRECATED __attribute__ ((deprecated))</span> <a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define DECLSPEC_DEPRECATED </span> <a name="l00053"></a>00053 <span class="preprocessor">#elif defined(_MSC_VER)</span> <a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#define DEPRECATED</span> <a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#define DECLSPEC_DEPRECATED __declspec(deprecated) </span> <a name="l00056"></a>00056 <span class="preprocessor">#else</span> <a name="l00057"></a><a class="code" href="group__codec.html#gac1e8a42306d8e67cb94ca31c3956ee78">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define DEPRECATED</span> <a name="l00058"></a><a class="code" href="group__codec.html#gab61b56b074706ee8423d864b511212ad">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define DECLSPEC_DEPRECATED </span> <a name="l00059"></a>00059 <span class="preprocessor">#endif</span> <a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00061"></a>00061 <span class="preprocessor"></span> <a name="l00063"></a>00063 <span class="preprocessor">#ifdef UNUSED</span> <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#elif __GNUC__</span> <a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define UNUSED __attribute__ ((unused))</span> <a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#else</span> <a name="l00067"></a><a class="code" href="group__codec.html#gaddf5ec070e9499d36b7f2009ce736076">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define UNUSED</span> <a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00069"></a>00069 <span class="preprocessor"></span> <a name="l00078"></a><a class="code" href="group__codec.html#gaf7e9cad2df0f81679b881f46740ad097">00078</a> <span class="preprocessor">#define VPX_CODEC_ABI_VERSION (2 + VPX_IMAGE_ABI_VERSION) </span> <a name="l00081"></a><a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2">00081</a> <span class="preprocessor"> typedef enum {</span> <a name="l00082"></a>00082 <span class="preprocessor"></span> <a name="l00083"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2af1dcde74b1c5ff7b29f31246dfd90986">00083</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2af1dcde74b1c5ff7b29f31246dfd90986" title="Operation completed without error.">VPX_CODEC_OK</a>, <a name="l00084"></a>00084 <a name="l00086"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2abd8a8f9c2588adab5d764d957e265135">00086</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2abd8a8f9c2588adab5d764d957e265135" title="Unspecified error.">VPX_CODEC_ERROR</a>, <a name="l00087"></a>00087 <a name="l00089"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a96c6d2600dc0ec25c2cb798e8d2f4760">00089</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a96c6d2600dc0ec25c2cb798e8d2f4760" title="Memory operation failed.">VPX_CODEC_MEM_ERROR</a>, <a name="l00090"></a>00090 <a name="l00092"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2afe8f723512f728bc518bbfba3b96d324">00092</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2afe8f723512f728bc518bbfba3b96d324" title="ABI version mismatch.">VPX_CODEC_ABI_MISMATCH</a>, <a name="l00093"></a>00093 <a name="l00095"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a4470784ba5a3ef84dc0697d5489dd292">00095</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a4470784ba5a3ef84dc0697d5489dd292" title="Algorithm does not have required capability.">VPX_CODEC_INCAPABLE</a>, <a name="l00096"></a>00096 <a name="l00102"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2afff886e57782098a3df13d4e349ca973">00102</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2afff886e57782098a3df13d4e349ca973" title="The given bitstream is not supported.">VPX_CODEC_UNSUP_BITSTREAM</a>, <a name="l00103"></a>00103 <a name="l00111"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a8a86701e65d826d82651537aadd6c539">00111</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a8a86701e65d826d82651537aadd6c539" title="Encoded bitstream uses an unsupported feature.">VPX_CODEC_UNSUP_FEATURE</a>, <a name="l00112"></a>00112 <a name="l00121"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a29d03c009e0479dbf4ecbd8db1011b85">00121</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a29d03c009e0479dbf4ecbd8db1011b85" title="The coded data for this stream is corrupt or incomplete.">VPX_CODEC_CORRUPT_FRAME</a>, <a name="l00122"></a>00122 <a name="l00126"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2ab5857f7b5f03f8ca164fab8843a979df">00126</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2ab5857f7b5f03f8ca164fab8843a979df" title="An application-supplied parameter is not valid.">VPX_CODEC_INVALID_PARAM</a>, <a name="l00127"></a>00127 <a name="l00131"></a><a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a452450a5adfcc14ef8a0ac12611dae21">00131</a> <a class="code" href="group__codec.html#ggada1084710837ad363b92f2379dd2b8d2a452450a5adfcc14ef8a0ac12611dae21" title="An iterator reached the end of list.">VPX_CODEC_LIST_END</a> <a name="l00132"></a>00132 <a name="l00133"></a>00133 } <a name="l00134"></a>00134 <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a>; <a name="l00135"></a>00135 <a name="l00136"></a>00136 <a name="l00145"></a><a class="code" href="group__codec.html#gad2b690c0ef83cbd83a7234078791913f">00145</a> <span class="keyword">typedef</span> <span class="keywordtype">long</span> <a class="code" href="group__codec.html#gad2b690c0ef83cbd83a7234078791913f" title="Codec capabilities bitfield.">vpx_codec_caps_t</a>; <a name="l00146"></a><a class="code" href="group__codec.html#gae10ad7f9548170aef77df09d48ad108a">00146</a> <span class="preprocessor">#define VPX_CODEC_CAP_DECODER 0x1 </span> <a name="l00147"></a><a class="code" href="group__codec.html#gab2e8b76fff95ebd573a17bdc11f8a441">00147</a> <span class="preprocessor">#define VPX_CODEC_CAP_ENCODER 0x2 </span> <a name="l00148"></a><a class="code" href="group__codec.html#gadbaf864317eb8294fd518862a1e6f9d4">00148</a> <span class="preprocessor">#define VPX_CODEC_CAP_XMA 0x4 </span> <a name="l00158"></a><a class="code" href="group__codec.html#ga3b36d5af89ddc463489fe5bde0a57877">00158</a> <span class="preprocessor"> typedef long vpx_codec_flags_t;</span> <a name="l00159"></a><a class="code" href="group__codec.html#gab363c255f13717f693762c3dcf0b93d6">00159</a> <span class="preprocessor"></span><span class="preprocessor">#define VPX_CODEC_USE_XMA 0x00000001 </span> <a name="l00167"></a><a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e">00167</a> <span class="preprocessor"> typedef const struct vpx_codec_iface vpx_codec_iface_t;</span> <a name="l00168"></a>00168 <span class="preprocessor"></span> <a name="l00169"></a>00169 <a name="l00175"></a><a class="code" href="group__codec.html#ga1e262f91be9141a7176335fd409397ab">00175</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>vpx_codec_priv <a class="code" href="group__codec.html#ga1e262f91be9141a7176335fd409397ab" title="Codec private data structure.">vpx_codec_priv_t</a>; <a name="l00176"></a>00176 <a name="l00177"></a>00177 <a name="l00182"></a><a class="code" href="group__codec.html#ga6ea348f76b1f8a1fe50e14db684146c6">00182</a> <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="keywordtype">void</span> *<a class="code" href="group__codec.html#ga6ea348f76b1f8a1fe50e14db684146c6" title="Iterator.">vpx_codec_iter_t</a>; <a name="l00183"></a>00183 <a name="l00184"></a>00184 <a name="l00193"></a><a class="code" href="structvpx__codec__ctx.html">00193</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx</a> <a name="l00194"></a>00194 { <a name="l00195"></a><a class="code" href="structvpx__codec__ctx.html#a7ed1bf8f6434ea2df01da8011849c6cb">00195</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structvpx__codec__ctx.html#a7ed1bf8f6434ea2df01da8011849c6cb">name</a>; <a name="l00196"></a><a class="code" href="structvpx__codec__ctx.html#af5986790e3420beda77f3a9b64f6b953">00196</a> <a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a> *<a class="code" href="structvpx__codec__ctx.html#af5986790e3420beda77f3a9b64f6b953">iface</a>; <a name="l00197"></a><a class="code" href="structvpx__codec__ctx.html#a6f448802b0675013fd8c5179675c30de">00197</a> <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="structvpx__codec__ctx.html#a6f448802b0675013fd8c5179675c30de">err</a>; <a name="l00198"></a><a class="code" href="structvpx__codec__ctx.html#ad785c88ae862dd9129965c72723260bd">00198</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structvpx__codec__ctx.html#ad785c88ae862dd9129965c72723260bd">err_detail</a>; <a name="l00199"></a><a class="code" href="structvpx__codec__ctx.html#a76546548086c060a6bd21cb55037fb2b">00199</a> <a class="code" href="group__codec.html#ga3b36d5af89ddc463489fe5bde0a57877" title="Initialization-time Feature Enabling.">vpx_codec_flags_t</a> <a class="code" href="structvpx__codec__ctx.html#a76546548086c060a6bd21cb55037fb2b">init_flags</a>; <a name="l00200"></a>00200 <span class="keyword">union</span> <a name="l00201"></a>00201 { <a name="l00202"></a><a class="code" href="structvpx__codec__ctx.html#abb82988485a036fb80e36ed22ec1e984">00202</a> <span class="keyword">struct </span><a class="code" href="structvpx__codec__dec__cfg.html" title="Initialization Configurations.">vpx_codec_dec_cfg</a> *<a class="code" href="structvpx__codec__ctx.html#abb82988485a036fb80e36ed22ec1e984">dec</a>; <a name="l00203"></a><a class="code" href="structvpx__codec__ctx.html#a3755f3c166d9aacd8a262a81ac18fa8f">00203</a> <span class="keyword">struct </span><a class="code" href="structvpx__codec__enc__cfg.html" title="Encoder configuration structure.">vpx_codec_enc_cfg</a> *<a class="code" href="structvpx__codec__ctx.html#a3755f3c166d9aacd8a262a81ac18fa8f">enc</a>; <a name="l00204"></a>00204 <span class="keywordtype">void</span> *raw; <a name="l00205"></a>00205 } <a class="code" href="structvpx__codec__ctx.html#aaa15a858376e55269a0a7ba5bff09f04">config</a>; <a name="l00206"></a><a class="code" href="structvpx__codec__ctx.html#acee775fd5b7580e112e245ce39733f92">00206</a> <a class="code" href="group__codec.html#ga1e262f91be9141a7176335fd409397ab" title="Codec private data structure.">vpx_codec_priv_t</a> *<a class="code" href="structvpx__codec__ctx.html#acee775fd5b7580e112e245ce39733f92">priv</a>; <a name="l00207"></a>00207 } <a class="code" href="group__codec.html#gad03e2dfa6ae511db7d25be6bbb336233" title="Codec context structure.">vpx_codec_ctx_t</a>; <a name="l00208"></a>00208 <a name="l00209"></a>00209 <a name="l00210"></a>00210 <span class="comment">/*</span> <a name="l00211"></a>00211 <span class="comment"> * Library Version Number Interface</span> <a name="l00212"></a>00212 <span class="comment"> *</span> <a name="l00213"></a>00213 <span class="comment"> * For example, see the following sample return values:</span> <a name="l00214"></a>00214 <span class="comment"> * vpx_codec_version() (1<<16 | 2<<8 | 3)</span> <a name="l00215"></a>00215 <span class="comment"> * vpx_codec_version_str() "v1.2.3-rc1-16-gec6a1ba"</span> <a name="l00216"></a>00216 <span class="comment"> * vpx_codec_version_extra_str() "rc1-16-gec6a1ba"</span> <a name="l00217"></a>00217 <span class="comment"> */</span> <a name="l00218"></a>00218 <a name="l00227"></a>00227 <span class="keywordtype">int</span> <a class="code" href="group__codec.html#ga163037ae037ac760da65e4130c7d4767" title="Return the version information (as an integer)">vpx_codec_version</a>(<span class="keywordtype">void</span>); <a name="l00228"></a><a class="code" href="group__codec.html#gadebddd67347fe47c0772b1e06b6173ba">00228</a> <span class="preprocessor">#define VPX_VERSION_MAJOR(v) ((v>>16)&0xff) </span> <a name="l00229"></a><a class="code" href="group__codec.html#ga4a5ce4588576306dee0d95e8f8706f86">00229</a> <span class="preprocessor">#define VPX_VERSION_MINOR(v) ((v>>8)&0xff) </span> <a name="l00230"></a><a class="code" href="group__codec.html#ga4acf2cf4c35ff123d17cd67c069fdbaa">00230</a> <span class="preprocessor">#define VPX_VERSION_PATCH(v) ((v>>0)&0xff) </span> <a name="l00233"></a><a class="code" href="group__codec.html#gaf314b746e4e202045e85ac073c29a495">00233</a> <span class="preprocessor">#define vpx_codec_version_major() ((vpx_codec_version()>>16)&0xff)</span> <a name="l00234"></a>00234 <span class="preprocessor"></span> <a name="l00236"></a><a class="code" href="group__codec.html#ga2b668688a7d1551ea89bcda8f2587f93">00236</a> <span class="preprocessor">#define vpx_codec_version_minor() ((vpx_codec_version()>>8)&0xff)</span> <a name="l00237"></a>00237 <span class="preprocessor"></span> <a name="l00239"></a><a class="code" href="group__codec.html#ga8ed64bded0d763fa2158312ac8fbcf26">00239</a> <span class="preprocessor">#define vpx_codec_version_patch() ((vpx_codec_version()>>0)&0xff)</span> <a name="l00240"></a>00240 <span class="preprocessor"></span> <a name="l00241"></a>00241 <a name="l00249"></a>00249 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga163fbcc6dd33827b28b9829a0a86cf59" title="Return the version information (as a string)">vpx_codec_version_str</a>(<span class="keywordtype">void</span>); <a name="l00250"></a>00250 <a name="l00251"></a>00251 <a name="l00258"></a>00258 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga286c0d4271fea4c488d791154d8f9098" title="Return the version information (as a string)">vpx_codec_version_extra_str</a>(<span class="keywordtype">void</span>); <a name="l00259"></a>00259 <a name="l00260"></a>00260 <a name="l00267"></a>00267 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga20922bad85472e76d5f61c21cb423af7" title="Return the build configuration.">vpx_codec_build_config</a>(<span class="keywordtype">void</span>); <a name="l00268"></a>00268 <a name="l00269"></a>00269 <a name="l00277"></a>00277 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga9eee39f450d8cdcf5aba0e2bda6e5aa8" title="Return the name for a given interface.">vpx_codec_iface_name</a>(<a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a> *iface); <a name="l00278"></a>00278 <a name="l00279"></a>00279 <a name="l00290"></a>00290 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#gaaddf5c1f609ef18c7c8800d102fcefa6" title="Convert error number to printable string.">vpx_codec_err_to_string</a>(<a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> err); <a name="l00291"></a>00291 <a name="l00292"></a>00292 <a name="l00303"></a>00303 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga4d265df00d42b36a4f0e3eb83fc22c5e" title="Retrieve error synopsis for codec context.">vpx_codec_error</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx); <a name="l00304"></a>00304 <a name="l00305"></a>00305 <a name="l00316"></a>00316 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group__codec.html#ga29273cb552ed1a437fe263c4a0a54300" title="Retrieve detailed error information for codec context.">vpx_codec_error_detail</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx); <a name="l00317"></a>00317 <a name="l00318"></a>00318 <a name="l00319"></a>00319 <span class="comment">/* REQUIRED FUNCTIONS</span> <a name="l00320"></a>00320 <span class="comment"> *</span> <a name="l00321"></a>00321 <span class="comment"> * The following functions are required to be implemented for all codecs.</span> <a name="l00322"></a>00322 <span class="comment"> * They represent the base case functionality expected of all codecs.</span> <a name="l00323"></a>00323 <span class="comment"> */</span> <a name="l00324"></a>00324 <a name="l00336"></a>00336 <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__codec.html#ga6ae21d96909660d0ac978b59a863f53b" title="Destroy a codec instance.">vpx_codec_destroy</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx); <a name="l00337"></a>00337 <a name="l00338"></a>00338 <a name="l00346"></a>00346 <a class="code" href="group__codec.html#gad2b690c0ef83cbd83a7234078791913f" title="Codec capabilities bitfield.">vpx_codec_caps_t</a> <a class="code" href="group__codec.html#ga43adff58759093401235fb99247c82b8" title="Get the capabilities of an algorithm.">vpx_codec_get_caps</a>(<a class="code" href="group__codec.html#gad654f3da60151f5dfef70aca00ef1e9e" title="Codec interface structure.">vpx_codec_iface_t</a> *iface); <a name="l00347"></a>00347 <a name="l00348"></a>00348 <a name="l00373"></a>00373 <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__codec.html#gaf7849b69cc390b21d889c8c71f69ec14" title="Control algorithm.">vpx_codec_control_</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx, <a name="l00374"></a>00374 <span class="keywordtype">int</span> ctrl_id, <a name="l00375"></a>00375 ...); <a name="l00376"></a>00376 <span class="preprocessor">#if defined(VPX_DISABLE_CTRL_TYPECHECKS) && VPX_DISABLE_CTRL_TYPECHECKS</span> <a name="l00377"></a>00377 <span class="preprocessor"></span><span class="preprocessor"># define vpx_codec_control(ctx,id,data) vpx_codec_control_(ctx,id,data)</span> <a name="l00378"></a>00378 <span class="preprocessor"></span><span class="preprocessor"># define VPX_CTRL_USE_TYPE(id, typ)</span> <a name="l00379"></a>00379 <span class="preprocessor"></span><span class="preprocessor"># define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ)</span> <a name="l00380"></a>00380 <span class="preprocessor"></span><span class="preprocessor"># define VPX_CTRL_VOID(id, typ)</span> <a name="l00381"></a>00381 <span class="preprocessor"></span> <a name="l00382"></a>00382 <span class="preprocessor">#else</span> <a name="l00383"></a>00383 <span class="preprocessor"></span> <a name="l00392"></a><a class="code" href="group__codec.html#gac1b91e04698c1bd4c0a2b8aa85b08cd2">00392</a> <span class="preprocessor"># define vpx_codec_control(ctx,id,data) vpx_codec_control_##id(ctx,id,data)\</span> <a name="l00393"></a>00393 <span class="preprocessor"></span> <a name="l00407"></a>00407 <span class="preprocessor"># define VPX_CTRL_USE_TYPE(id, typ) \</span> <a name="l00408"></a><a class="code" href="group__codec.html#gaa7409a4cb58b155912f41a4d39d81a8a">00408</a> <span class="preprocessor"> static vpx_codec_err_t \</span> <a name="l00409"></a>00409 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) UNUSED;\</span> <a name="l00410"></a>00410 <span class="preprocessor"> \</span> <a name="l00411"></a>00411 <span class="preprocessor"> static vpx_codec_err_t \</span> <a name="l00412"></a>00412 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\</span> <a name="l00413"></a>00413 <span class="preprocessor"> return vpx_codec_control_(ctx, ctrl_id, data);\</span> <a name="l00414"></a>00414 <span class="preprocessor"> } </span> <a name="l00427"></a>00427 <span class="preprocessor"># define VPX_CTRL_USE_TYPE_DEPRECATED(id, typ) \</span> <a name="l00428"></a>00428 <span class="preprocessor"> DECLSPEC_DEPRECATED static vpx_codec_err_t \</span> <a name="l00429"></a>00429 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t*, int, typ) DEPRECATED UNUSED;\</span> <a name="l00430"></a>00430 <span class="preprocessor"> \</span> <a name="l00431"></a>00431 <span class="preprocessor"> DECLSPEC_DEPRECATED static vpx_codec_err_t \</span> <a name="l00432"></a>00432 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id, typ data) {\</span> <a name="l00433"></a>00433 <span class="preprocessor"> return vpx_codec_control_(ctx, ctrl_id, data);\</span> <a name="l00434"></a>00434 <span class="preprocessor"> } </span> <a name="l00447"></a>00447 <span class="preprocessor"># define VPX_CTRL_VOID(id) \</span> <a name="l00448"></a>00448 <span class="preprocessor"> static vpx_codec_err_t \</span> <a name="l00449"></a>00449 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t*, int) UNUSED;\</span> <a name="l00450"></a>00450 <span class="preprocessor"> \</span> <a name="l00451"></a>00451 <span class="preprocessor"> static vpx_codec_err_t \</span> <a name="l00452"></a>00452 <span class="preprocessor"> vpx_codec_control_##id(vpx_codec_ctx_t *ctx, int ctrl_id) {\</span> <a name="l00453"></a>00453 <span class="preprocessor"> return vpx_codec_control_(ctx, ctrl_id);\</span> <a name="l00454"></a>00454 <span class="preprocessor"> } </span> <a name="l00457"></a>00457 <span class="preprocessor">#endif</span> <a name="l00458"></a>00458 <span class="preprocessor"></span> <a name="l00459"></a>00459 <a name="l00476"></a>00476 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structvpx__codec__mmap.html" title="Memory Map Entry.">vpx_codec_mmap</a> <a name="l00477"></a>00477 { <a name="l00478"></a>00478 <span class="comment">/*</span> <a name="l00479"></a>00479 <span class="comment"> * The following members are set by the codec when requesting a segment</span> <a name="l00480"></a>00480 <span class="comment"> */</span> <a name="l00481"></a>00481 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structvpx__codec__mmap.html#a83f482a223678a60c22362f44e36e8c8">id</a>; <a name="l00482"></a>00482 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="structvpx__codec__mmap.html#ae6822e6985cef61d2341a8d429bea079">sz</a>; <a name="l00483"></a>00483 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structvpx__codec__mmap.html#a7875d3878f1d58c205f396c1f696987b">align</a>; <a name="l00484"></a>00484 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structvpx__codec__mmap.html#afd7f8fed412b7bb524bed8e6ed14400d">flags</a>; <a name="l00485"></a>00485 <span class="preprocessor">#define VPX_CODEC_MEM_ZERO 0x1 </span> <a name="l00486"></a>00486 <span class="preprocessor">#define VPX_CODEC_MEM_WRONLY 0x2 </span> <a name="l00487"></a>00487 <span class="preprocessor">#define VPX_CODEC_MEM_FAST 0x4 </span> <a name="l00489"></a>00489 <span class="preprocessor"> </span><span class="comment">/* The following members are to be filled in by the allocation function */</span> <a name="l00490"></a>00490 <span class="keywordtype">void</span> *<a class="code" href="structvpx__codec__mmap.html#a0f7580ef4f5680df53c1ef3bd5f66d01">base</a>; <a name="l00491"></a>00491 void (*<a class="code" href="structvpx__codec__mmap.html#a39476b4d60e41d0867e0966f09dc1e45">dtor</a>)(<span class="keyword">struct </span><a class="code" href="structvpx__codec__mmap.html" title="Memory Map Entry.">vpx_codec_mmap</a> *map); <a name="l00492"></a>00492 <span class="keywordtype">void</span> *<a class="code" href="structvpx__codec__mmap.html#ac2be21bb5e6d94332fff9c5f1263224f">priv</a>; <a name="l00493"></a>00493 } <a class="code" href="group__cap__xma.html#gaca7501932c5ec8a876729f661b752f07" title="Memory Map Entry.">vpx_codec_mmap_t</a>; <a name="l00517"></a>00517 <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__cap__xma.html#ga802003c8ed203def368a361fe0e92f13" title="Iterate over the list of segments to allocate.">vpx_codec_get_mem_map</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx, <a name="l00518"></a>00518 <a class="code" href="structvpx__codec__mmap.html" title="Memory Map Entry.">vpx_codec_mmap_t</a> *mmap, <a name="l00519"></a>00519 <a class="code" href="group__codec.html#ga6ea348f76b1f8a1fe50e14db684146c6" title="Iterator.">vpx_codec_iter_t</a> *iter); <a name="l00520"></a>00520 <a name="l00521"></a>00521 <a name="l00543"></a>00543 <a class="code" href="group__codec.html#gada1084710837ad363b92f2379dd2b8d2" title="Algorithm return codes.">vpx_codec_err_t</a> <a class="code" href="group__cap__xma.html#gac2df376a4d76282a5c117313182dcf53" title="Identify allocated segments to codec instance.">vpx_codec_set_mem_map</a>(<a class="code" href="structvpx__codec__ctx.html" title="Codec context structure.">vpx_codec_ctx_t</a> *ctx, <a name="l00544"></a>00544 <a class="code" href="structvpx__codec__mmap.html" title="Memory Map Entry.">vpx_codec_mmap_t</a> *mmaps, <a name="l00545"></a>00545 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num_maps); <a name="l00546"></a>00546 <a name="l00551"></a>00551 <span class="preprocessor">#endif</span> <a name="l00552"></a>00552 <span class="preprocessor"></span><span class="preprocessor">#ifdef __cplusplus</span> <a name="l00553"></a>00553 <span class="preprocessor"></span>} <a name="l00554"></a>00554 <span class="preprocessor">#endif</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Aug 16 2011 for WebM VP8 Codec SDK by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>