OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |
| 6 #define CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 namespace cc { |
| 11 namespace texture_compress { |
| 12 |
| 13 // Defines the texture compression function type. |src| is the raw image data |
| 14 // in BGRA format. |dst| is the destination buffer to which the compressed data |
| 15 // should be written. |width| and |height| are the texture width and height |
| 16 // measured in pixels. |
| 17 typedef void (*TextureCompressFunc)(const uint8_t* src, |
| 18 uint8_t* dst, |
| 19 int width, |
| 20 int height); |
| 21 |
| 22 extern TextureCompressFunc CompressATC; |
| 23 extern TextureCompressFunc CompressATCIA; |
| 24 extern TextureCompressFunc CompressETC1; |
| 25 extern TextureCompressFunc CompressDXT1; |
| 26 extern TextureCompressFunc CompressDXT5; |
| 27 |
| 28 } // namespace texture_compress |
| 29 } // namespace cc |
| 30 |
| 31 #endif // CC_RESOURCES_TEXTURE_COMPRESS_TEXTURE_COMPRESS_H_ |
OLD | NEW |