nn::gd::CTR::Resource::Helper::ConvertCompressedTextureResourceToNativeFormat Member Functionstatic nnResult ConvertCompressedTextureResourceToNativeFormat( CompressedFormat format, u32 width, u32 height, u8 * dataSrc, u8 * dataDst, NativeFormat * pnativeFormat = NULL );
| Name | Description | |
|---|---|---|
| in | format | Specifies the compressed pixel format of dataSrc. You can only specify ResourceFORMAT_ETC1_RGB8. |
| in | width | Specifies the data width. |
| in | height | Specifies the data height. |
| in | dataSrc | Specifies the address of the source data for the conversion. |
| in | dataDst | Specifies the destination address for the converted data. |
| in | pnativeFormat | Specifies the address that will store the native format value received after conversion. This will not be used if NULL is specified. |
| Value | Description |
|---|---|
Result::IsSuccess |
Process was successful. |
ResultNullParameter |
NULL was specified for either dataSrc or dataDst. |
ResultInvalidTextureResolution |
Either 0 was specified for width or height, or the size is not a multiple of 8. This result will also be returned if format is invalid. |
ResultOutOfMemory |
Could not obtain memory. |
ResultInvalidTextureFormat |
Invalid pixel format. |
Converts compressed texture data into a compressed native format.
Enough memory must be allocated for the address area of dataSrc and dataDest. After conversion, data is converted to a LAYOUT_BLOCK_8 mode layout.
CONFIDENTIAL