1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7<title>CopyTexture2DResourceBlockToLinear</title>
8  </head>
9  <body>
10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/gd/Overview.html">gd</a>::<a href="../../../../nn/gd/CTR/Overview.html">CTR</a>::<a href="../../../../nn/gd/CTR/Memory/Overview.html">Memory</a>::CopyTexture2DResourceBlockToLinear</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceBlockToLinear(
15     const Texture2DResource * source,
16     s32 srcMipLevelIndex,
17     u32 srcOffestY,
18     s32 srcCountRow,
19     const Texture2DResource * dest,
20     s32 dstMipLevelIndex,
21     u32 dstOffestY,
22     <a href="../../../../nn/gd/CTR/Memory/DownScalingMode.html">DownScalingMode</a> downScalingMode,
23     <span>gdBool</span> yFlip
24);
25static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceBlockToLinear(
26     const Texture2DResource * source,
27     s32 srcMipLevelIndex,
28     u32 srcOffestY,
29     u8 * dstAddr,
30     u32 dstWidth,
31     u32 dstHeight,
32     u32 dstFormat,
33     <a href="../../../../nn/gd/CTR/Memory/DownScalingMode.html">DownScalingMode</a> downScalingMode,
34     <span>gdBool</span> yFlip
35);
36</pre>
37    </div>
38<h2>List of Overloaded Member Functions</h2>
39    <div class="section">
40      <table class="members">
41        <tr>
42          <td>
43<a href="./CopyTexture2DResourceBlockToLinear(0).html">CopyTexture2DResourceBlockToLinear ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool ) </a>
44          </td>
45<td>Adds a command to the current command list for converting the source <CODE>Texture2DResource</CODE> resource from a block image to a linear image and transferring it to the destination <CODE>Texture2DResource</CODE>.</td>
46        </tr>
47        <tr>
48          <td>
49<a href="./CopyTexture2DResourceBlockToLinear(1).html">CopyTexture2DResourceBlockToLinear ( const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool ) </a>
50          </td>
51<td>Adds a command to the current command list for converting the source <CODE>Texture2DResource</CODE> resource from a block image to a linear image and transferring it to the specified address.</td>
52        </tr> </table>
53    </div>
54<h2>Description of CopyTexture2DResourceBlockToLinear ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool )</h2>
55<div class="section"><p>Pixel formats that can be specified for the source and destination:</p>
56<itemizedlist>
57<listitem><para><CODE>NATIVE_FORMAT_RGBA_8888</CODE> <br /></para></listitem>
58<listitem><para><CODE>NATIVE_FORMAT_RGB_888</CODE> <br /></para></listitem>
59<listitem><para><CODE>NATIVE_FORMAT_RGBA_4444</CODE> <br /></para></listitem>
60<listitem><para><CODE>NATIVE_FORMAT_RGBA_5551</CODE><br /></para></listitem>
61<listitem><para><CODE>NATIVE_FORMAT_RGB_565</CODE> <br /></para></listitem>
62</itemizedlist>
63<p>The transfer source memory layout must be either <CODE>LAYOUT_BLOCK_8</CODE> or <CODE>LAYOUT_BLOCK_32</CODE>. The transfer destination memory layout must be <CODE>LAYOUT_LINEAR</CODE>. The data transferred is automatically clipped when the source memory region (including <SPAN class="Argument">srcMipLevelIndex</SPAN>, <SPAN class="Argument">srcOffestY</SPAN>, and <SPAN class="Argument">srcCountRow</SPAN>) is bigger than the destination region (including <SPAN class="Argument">srcMipLevelIndex</SPAN>, <SPAN class="Argument">srcOffestY</SPAN>, and <SPAN class="Argument">srcCountRow</SPAN>). An error occurs if the source region is smaller than the destination region. When converting the pixel format, the source pixel size must be the same as or smaller than the destination pixel size. In other words, conversions that increase the pixel size are not possible. This process calls the <CODE>nngxAddB2LTransferCommand</CODE> function.</p>
64<p>This function is added to the command list. See the Programming Guide for details.</p></div>
65
66<h2>Description of CopyTexture2DResourceBlockToLinear ( const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool )</h2>
67<div class="section"><p>Pixel formats that can be specified for the source and destination:</p>
68<itemizedlist>
69<listitem><para><CODE>NATIVE_FORMAT_RGBA_8888</CODE> <br /></para></listitem>
70<listitem><para><CODE>NATIVE_FORMAT_RGB_888</CODE> <br /></para></listitem>
71<listitem><para><CODE>NATIVE_FORMAT_RGBA_4444</CODE> <br /></para></listitem>
72<listitem><para><CODE>NATIVE_FORMAT_RGBA_5551</CODE><br /></para></listitem>
73<listitem><para><CODE>NATIVE_FORMAT_RGB_565</CODE> <br /></para></listitem>
74</itemizedlist>
75<p>The transfer source memory layout must be either <CODE>LAYOUT_BLOCK_8</CODE> or <CODE>LAYOUT_BLOCK_32</CODE>. The transfer destination memory layout must be <CODE>LAYOUT_LINEAR</CODE>. The data transferred is automatically clipped when the source memory region (including <SPAN class="Argument">srcMipLevelIndex</SPAN>, <SPAN class="Argument">srcOffestY</SPAN>, and <SPAN class="Argument">srcCountRow</SPAN>) is bigger than the destination region (including <SPAN class="Argument">srcMipLevelIndex</SPAN>, <SPAN class="Argument">srcOffestY</SPAN>, and <SPAN class="Argument">srcCountRow</SPAN>). An error occurs if the source region is smaller than the destination region. When converting the pixel format, the source pixel size must be the same as or smaller than the destination pixel size. In other words, conversions that increase the pixel size are not possible. This process calls the <CODE>nngxAddB2LTransferCommand</CODE> function.</p>
76<p>This function is added to the command list. See the Programming Guide for details.</p></div>
77
78
79  <hr><p>CONFIDENTIAL</p></body>
80</html>
81