2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef SkTextureCompressor_LATC_DEFINED
9 #define SkTextureCompressor_LATC_DEFINED
11 #include "SkBitmapProcShader.h"
15 namespace SkTextureCompressor {
17 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src,
18 int width, int height, int rowBytes);
20 SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer,
21 SkTBlitterAllocator *allocator);
23 void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int width, int height);
26 #endif // SkTextureCompressor_LATC_DEFINED