blob: 57ba08d44028aa0339fd39c67e6df988cb1a0642 [file] [log] [blame]
krajcevskib2ef1812014-07-25 07:33:01 -07001/*
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 <stdint.h>
12
13// Forward declare
14class SkBlitter;
15
16namespace SkTextureCompressor {
17
18 bool CompressA8To12x12ASTC(uint8_t* dst, const uint8_t* src,
19 int width, int height, int rowBytes);
20
21 SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer);
krajcevski3c7edda2014-08-06 12:47:59 -070022
23 void DecompressASTC(uint8_t* dst, int dstRowBytes, const uint8_t* src,
24 int width, int height, int blockDimX, int blockDimY);
krajcevskib2ef1812014-07-25 07:33:01 -070025}
26
27#endif // SkTextureCompressor_ASTC_DEFINED