Decompress.h 966 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #pragma once
  4. #include "../Resource/Image.h"
  5. namespace Urho3D
  6. {
  7. /// Decompress a DXT compressed image to RGBA.
  8. URHO3D_API void
  9. DecompressImageDXT(unsigned char* rgba, const void* blocks, int width, int height, int depth, CompressedFormat format);
  10. /// Decompress an ETC1/ETC2 compressed image to RGBA.
  11. URHO3D_API void DecompressImageETC(unsigned char* dstImage, const void* blocks, int width, int height, bool hasAlpha);
  12. /// Decompress a PVRTC compressed image to RGBA.
  13. URHO3D_API void DecompressImagePVRTC(unsigned char* rgba, const void* blocks, int width, int height, CompressedFormat format);
  14. /// Flip a compressed block vertically.
  15. URHO3D_API void FlipBlockVertical(unsigned char* dest, const unsigned char* src, CompressedFormat format);
  16. /// Flip a compressed block horizontally.
  17. URHO3D_API void FlipBlockHorizontal(unsigned char* dest, const unsigned char* src, CompressedFormat format);
  18. }