/*! \brief Contains functions to decompress PVRTC or ETC formats into RGBA8888. \file PVRCore/texture/PVRTDecompress.h \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #pragma once #include namespace pvr { /// Decompresses PVRTC to RGBA 8888. /// The PVRTC texture data to decompress /// Signifies whether the data is PVRTC2 or PVRTC4 /// X dimension of the texture /// Y dimension of the texture /// The decompressed texture data /// Return the amount of data that was decompressed. uint32_t PVRTDecompressPVRTC(const void* compressedData, uint32_t do2bitMode, uint32_t xDim, uint32_t yDim, uint8_t* outResultImage); /// Decompresses ETC to RGBA 8888. /// The ETC texture data to decompress /// X dimension of the texture /// Y dimension of the texture /// The decompressed texture data /// The format of the data /// Return The number of bytes of ETC data decompressed uint32_t PVRTDecompressETC(const void* srcData, uint32_t xDim, uint32_t yDim, void* dstData, uint32_t mode); } // namespace pvr