| <!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.13"/> |
| <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| <title>VA-API: VADisplayAttribValSubDevice Union Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></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 id="projectalign" style="padding-left: 0.5em;"> |
| <div id="projectname">VA-API |
|  <span id="projectnumber">2.19.0</span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.13 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <script type="text/javascript" src="menudata.js"></script> |
| <script type="text/javascript" src="menu.js"></script> |
| <script type="text/javascript"> |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| </script> |
| <div id="main-nav"></div> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| </div><!-- top --> |
| <div class="header"> |
| <div class="summary"> |
| <a href="unionVADisplayAttribValSubDevice-members.html">List of all members</a> </div> |
| <div class="headertitle"> |
| <div class="title">VADisplayAttribValSubDevice Union Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>sub device info Sub-device is the concept basing on the "device" behind "vaDisplay". If a device could be divided to several sub devices, the task of decode/encode/vpp could be assigned on one sub-device. So, application could choose the sub device before any other operations. After that, all of the task execution/resource allocation will be dispatched to the sub device. If application does not choose the sub device, driver will assign one as default. |
| <a href="unionVADisplayAttribValSubDevice.html#details">More...</a></p> |
| |
| <p><code>#include <<a class="el" href="va_8h_source.html">va.h</a>></code></p> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><p>sub device info Sub-device is the concept basing on the "device" behind "vaDisplay". If a device could be divided to several sub devices, the task of decode/encode/vpp could be assigned on one sub-device. So, application could choose the sub device before any other operations. After that, all of the task execution/resource allocation will be dispatched to the sub device. If application does not choose the sub device, driver will assign one as default. </p> |
| <p>If the value == VA_ATTRIB_NOT_SUPPORTED, it mean that the attribute is unsupport or UNKNOWN. </p> |
| </div><h2 class="groupheader">Member Data Documentation</h2> |
| <a id="a30da8e514e1d9018b67b936595e1e647"></a> |
| <h2 class="memtitle"><span class="permalink"><a href="#a30da8e514e1d9018b67b936595e1e647">◆ </a></span>sub_device_mask</h2> |
| |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">uint32_t VADisplayAttribValSubDevice::sub_device_mask</td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| <p>bit mask to indicate which sub_device is available, read only </p> |
| <div class="fragment"><div class="line"> <a class="code" href="unionVADisplayAttribValSubDevice.html">VADisplayAttribValSubDevice</a> reg;</div><div class="line"> VADisplayAttribute reg_attr;</div><div class="line"> reg_attr.type = VADisplayAttribSubDevice;</div><div class="line"> <a class="code" href="va_8h.html#a2ad3b148d5eedeb8b5a23fb97dc2df3c">vaGetDisplayAttributes</a>(dpy, &reg_attr, 1);</div><div class="line"> reg.value = reg_attr.value;</div><div class="line"></div><div class="line"> <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < reg.bits.<a class="code" href="unionVADisplayAttribValSubDevice.html#a079d51559ef84ae51ca74a1a63cdfa48">sub_device_count</a>; i ++ ){</div><div class="line"> <span class="keywordflow">if</span>((1<<i) & reg.bits.<a class="code" href="unionVADisplayAttribValSubDevice.html#a30da8e514e1d9018b67b936595e1e647">sub_device_mask</a>){</div><div class="line"> printf(<span class="stringliteral">"sub device %d can be selected"</span>, i);</div><div class="line"> }</div><div class="line">}</div></div><!-- fragment --> |
| </div> |
| </div> |
| <hr/>The documentation for this union was generated from the following file:<ul> |
| <li><a class="el" href="va_8h_source.html">va.h</a></li> |
| </ul> |
| </div><!-- contents --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated for VA-API by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13</small></address> |
| </body> |
| </html> |