Repository URL to install this package:
|
Version:
8:3.0.2-1ubuntu3 ▾
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>FFmpeg: libavutil/cpu.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">FFmpeg
 <span id="projectnumber">3.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data 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 List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8d855866ba5d436d839c7fc557836cd9.html">libavutil</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">cpu.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="cpu_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2000, 2001, 2002 Fabrice Bellard</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * This file is part of FFmpeg.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * FFmpeg is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * License as published by the Free Software Foundation; either</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * FFmpeg is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * License along with FFmpeg; if not, write to the Free Software</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef AVUTIL_CPU_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span><span class="preprocessor">#define AVUTIL_CPU_H</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="attributes_8h.html">attributes.h</a>"</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="cpu_8h.html#af73205a325a7353debd757a40d379064"> 26</a></span> <span class="preprocessor">#define AV_CPU_FLAG_FORCE 0x80000000 </span><span class="comment">/* force usage of selected flags (OR) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor"></span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">/* lower 16 bits - CPU features */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="cpu_8h.html#aeab63e0c708c2c8cf519adb924306273"> 29</a></span> <span class="preprocessor">#define AV_CPU_FLAG_MMX 0x0001 </span><span class="comment">///< standard MMX</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="cpu_8h.html#a821273926dc2c8282d9b0990582e3e3f"> 30</a></span> <span class="comment"></span>#define AV_CPU_FLAG_MMXEXT 0x0002 <span class="comment">///< SSE integer functions or AMD MMX ext</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="cpu_8h.html#a53053dcf8c045b05ca3b5326db518b49"> 31</a></span> <span class="comment"></span>#define AV_CPU_FLAG_MMX2 0x0002 <span class="comment">///< SSE integer functions or AMD MMX ext</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="cpu_8h.html#afa9fdb485b595b4d3b2358ae46e7cc90"> 32</a></span> <span class="comment"></span>#define AV_CPU_FLAG_3DNOW 0x0004 <span class="comment">///< AMD 3DNOW</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="cpu_8h.html#a4cbf9faebf34070327d31989da5f14be"> 33</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE 0x0008 <span class="comment">///< SSE functions</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="cpu_8h.html#a0f19ba5104672eb4065f56f9a3877dc6"> 34</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE2 0x0010 <span class="comment">///< PIV SSE2 functions</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="cpu_8h.html#a7e90443f6a8a3f65c01d2a034c4a2cfd"> 35</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE2SLOW 0x40000000 <span class="comment">///< SSE2 supported, but usually not faster</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"></span><span class="comment"> ///< than regular MMX/SSE (e.g. Core1)</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="cpu_8h.html#a9bb0453b7c1a5e10e049c435240edb25"> 37</a></span> <span class="comment"></span>#define AV_CPU_FLAG_3DNOWEXT 0x0020 <span class="comment">///< AMD 3DNowExt</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="cpu_8h.html#a87b1633fbec64188f3eadb1bffd7703d"> 38</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE3 0x0040 <span class="comment">///< Prescott SSE3 functions</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="cpu_8h.html#a20f4702905f3ca20721afa834a4ab81d"> 39</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE3SLOW 0x20000000 <span class="comment">///< SSE3 supported, but usually not faster</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"></span><span class="comment"> ///< than regular MMX/SSE (e.g. Core1)</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="cpu_8h.html#aba281a8be7e4c8f87624c30ab227d1b6"> 41</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSSE3 0x0080 <span class="comment">///< Conroe SSSE3 functions</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="cpu_8h.html#ab11e6283f7f8b3f5bbc34fcb0eb20fc5"> 42</a></span> <span class="comment"></span>#define AV_CPU_FLAG_ATOM 0x10000000 <span class="comment">///< Atom processor, some SSSE3 instructions are slower</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="cpu_8h.html#a5dbc718bec5f578602a7854d05db76de"> 43</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE4 0x0100 <span class="comment">///< Penryn SSE4.1 functions</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="cpu_8h.html#a2e3bc1f71c16c5fe8975c10f30d69be7"> 44</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SSE42 0x0200 <span class="comment">///< Nehalem SSE4.2 functions</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="cpu_8h.html#a8bf5352ec0d64bbb19fc0fa1bdeb9201"> 45</a></span> <span class="comment"></span>#define AV_CPU_FLAG_AESNI 0x80000 <span class="comment">///< Advanced Encryption Standard functions</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="cpu_8h.html#afb5537bbc8fc14343de2b2ec15eeba17"> 46</a></span> <span class="comment"></span>#define AV_CPU_FLAG_AVX 0x4000 <span class="comment">///< AVX functions: requires OS support even if YMM registers aren't used</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="cpu_8h.html#adfe16e24b7016bbb64fa1937e04389f2"> 47</a></span> <span class="comment"></span>#define AV_CPU_FLAG_AVXSLOW 0x8000000 <span class="comment">///< AVX supported, but slow when using YMM registers (e.g. Bulldozer)</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="cpu_8h.html#a9db899a1c86c9ff8d05bbb667d2ffb21"> 48</a></span> <span class="comment"></span>#define AV_CPU_FLAG_XOP 0x0400 <span class="comment">///< Bulldozer XOP functions</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="cpu_8h.html#a5fc98ebd0ad5759f823070c0604a6778"> 49</a></span> <span class="comment"></span>#define AV_CPU_FLAG_FMA4 0x0800 <span class="comment">///< Bulldozer FMA4 functions</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="cpu_8h.html#a422f69279d4c977d660b72a47fa3478b"> 50</a></span> <span class="comment"></span>#define AV_CPU_FLAG_CMOV 0x1000 <span class="comment">///< supports cmov instruction</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="cpu_8h.html#ab5be3b16a597bf9cbd489968ce36e082"> 51</a></span> <span class="comment"></span>#define AV_CPU_FLAG_AVX2 0x8000 <span class="comment">///< AVX2 functions: requires OS support even if YMM registers aren't used</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="cpu_8h.html#a0bd7cc622a20c9007b534f6f3d6813d0"> 52</a></span> <span class="comment"></span>#define AV_CPU_FLAG_FMA3 0x10000 <span class="comment">///< Haswell FMA3 functions</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="cpu_8h.html#a0ff82a9bfc71daaeb7cc820eb3de4ddc"> 53</a></span> <span class="comment"></span>#define AV_CPU_FLAG_BMI1 0x20000 <span class="comment">///< Bit Manipulation Instruction Set 1</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="cpu_8h.html#a6da0856fda17125587965fe12f64c4f4"> 54</a></span> <span class="comment"></span>#define AV_CPU_FLAG_BMI2 0x40000 <span class="comment">///< Bit Manipulation Instruction Set 2</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="cpu_8h.html#aa6791350072da71e22a7dc3b3ddc6a0e"> 56</a></span> <span class="preprocessor">#define AV_CPU_FLAG_ALTIVEC 0x0001 </span><span class="comment">///< standard</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="cpu_8h.html#a65baf7beab71a0678e6374ea3d110f12"> 57</a></span> <span class="comment"></span>#define AV_CPU_FLAG_VSX 0x0002 <span class="comment">///< ISA 2.06</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="cpu_8h.html#a65d7913cdb148cd898ae1bd602de4551"> 58</a></span> <span class="comment"></span>#define AV_CPU_FLAG_POWER8 0x0004 <span class="comment">///< ISA 2.07</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="cpu_8h.html#a0ba37cad66b79c3ddf88693c2784359d"> 60</a></span> <span class="preprocessor">#define AV_CPU_FLAG_ARMV5TE (1 << 0)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="cpu_8h.html#ae5d6618c7fff92e08b04d6106328ae2a"> 61</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_ARMV6 (1 << 1)</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="cpu_8h.html#a9a7b76aa259dc33fa13f76340e071a35"> 62</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_ARMV6T2 (1 << 2)</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="cpu_8h.html#a283a152bbb636275c23d01a18b9bdc7b"> 63</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_VFP (1 << 3)</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="cpu_8h.html#a1bc3bbebdc0195433b08cba3453c512f"> 64</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_VFPV3 (1 << 4)</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="cpu_8h.html#a2fc7de5c42009f68624e5dd1c77d7390"> 65</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_NEON (1 << 5)</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="cpu_8h.html#acbf2841ca197280ccbaa56405f768025"> 66</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_ARMV8 (1 << 6)</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="cpu_8h.html#ab308fffe2a6135b661900584d48c539d"> 67</a></span> <span class="preprocessor"></span><span class="preprocessor">#define AV_CPU_FLAG_VFP_VM (1 << 7) </span><span class="comment">///< VFPv2 vector mode, deprecated in ARMv7-A and unavailable in various CPUs implementations</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="cpu_8h.html#a66d259974ecca8f1f846a40bb79f8520"> 68</a></span> <span class="comment"></span>#define AV_CPU_FLAG_SETEND (1 <<16)</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> * Return the flags which specify extensions supported by the CPU.</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> * The returned value is affected by av_force_cpu_flags() if that was used</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> * before. So av_get_cpu_flags() can easily be used in a application to</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> * detect the enabled cpu flags.</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">int</span> <a class="code" href="cpu_8h.html#af731555385cb4808386a716504d5fcc1">av_get_cpu_flags</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment"> * Disables cpu detection and forces the specified flags.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> * -1 is a special case that disables forcing of specific flags.</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">void</span> <a class="code" href="cpu_8h.html#a07015a8f8d5e73558e5deb683ad55823">av_force_cpu_flags</a>(<span class="keywordtype">int</span> flags);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment"></span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> * Set a mask on flags returned by av_get_cpu_flags().</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * This function is mainly useful for testing.</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * Please use av_force_cpu_flags() and av_get_cpu_flags() instead which are more flexible</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> * @warning this function is not thread safe.</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a> <span class="keywordtype">void</span> <a class="code" href="cpu_8h.html#a31d8326d4536304e315b9a79c9aa750f">av_set_cpu_flags_mask</a>(<span class="keywordtype">int</span> mask);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"></span></div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * Parse CPU flags from a string.</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> * The returned flags contain the specified flags as well as related unspecified flags.</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> * This function exists only for compatibility with libav.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> * Please use av_parse_cpu_caps() when possible.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment"> * @return a combination of AV_CPU_* flags, negative on error.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <a class="code" href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">int</span> <a class="code" href="cpu_8h.html#a577da6114dc4448f5defdac188a01644">av_parse_cpu_flags</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *s);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment"></span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment"> * Parse CPU caps from a string and update the given AV_CPU_* flags based on that.</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> * @return negative on error.</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keywordtype">int</span> <a class="code" href="cpu_8h.html#a851439bc19de673484e788402734b1a5">av_parse_cpu_caps</a>(<span class="keywordtype">unsigned</span> *flags, <span class="keyword">const</span> <span class="keywordtype">char</span> *s);</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">/**</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"> * @return the number of logical CPU cores present.</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">int</span> <a class="code" href="cpu_8h.html#af8bdb502bd3964052fc8595b0fe721a8">av_cpu_count</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="preprocessor">#endif </span><span class="comment">/* AVUTIL_CPU_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="cpu_8h_html_a577da6114dc4448f5defdac188a01644"><div class="ttname"><a href="cpu_8h.html#a577da6114dc4448f5defdac188a01644">av_parse_cpu_flags</a></div><div class="ttdeci">attribute_deprecated int av_parse_cpu_flags(const char *s)</div><div class="ttdoc">Parse CPU flags from a string. </div></div>
