libnx/native__window_8h.html
2025-05-08 06:59:12 +00:00

693 lines
46 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnx: include/switch/display/native_window.h File 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 id="projectrow">
<td id="projectalign">
<div id="projectname">libnx<span id="projectnumber">&#160;v4.9.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_42bea3d40f1f1694e41a8f3166c98108.html">switch</a></li><li class="navelem"><a class="el" href="dir_2b5b553157a94351151a308cd797ea35.html">display</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> </div>
<div class="headertitle"><div class="title">native_window.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Native window (<a class="el" href="structNWindow.html" title="Native window structure.">NWindow</a>) wrapper object, used for presenting images to the display (or other sinks).
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="mutex_8h_source.html">../kernel/mutex.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="event_8h_source.html">../kernel/event.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="vi_8h_source.html">../services/vi.h</a>&quot;</code><br />
<code>#include &quot;../nvidia/graphic_buffer.h&quot;</code><br />
<code>#include &quot;<a class="el" href="display_2types_8h_source.html">types.h</a>&quot;</code><br />
<code>#include &quot;binder.h&quot;</code><br />
<code>#include &quot;buffer_producer.h&quot;</code><br />
</div>
<p><a href="native__window_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structNWindow.html">NWindow</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Native window structure. <a href="structNWindow.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Basic functions</div></td></tr>
<tr class="memitem:afe7987b654e5dd06f7fdb00c9b4cb79b" id="r_afe7987b654e5dd06f7fdb00c9b4cb79b"><td class="memItemLeft" align="right" valign="top"><a id="afe7987b654e5dd06f7fdb00c9b4cb79b" name="afe7987b654e5dd06f7fdb00c9b4cb79b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>nwindowIsValid</b> (<a class="el" href="structNWindow.html">NWindow</a> *nw)</td></tr>
<tr class="memdesc:afe7987b654e5dd06f7fdb00c9b4cb79b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether a pointer refers to a valid <a class="el" href="structNWindow.html">NWindow</a> object. <br /></td></tr>
<tr class="separator:afe7987b654e5dd06f7fdb00c9b4cb79b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15a1695c9e19f666b396ce29a68891e9" id="r_a15a1695c9e19f666b396ce29a68891e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a15a1695c9e19f666b396ce29a68891e9">nwindowGetDefault</a> (void)</td></tr>
<tr class="memdesc:a15a1695c9e19f666b396ce29a68891e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the default <a class="el" href="structNWindow.html">NWindow</a> object. <br /></td></tr>
<tr class="separator:a15a1695c9e19f666b396ce29a68891e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd122ebc7b9dbde934f19a2c8c3d109c" id="r_abd122ebc7b9dbde934f19a2c8c3d109c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#abd122ebc7b9dbde934f19a2c8c3d109c">nwindowCreate</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="structService.html">Service</a> *binder_session, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> binder_id, bool producer_controlled_by_app)</td></tr>
<tr class="memdesc:abd122ebc7b9dbde934f19a2c8c3d109c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:abd122ebc7b9dbde934f19a2c8c3d109c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29f696363cff25799fb0c912be66b59a" id="r_a29f696363cff25799fb0c912be66b59a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a29f696363cff25799fb0c912be66b59a">nwindowCreateFromLayer</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, const <a class="el" href="structViLayer.html">ViLayer</a> *layer)</td></tr>
<tr class="memdesc:a29f696363cff25799fb0c912be66b59a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="structNWindow.html">NWindow</a> operating on a <a class="el" href="structViLayer.html">ViLayer</a>. <br /></td></tr>
<tr class="separator:a29f696363cff25799fb0c912be66b59a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67b0409f88787eec2e4c4438b8f613fd" id="r_a67b0409f88787eec2e4c4438b8f613fd"><td class="memItemLeft" align="right" valign="top"><a id="a67b0409f88787eec2e4c4438b8f613fd" name="a67b0409f88787eec2e4c4438b8f613fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>nwindowClose</b> (<a class="el" href="structNWindow.html">NWindow</a> *nw)</td></tr>
<tr class="memdesc:a67b0409f88787eec2e4c4438b8f613fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Closes a <a class="el" href="structNWindow.html">NWindow</a>, freeing all resources associated with it. <br /></td></tr>
<tr class="separator:a67b0409f88787eec2e4c4438b8f613fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Window configuration</div></td></tr>
<tr class="memitem:ac9bde326027224f3a78325aeb905be55" id="r_ac9bde326027224f3a78325aeb905be55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#ac9bde326027224f3a78325aeb905be55">nwindowGetDimensions</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *out_width, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *out_height)</td></tr>
<tr class="memdesc:ac9bde326027224f3a78325aeb905be55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the dimensions of a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:ac9bde326027224f3a78325aeb905be55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaf6cc9b314a52cb40d5f54cc1325ee9" id="r_afaf6cc9b314a52cb40d5f54cc1325ee9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#afaf6cc9b314a52cb40d5f54cc1325ee9">nwindowSetDimensions</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> width, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> height)</td></tr>
<tr class="memdesc:afaf6cc9b314a52cb40d5f54cc1325ee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the dimensions of a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:afaf6cc9b314a52cb40d5f54cc1325ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd960d92cccfd440771fa31a32563bac" id="r_acd960d92cccfd440771fa31a32563bac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#acd960d92cccfd440771fa31a32563bac">nwindowSetCrop</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> left, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> top, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> right, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> bottom)</td></tr>
<tr class="memdesc:acd960d92cccfd440771fa31a32563bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the crop applied to images presented through a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:acd960d92cccfd440771fa31a32563bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c3a6f914d37943eee1e62b97410d13b" id="r_a0c3a6f914d37943eee1e62b97410d13b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a0c3a6f914d37943eee1e62b97410d13b">nwindowSetTransform</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> transform)</td></tr>
<tr class="memdesc:a0c3a6f914d37943eee1e62b97410d13b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the transformation applied to images presented through a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:a0c3a6f914d37943eee1e62b97410d13b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf4f7c623f93a0fafe570c69891af6a3" id="r_aaf4f7c623f93a0fafe570c69891af6a3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#aaf4f7c623f93a0fafe570c69891af6a3">nwindowSetSwapInterval</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> swap_interval)</td></tr>
<tr class="memdesc:aaf4f7c623f93a0fafe570c69891af6a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the swap interval of a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:aaf4f7c623f93a0fafe570c69891af6a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45abc33079a46379271ed00ec00aa83e" id="r_a45abc33079a46379271ed00ec00aa83e"><td class="memItemLeft" align="right" valign="top"><a id="a45abc33079a46379271ed00ec00aa83e" name="a45abc33079a46379271ed00ec00aa83e"></a>
static bool&#160;</td><td class="memItemRight" valign="bottom"><b>nwindowIsConsumerRunningBehind</b> (<a class="el" href="structNWindow.html">NWindow</a> *nw)</td></tr>
<tr class="memdesc:a45abc33079a46379271ed00ec00aa83e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the consumer of a <a class="el" href="structNWindow.html">NWindow</a> is running behind. <br /></td></tr>
<tr class="separator:a45abc33079a46379271ed00ec00aa83e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Buffer configuration and presentation</div></td></tr>
<tr class="memitem:a7cada6db01ff0c1e31e45a7ec66ccb91" id="r_a7cada6db01ff0c1e31e45a7ec66ccb91"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a7cada6db01ff0c1e31e45a7ec66ccb91">nwindowConfigureBuffer</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> slot, <a class="el" href="structNvGraphicBuffer.html">NvGraphicBuffer</a> *buf)</td></tr>
<tr class="memdesc:a7cada6db01ff0c1e31e45a7ec66ccb91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a <a class="el" href="structNvGraphicBuffer.html">NvGraphicBuffer</a> with a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:a7cada6db01ff0c1e31e45a7ec66ccb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9ef3898d81314a6b27eeb45b90b116f" id="r_af9ef3898d81314a6b27eeb45b90b116f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> *out_slot, <a class="el" href="structNvMultiFence.html">NvMultiFence</a> *out_fence)</td></tr>
<tr class="memdesc:af9ef3898d81314a6b27eeb45b90b116f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dequeues a buffer from a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:af9ef3898d81314a6b27eeb45b90b116f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b6f88b62be01e7dcdeeb95b9a51e77c" id="r_a7b6f88b62be01e7dcdeeb95b9a51e77c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a7b6f88b62be01e7dcdeeb95b9a51e77c">nwindowCancelBuffer</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> slot, const <a class="el" href="structNvMultiFence.html">NvMultiFence</a> *fence)</td></tr>
<tr class="memdesc:a7b6f88b62be01e7dcdeeb95b9a51e77c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cancels a buffer previously dequeued with <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a>. <br /></td></tr>
<tr class="separator:a7b6f88b62be01e7dcdeeb95b9a51e77c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55a6d346e0006548fe6105e1d3e72c76" id="r_a55a6d346e0006548fe6105e1d3e72c76"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="native__window_8h.html#a55a6d346e0006548fe6105e1d3e72c76">nwindowQueueBuffer</a> (<a class="el" href="structNWindow.html">NWindow</a> *nw, <a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> slot, const <a class="el" href="structNvMultiFence.html">NvMultiFence</a> *fence)</td></tr>
<tr class="memdesc:a55a6d346e0006548fe6105e1d3e72c76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queues a buffer previously dequeued with <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a>, making it ready for presentation. <br /></td></tr>
<tr class="separator:a55a6d346e0006548fe6105e1d3e72c76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad91622ed63094c3a8dbdd3fae49a4a13" id="r_ad91622ed63094c3a8dbdd3fae49a4a13"><td class="memItemLeft" align="right" valign="top"><a id="ad91622ed63094c3a8dbdd3fae49a4a13" name="ad91622ed63094c3a8dbdd3fae49a4a13"></a>
<a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><b>nwindowReleaseBuffers</b> (<a class="el" href="structNWindow.html">NWindow</a> *nw)</td></tr>
<tr class="memdesc:ad91622ed63094c3a8dbdd3fae49a4a13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Releases all buffers registered with a <a class="el" href="structNWindow.html">NWindow</a>. <br /></td></tr>
<tr class="separator:ad91622ed63094c3a8dbdd3fae49a4a13"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Native window (<a class="el" href="structNWindow.html" title="Native window structure.">NWindow</a>) wrapper object, used for presenting images to the display (or other sinks). </p>
<dl class="section author"><dt>Author</dt><dd>fincs </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>libnx Authors </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a7b6f88b62be01e7dcdeeb95b9a51e77c" name="a7b6f88b62be01e7dcdeeb95b9a51e77c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b6f88b62be01e7dcdeeb95b9a51e77c">&#9670;&#160;</a></span>nwindowCancelBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowCancelBuffer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structNvMultiFence.html">NvMultiFence</a> *&#160;</td>
<td class="paramname"><em>fence</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Cancels a buffer previously dequeued with <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">slot</td><td>ID of the slot to cancel. This must match the output of the previous <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a> call. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">fence</td><td>Pointer to the <a class="el" href="structNvMultiFence.html">NvMultiFence</a> that will be waited on by the compositor before cancelling the buffer. Pass NULL if there is no such fence. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7cada6db01ff0c1e31e45a7ec66ccb91" name="a7cada6db01ff0c1e31e45a7ec66ccb91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cada6db01ff0c1e31e45a7ec66ccb91">&#9670;&#160;</a></span>nwindowConfigureBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowConfigureBuffer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structNvGraphicBuffer.html">NvGraphicBuffer</a> *&#160;</td>
<td class="paramname"><em>buf</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Registers a <a class="el" href="structNvGraphicBuffer.html">NvGraphicBuffer</a> with a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">slot</td><td>ID of the slot to configure (starting from 0). </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Pointer to <a class="el" href="structNvGraphicBuffer.html">NvGraphicBuffer</a> structure. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>When a buffer is registered, it is added to the internal queue of buffers used for presenting. </dd>
<dd>
All buffers registered with a <a class="el" href="structNWindow.html">NWindow</a> must have the same dimensions, format and usage. If <a class="el" href="native__window_8h.html#afaf6cc9b314a52cb40d5f54cc1325ee9">nwindowSetDimensions</a> has not been previously called, the <a class="el" href="structNWindow.html">NWindow</a> will automatically adopt the dimensions of the first buffer registered with it. Otherwise, said buffer will need to match the dimensions that were previously configured. </dd></dl>
</div>
</div>
<a id="abd122ebc7b9dbde934f19a2c8c3d109c" name="abd122ebc7b9dbde934f19a2c8c3d109c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd122ebc7b9dbde934f19a2c8c3d109c">&#9670;&#160;</a></span>nwindowCreate()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowCreate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structService.html">Service</a> *&#160;</td>
<td class="paramname"><em>binder_session</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>binder_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>producer_controlled_by_app</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">nw</td><td>Output <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">binder_session</td><td><a class="el" href="structService.html" title="Service object structure.">Service</a> object for the Android IGraphicBufferProducer binder session. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">binder_id</td><td>Android IGraphicBufferProducer binder session ID. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">producer_controlled_by_app</td><td>Specifies whether the producer is controlled by the application. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a29f696363cff25799fb0c912be66b59a" name="a29f696363cff25799fb0c912be66b59a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29f696363cff25799fb0c912be66b59a">&#9670;&#160;</a></span>nwindowCreateFromLayer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowCreateFromLayer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structViLayer.html">ViLayer</a> *&#160;</td>
<td class="paramname"><em>layer</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a <a class="el" href="structNWindow.html">NWindow</a> operating on a <a class="el" href="structViLayer.html">ViLayer</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[out]</td><td class="paramname">nw</td><td>Output <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">layer</td><td>Pointer to <a class="el" href="structViLayer.html">ViLayer</a> structure (such as the one returned by viCreateLayer). </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="af9ef3898d81314a6b27eeb45b90b116f" name="af9ef3898d81314a6b27eeb45b90b116f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9ef3898d81314a6b27eeb45b90b116f">&#9670;&#160;</a></span>nwindowDequeueBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowDequeueBuffer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a> *&#160;</td>
<td class="paramname"><em>out_slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structNvMultiFence.html">NvMultiFence</a> *&#160;</td>
<td class="paramname"><em>out_fence</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Dequeues a buffer from a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">out_slot</td><td>Output variable containing the ID of the slot that has been dequeued. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">out_fence</td><td>Output variable containing a <a class="el" href="structNvMultiFence.html">NvMultiFence</a> that will be signalled by the compositor when the buffer is ready to be written to. Pass NULL to wait instead on this fence before this function returns. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>For <code>out_fence=NULL</code> to work, nvFenceInit must have been previously called. </dd></dl>
</div>
</div>
<a id="a15a1695c9e19f666b396ce29a68891e9" name="a15a1695c9e19f666b396ce29a68891e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15a1695c9e19f666b396ce29a68891e9">&#9670;&#160;</a></span>nwindowGetDefault()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structNWindow.html">NWindow</a> * nwindowGetDefault </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the default <a class="el" href="structNWindow.html">NWindow</a> object. </p>
<dl class="section return"><dt>Returns</dt><dd>Pointer to the default <a class="el" href="structNWindow.html">NWindow</a> object. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>When this function is used/referenced, libnx will initialize VI services and create a <a class="el" href="structNWindow.html">NWindow</a> object from a <a class="el" href="structViLayer.html">ViLayer</a> created on the default <a class="el" href="structViDisplay.html">ViDisplay</a>; all of this happening automatically during application startup (i.e. before main is called). If creating the default <a class="el" href="structNWindow.html">NWindow</a> fails, libnx will throw a LibnxError_BadGfxInit fatal error. Likewise, after main returns (or exit is called) libnx will clean up all resources used by it. </dd></dl>
</div>
</div>
<a id="ac9bde326027224f3a78325aeb905be55" name="ac9bde326027224f3a78325aeb905be55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9bde326027224f3a78325aeb905be55">&#9670;&#160;</a></span>nwindowGetDimensions()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowGetDimensions </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *&#160;</td>
<td class="paramname"><em>out_width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> *&#160;</td>
<td class="paramname"><em>out_height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the dimensions of a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">out_width</td><td>Output variable containing the width of the <a class="el" href="structNWindow.html">NWindow</a>. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">out_height</td><td>Output variable containing the height of the <a class="el" href="structNWindow.html">NWindow</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>After creation, a <a class="el" href="structNWindow.html">NWindow</a> reports a default size (usually 1280x720). This size can be overriden by calling <a class="el" href="native__window_8h.html#afaf6cc9b314a52cb40d5f54cc1325ee9">nwindowSetDimensions</a>. </dd></dl>
</div>
</div>
<a id="a55a6d346e0006548fe6105e1d3e72c76" name="a55a6d346e0006548fe6105e1d3e72c76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55a6d346e0006548fe6105e1d3e72c76">&#9670;&#160;</a></span>nwindowQueueBuffer()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowQueueBuffer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>slot</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structNvMultiFence.html">NvMultiFence</a> *&#160;</td>
<td class="paramname"><em>fence</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Queues a buffer previously dequeued with <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a>, making it ready for presentation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">slot</td><td>ID of the slot to queue. This must match the output of the previous <a class="el" href="native__window_8h.html#af9ef3898d81314a6b27eeb45b90b116f">nwindowDequeueBuffer</a> call. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">fence</td><td>Pointer to the <a class="el" href="structNvMultiFence.html">NvMultiFence</a> that will be waited on by the compositor before queuing/presenting the buffer. Pass NULL if there is no such fence. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="acd960d92cccfd440771fa31a32563bac" name="acd960d92cccfd440771fa31a32563bac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd960d92cccfd440771fa31a32563bac">&#9670;&#160;</a></span>nwindowSetCrop()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowSetCrop </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>left</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>top</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>right</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#ae9b1af5c037e57a98884758875d3a7c4">s32</a>&#160;</td>
<td class="paramname"><em>bottom</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Configures the crop applied to images presented through a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">left</td><td>X coordinate of the left margin of the crop bounding box. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">top</td><td>Y coordinate of the top margin of the crop bounding box. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">right</td><td>X coordinate of the right margin of the crop bounding box. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">bottom</td><td>Y coordinate of the bottom margin of the crop bounding box. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Passing zero to all parameters disables the crop functionality. This is also the default. </dd>
<dd>
The bounding box defined by the parameters will be adjusted to fit within the dimensions of the <a class="el" href="structNWindow.html">NWindow</a>. </dd>
<dd>
<code>left</code> must be less or equal than <code>right</code>. </dd>
<dd>
<code>top</code> must be less or equal than <code>bottom</code>. </dd></dl>
</div>
</div>
<a id="afaf6cc9b314a52cb40d5f54cc1325ee9" name="afaf6cc9b314a52cb40d5f54cc1325ee9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaf6cc9b314a52cb40d5f54cc1325ee9">&#9670;&#160;</a></span>nwindowSetDimensions()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowSetDimensions </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a>&#160;</td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a>&#160;</td>
<td class="paramname"><em>height</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the dimensions of a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>Desired width of the <a class="el" href="structNWindow.html">NWindow</a>. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>Desired width of the <a class="el" href="structNWindow.html">NWindow</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function cannot be called when there are buffers registered with the <a class="el" href="structNWindow.html">NWindow</a>. </dd></dl>
</div>
</div>
<a id="aaf4f7c623f93a0fafe570c69891af6a3" name="aaf4f7c623f93a0fafe570c69891af6a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf4f7c623f93a0fafe570c69891af6a3">&#9670;&#160;</a></span>nwindowSetSwapInterval()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowSetSwapInterval </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a>&#160;</td>
<td class="paramname"><em>swap_interval</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Configures the swap interval of a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">swap_interval</td><td>Value specifying the number of display refreshes (VBlanks) that must occur between presenting images. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The default swap interval is 1. </dd>
<dd>
If the <a class="el" href="structNWindow.html">NWindow</a> has three or more buffers configured (with <a class="el" href="native__window_8h.html#a7cada6db01ff0c1e31e45a7ec66ccb91">nwindowConfigureBuffer</a>), it is possible to pass 0 to disable the swap interval feature and present images as fast as allowed by the compositor. Otherwise, the system enforces a minimum of 1 as the swap interval. </dd></dl>
</div>
</div>
<a id="a0c3a6f914d37943eee1e62b97410d13b" name="a0c3a6f914d37943eee1e62b97410d13b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c3a6f914d37943eee1e62b97410d13b">&#9670;&#160;</a></span>nwindowSetTransform()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="types_8h.html#ad1be2721625a17f1be47fac918032afe">Result</a> nwindowSetTransform </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structNWindow.html">NWindow</a> *&#160;</td>
<td class="paramname"><em>nw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a>&#160;</td>
<td class="paramname"><em>transform</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Configures the transformation applied to images presented through a <a class="el" href="structNWindow.html">NWindow</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">nw</td><td>Pointer to <a class="el" href="structNWindow.html">NWindow</a> structure. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">transform</td><td>Android transformation mode (see NATIVE_WINDOW_TRANSFORM_* enum) </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The default transformation is 0 (i.e. no transformation applied) </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>