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>CopyTexture2DResourceLinearToBlock</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>::CopyTexture2DResourceLinearToBlock</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceLinearToBlock(
15     const Texture2DResource * source,
16     s32 srcMipLevelIndex,
17     u32 srcOffestY,
18     s32 srcCountRow,
19     const Texture2DResource * dest,
20     s32 dstMipLevelIndex,
21     u32 dstOffestY
22);
23static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceLinearToBlock(
24     u8 * srcAddr,
25     u32 width,
26     u32 height,
27     const Texture2DResource * dest,
28     s32 dstMipLevelIndex,
29     u32 dstOffestY
30);
31</pre>
32    </div>
33<h2>List of Overloaded Member Functions</h2>
34    <div class="section">
35      <table class="members">
36        <tr>
37          <td>
38<a href="./CopyTexture2DResourceLinearToBlock(0).html">CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 ) </a>
39          </td>
40<td>Adds a command to the current command list for converting the source <SPAN class="Argument">Texture2DResource</SPAN> resource from a linear image to a block image and transferring it to the specified <SPAN class="Argument">Texture2DResource</SPAN>.</td>
41        </tr>
42        <tr>
43          <td>
44<a href="./CopyTexture2DResourceLinearToBlock(1).html">CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 ) </a>
45          </td>
46<td>Adds a command to the current command list for converting the image at the specified address from a linear image to a block image and transferring it to the destination <SPAN class="Argument">Texture2DResource</SPAN>.</td>
47        </tr> </table>
48    </div>
49<h2>Description of CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 )</h2>
50<div class="section"><p>Pixel formats that can be specified for the source and destination:</p>
51<itemizedlist>
52<listitem><para><CODE>NATIVE_FORMAT_RGBA_8888</CODE> <br /></para></listitem>
53<listitem><para><CODE>NATIVE_FORMAT_RGB_888</CODE> <br /></para></listitem>
54<listitem><para><CODE>NATIVE_FORMAT_RGBA_4444</CODE> <br /></para></listitem>
55<listitem><para><CODE>NATIVE_FORMAT_RGBA_5551</CODE><br /></para></listitem>
56<listitem><para><CODE>NATIVE_FORMAT_RGB_565</CODE> <br /></para></listitem>
57</itemizedlist>
58<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> and <SPAN class="Argument">srcOffestY</SPAN>) is bigger than the destination region (including <SPAN class="Argument">downScalingMode</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>
59<p>This function is added to the command list. See the Programming Guide for details.</p></div>
60<h2>Description of CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )</h2>
61<div class="section"><p>Pixel formats that can be specified for the destination:</p>
62<itemizedlist>
63<listitem><para><CODE>NATIVE_FORMAT_RGBA_8888</CODE> <br /></para></listitem>
64<listitem><para><CODE>NATIVE_FORMAT_RGB_888</CODE> <br /></para></listitem>
65<listitem><para><CODE>NATIVE_FORMAT_RGBA_4444</CODE> <br /></para></listitem>
66<listitem><para><CODE>NATIVE_FORMAT_RGBA_5551</CODE><br /></para></listitem>
67<listitem><para><CODE>NATIVE_FORMAT_RGB_565</CODE> <br /></para></listitem>
68</itemizedlist>
69<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> and <SPAN class="Argument">srcOffestY</SPAN>) is bigger than the destination region (including <SPAN class="Argument">downScalingMode</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>
70<p>This function is added to the command list. See the Programming Guide for details.</p></div>
71
72
73  <hr><p>CONFIDENTIAL</p></body>
74</html>
75