<div class="ttc" id="cpu_8h_html_a31d8326d4536304e315b9a79c9aa750f"><div class="ttname"><a href="cpu_8h.html#a31d8326d4536304e315b9a79c9aa750f">av_set_cpu_flags_mask</a></div><div class="ttdeci">attribute_deprecated void av_set_cpu_flags_mask(int mask)</div><div class="ttdoc">Set a mask on flags returned by av_get_cpu_flags(). </div></div>
<div class="ttc" id="attributes_8h_html"><div class="ttname"><a href="attributes_8h.html">attributes.h</a></div><div class="ttdoc">Macro definitions for various function/variable attributes. </div></div>
<div class="ttc" id="cpu_8h_html_a851439bc19de673484e788402734b1a5"><div class="ttname"><a href="cpu_8h.html#a851439bc19de673484e788402734b1a5">av_parse_cpu_caps</a></div><div class="ttdeci">int av_parse_cpu_caps(unsigned *flags, const char *s)</div><div class="ttdoc">Parse CPU caps from a string and update the given AV_CPU_* flags based on that. </div></div>
<div class="ttc" id="cpu_8h_html_a07015a8f8d5e73558e5deb683ad55823"><div class="ttname"><a href="cpu_8h.html#a07015a8f8d5e73558e5deb683ad55823">av_force_cpu_flags</a></div><div class="ttdeci">void av_force_cpu_flags(int flags)</div><div class="ttdoc">Disables cpu detection and forces the specified flags. </div></div>
<div class="ttc" id="attributes_8h_html_aa6d076561d3a9eea4729ee632652de02"><div class="ttname"><a href="attributes_8h.html#aa6d076561d3a9eea4729ee632652de02">attribute_deprecated</a></div><div class="ttdeci">#define attribute_deprecated</div><div class="ttdef"><b>Definition:</b> <a href="attributes_8h_source.html#l00094">attributes.h:94</a></div></div>
<div class="ttc" id="cpu_8h_html_af8bdb502bd3964052fc8595b0fe721a8"><div class="ttname"><a href="cpu_8h.html#af8bdb502bd3964052fc8595b0fe721a8">av_cpu_count</a></div><div class="ttdeci">int av_cpu_count(void)</div></div>
<div class="ttc" id="cpu_8h_html_af731555385cb4808386a716504d5fcc1"><div class="ttname"><a href="cpu_8h.html#af731555385cb4808386a716504d5fcc1">av_get_cpu_flags</a></div><div class="ttdeci">int av_get_cpu_flags(void)</div><div class="ttdoc">Return the flags which specify extensions supported by the CPU. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>