aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkTextureCompressor_ASTC.h
blob: 152fc62f16e2b1b476ad53dde8d54c184c62299d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkTextureCompressor_ASTC_DEFINED
#define SkTextureCompressor_ASTC_DEFINED

#include <stdint.h>

// Forward declare
class SkBlitter;

namespace SkTextureCompressor {

    bool CompressA8To12x12ASTC(uint8_t* dst, const uint8_t* src,
                               int width, int height, int rowBytes);

    SkBlitter* CreateASTCBlitter(int width, int height, void* outputBuffer);
}

#endif  // SkTextureCompressor_ASTC_DEFINED