PVRTDecompress.h 2.0 KB

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