blob: 1312ee9c741b3d963c2038403ff74820a0edd23d [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
krajcevskib8ccc2f2014-08-07 08:15:14 -070011#include "SkBitmapProcShader.h"
krajcevskib2ef1812014-07-25 07:33:01 -070012
krajcevskib2ef1812014-07-25 07:33:01 -070013class SkBlitter;
14
15namespace SkTextureCompressor {
16
17 bool CompressA8To12x12ASTC(uint8_t* dst, const uint8_t* src,
bsalomon98806072014-12-12 15:11:17 -080018 int width, int height, size_t rowBytes);
krajcevskib2ef1812014-07-25 07:33:01 -070019
krajcevskib8ccc2f2014-08-07 08:15:14 -070020 SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer,
21 SkTBlitterAllocator *allocator);
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