• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
11 #include "SkBitmapProcShader.h"
12 
13 class SkBlitter;
14 
15 namespace SkTextureCompressor {
16 
17     bool CompressA8To12x12ASTC(uint8_t* dst, const uint8_t* src,
18                                int width, int height, size_t rowBytes);
19 
20     SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer,
21                                  SkTBlitterAllocator *allocator);
22 
23     void DecompressASTC(uint8_t* dst, int dstRowBytes, const uint8_t* src,
24                         int width, int height, int blockDimX, int blockDimY);
25 }
26 
27 #endif  // SkTextureCompressor_ASTC_DEFINED
28