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 <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 <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 <a href="../../../../nn_types/s32.html">s32</a> srcMipLevelIndex, 28 <a href="../../../../nn_types/u32.html">u32</a> srcOffsetY, 29 <a href="../../../../nn_types/u8.html">u8</a> * dstAddr, 30 <a href="../../../../nn_types/u32.html">u32</a> dstWidth, 31 <a href="../../../../nn_types/u32.html">u32</a> dstHeight, 32 <a href="../../../../nn_types/u32.html">u32</a> 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"><CODE>CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool)</CODE> </a> 44 </td> 45<td>Adds a command for converting the source <SPAN class="argument">Texture2DResource</SPAN> resource from a block image to a linear image and transferring it to the destination <SPAN class="argument">Texture2DResource</SPAN>.</td> 46 </tr> 47 <tr> 48 <td> 49<a href="./CopyTexture2DResourceBlockToLinear(1).html"><CODE>CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool)</CODE> </a> 50 </td> 51<td>Adds a command for converting the source <SPAN class="Argument">Texture2DResource</SPAN> 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 <CODE>CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, s32, const Texture2DResource *, s32, u32, DownScalingMode, gdBool)</CODE></h2> 55<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_BLOCK_8</CODE> or <CODE>LAYOUT_BLOCK_32</CODE>. The transfer destination memory layout must be <CODE>LAYOUT_LINEAR</CODE>. The transferred data is automatically clipped if the source memory region (including <SPAN class="argument">srcMipLevelIndex</SPAN>, <SPAN class="argument">srcOffsetY</SPAN> and <SPAN class="argument">srcCountRow</SPAN>) is bigger than the destination region (including <SPAN class="argument">srcMipLevelIndex</SPAN>, <SPAN class="argument">srcOffsetY</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. <br />This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div> 56<h2>Description of <CODE>CopyTexture2DResourceBlockToLinear(const Texture2DResource *, s32, u32, u8 *, u32, u32, u32, DownScalingMode, gdBool)</CODE></h2> 57<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_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 if the source memory region (including <SPAN class="argument">srcMipLevelIndex</SPAN> and <SPAN class="argument">srcOffsetY</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. <br /> This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div> 58 <hr><p>CONFIDENTIAL</p></body> 59</html> 60