PVRTDecompress.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /******************************************************************************
  2. @File PVRTDecompress.h
  3. @Title PVRTDecompress
  4. @Version
  5. @Copyright Copyright (C) Imagination Technologies Limited.
  6. @Platform ANSI compatible
  7. @Description PVRTC and ETC Texture Decompression.
  8. ******************************************************************************/
  9. #ifndef _PVRTDECOMPRESS_H_
  10. #define _PVRTDECOMPRESS_H_
  11. /*!***********************************************************************
  12. @Function PVRTDecompressPVRTC
  13. @Input pCompressedData The PVRTC texture data to decompress
  14. @Input Do2bitMode Signifies whether the data is PVRTC2 or PVRTC4
  15. @Input XDim X dimension of the texture
  16. @Input YDim Y dimension of the texture
  17. @Modified pResultImage The decompressed texture data
  18. @Description Decompresses PVRTC to RGBA 8888
  19. *************************************************************************/
  20. void PVRTDecompressPVRTC(const void *pCompressedData,
  21. const int Do2bitMode,
  22. const int XDim,
  23. const int YDim,
  24. unsigned char* pResultImage);
  25. /*!***********************************************************************
  26. @Function PVRTDecompressETC
  27. @Input pSrcData The ETC texture data to decompress
  28. @Input x X dimension of the texture
  29. @Input y Y dimension of the texture
  30. @Modified pDestData The decompressed texture data
  31. @Input nMode The format of the data
  32. @Returns The number of bytes of ETC data decompressed
  33. @Description Decompresses ETC to RGBA 8888
  34. *************************************************************************/
  35. int PVRTDecompressETC(const void * const pSrcData,
  36. const unsigned int &x,
  37. const unsigned int &y,
  38. void *pDestData,
  39. const int &nMode);
  40. #endif /* _PVRTDECOMPRESS_H_ */
  41. /*****************************************************************************
  42. End of file (PVRTBoneBatch.h)
  43. *****************************************************************************/