krajcevski | b2ef181 | 2014-07-25 07:33:01 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef SkTextureCompressor_ASTC_DEFINED |
| 9 | #define SkTextureCompressor_ASTC_DEFINED |
| 10 | |
krajcevski | b8ccc2f | 2014-08-07 08:15:14 -0700 | [diff] [blame] | 11 | #include "SkBitmapProcShader.h" |
krajcevski | b2ef181 | 2014-07-25 07:33:01 -0700 | [diff] [blame] | 12 | |
krajcevski | b2ef181 | 2014-07-25 07:33:01 -0700 | [diff] [blame] | 13 | class SkBlitter; |
| 14 | |
| 15 | namespace SkTextureCompressor { |
| 16 | |
| 17 | bool CompressA8To12x12ASTC(uint8_t* dst, const uint8_t* src, |
bsalomon | 9880607 | 2014-12-12 15:11:17 -0800 | [diff] [blame] | 18 | int width, int height, size_t rowBytes); |
krajcevski | b2ef181 | 2014-07-25 07:33:01 -0700 | [diff] [blame] | 19 | |
krajcevski | b8ccc2f | 2014-08-07 08:15:14 -0700 | [diff] [blame] | 20 | SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer, |
| 21 | SkTBlitterAllocator *allocator); |
krajcevski | 3c7edda | 2014-08-06 12:47:59 -0700 | [diff] [blame] | 22 | |
| 23 | void DecompressASTC(uint8_t* dst, int dstRowBytes, const uint8_t* src, |
| 24 | int width, int height, int blockDimX, int blockDimY); |
krajcevski | b2ef181 | 2014-07-25 07:33:01 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | #endif // SkTextureCompressor_ASTC_DEFINED |