krajcevski | 6c35488 | 2014-07-22 07:44:00 -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_LATC_DEFINED |
| 9 | #define SkTextureCompressor_LATC_DEFINED |
| 10 | |
krajcevski | b8ccc2f | 2014-08-07 08:15:14 -0700 | [diff] [blame] | 11 | #include "SkBitmapProcShader.h" |
| 12 | |
| 13 | class SkBlitter; |
krajcevski | 6c35488 | 2014-07-22 07:44:00 -0700 | [diff] [blame] | 14 | |
| 15 | namespace SkTextureCompressor { |
| 16 | |
| 17 | bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src, |
| 18 | int width, int height, int rowBytes); |
| 19 | |
krajcevski | b8ccc2f | 2014-08-07 08:15:14 -0700 | [diff] [blame] | 20 | SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer, |
| 21 | SkTBlitterAllocator *allocator); |
krajcevski | 4ad76e3 | 2014-07-31 14:12:50 -0700 | [diff] [blame] | 22 | |
| 23 | void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int width, int height); |
krajcevski | 6c35488 | 2014-07-22 07:44:00 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | #endif // SkTextureCompressor_LATC_DEFINED |