• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*!****************************************************************************
2 
3  @file         PVRTDecompress.h
4  @copyright    Copyright (c) Imagination Technologies Limited.
5  @brief        PVRTC and ETC Texture Decompression.
6 
7 ******************************************************************************/
8 
9 #ifndef _PVRTDECOMPRESS_H_
10 #define _PVRTDECOMPRESS_H_
11 
12 /*!***********************************************************************
13  @brief      	Decompresses PVRTC to RGBA 8888
14  @param[in]		pCompressedData The PVRTC texture data to decompress
15  @param[in]		Do2bitMode      Signifies whether the data is PVRTC2 or PVRTC4
16  @param[in]		XDim            X dimension of the texture
17  @param[in]		YDim            Y dimension of the texture
18  @param[in,out]	pResultImage    The decompressed texture data
19  @return		Returns the amount of data that was decompressed.
20 *************************************************************************/
21 int PVRTDecompressPVRTC(const void *pCompressedData,
22 				const int Do2bitMode,
23 				const int XDim,
24 				const int YDim,
25 				unsigned char* pResultImage);
26 
27 /*!***********************************************************************
28  @brief      	Decompresses ETC to RGBA 8888
29  @param[in]		pSrcData        The ETC texture data to decompress
30  @param[in]		x               X dimension of the texture
31  @param[in]		y               Y dimension of the texture
32  @param[in,out]	pDestData       The decompressed texture data
33  @param[in]		nMode           The format of the data
34  @return		The number of bytes of ETC data decompressed
35 *************************************************************************/
36 int PVRTDecompressETC(const void * const pSrcData,
37 						 const unsigned int &x,
38 						 const unsigned int &y,
39 						 void *pDestData,
40 						 const int &nMode);
41 
42 
43 #endif /* _PVRTDECOMPRESS_H_ */
44 
45 /*****************************************************************************
46  End of file (PVRTBoneBatch.h)
47 *****************************************************************************/
48 
49