aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkTextureCompressor_LATC.h
blob: 85647eafcc428ad275950ac26c77f3b6b610d624 (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
25
26
/*
 * 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_LATC_DEFINED
#define SkTextureCompressor_LATC_DEFINED

#include "SkBitmapProcShader.h"

class SkBlitter;

namespace SkTextureCompressor {

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

    SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer,
                                 SkTBlitterAllocator *allocator);

    void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int width, int height);
}

#endif  // SkTextureCompressor_LATC_DEFINED