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     <a href="../../../../nn_types/s32.html">s32</a> srcMipLevelIndex,
17     <a href="../../../../nn_types/u32.html">u32</a> srcOffsetY,
18     <a href="../../../../nn_types/s32.html">s32</a> srcCountRow,
19     const Texture2DResource * dest,
20     <a href="../../../../nn_types/s32.html">s32</a> dstMipLevelIndex,
21     <a href="../../../../nn_types/u32.html">u32</a> dstOffestY
22);
23static <a href="../../../../nnResult/Overview.html">nnResult</a> CopyTexture2DResourceLinearToBlock(
24     <a href="../../../../nn_types/u8.html">u8</a> * srcAddr,
25     <a href="../../../../nn_types/u32.html">u32</a> width,
26     <a href="../../../../nn_types/u32.html">u32</a> height,
27     const Texture2DResource * dest,
28     <a href="../../../../nn_types/s32.html">s32</a> dstMipLevelIndex,
29     <a href="../../../../nn_types/u32.html">u32</a> 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"><CODE>CopyTexture2DResourceLinearToBlock ( const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32 )</CODE> </a>
39          </td>
40<td>Adds a command to the current command list. This command converts the source <CODE>Texture2DResource</CODE> resource to the specified <CODE>Texture2DResource</CODE> (converting it from a linear image to a block image) and transfers it.</td>
41        </tr>
42        <tr>
43          <td>
44<a href="./CopyTexture2DResourceLinearToBlock(1).html"><CODE>CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )</CODE> </a>
45          </td>
46<td>Adds a command 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> to the current command list.</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>The following transfer source and destination pixel formats can be specified:<br /><itemizedlist><listitem><para><CODE>NATIVE_FORMAT_RGBA_8888 </CODE><br /></para></listitem><listitem><para><CODE>NATIVE_FORMAT_RGB_888 </CODE><br /></para></listitem><listitem><para><CODE>NATIVE_FORMAT_RGBA_4444 </CODE><br /></para></listitem><listitem><para><CODE>NATIVE_FORMAT_RGBA_5551 </CODE><br /></para></listitem><listitem><para><CODE>NATIVE_FORMAT_RGB_565 </CODE><br /></para></listitem></itemizedlist><br /> The memory layout of the transfer source must be <CODE>LAYOUT_LINEAR</CODE>. The transfer destination memory layout must be either <CODE>LAYOUT_BLOCK_8</CODE> or <CODE>LAYOUT_BLOCK_32</CODE>. If the pixel size of the transfer destination image is 24 bits, the horizontal width in pixels must be a multiple of 32. The width of the transfer source and destination resource must match. This process calls the <CODE>nngxAddL2BTransferCommand</CODE> function. This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div>
51<h2>CopyTexture2DResourceLinearToBlock ( u8 *, u32, u32, const Texture2DResource *, s32, u32 )</h2>
52<div class="section"><p>The following transfer destination pixel formats can be specified:<br /><itemizedlist><listitem><para>NATIVE_FORMAT_RGBA_8888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_888 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_4444 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGBA_5551 <br /></para></listitem><listitem><para>NATIVE_FORMAT_RGB_565 <br /></para></listitem></itemizedlist> The memory layout of the transfer source must be LAYOUT_LINEAR. The transfer destination memory layout must be either <CODE>LAYOUT_BLOCK_8</CODE> or <CODE>LAYOUT_BLOCK_32</CODE>. If the pixel size of the transfer destination image is 24 bits, the width must be a multiple of 32. This process calls the <CODE>nngxAddL2BTransferCommand</CODE> function. This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div>
53  <hr><p>CONFIDENTIAL</p></body>
54</html>
55