blob: 6ee2ff63e215e9e6d185f1254e19590a8272854c [file] [log] [blame]
krajcevski6c354882014-07-22 07:44:00 -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_LATC_DEFINED
9#define SkTextureCompressor_LATC_DEFINED
10
11#include "SkBlitter.h"
12
13namespace SkTextureCompressor {
14
15 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src,
16 int width, int height, int rowBytes);
17
18 SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer);
krajcevski4ad76e32014-07-31 14:12:50 -070019
20 void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int width, int height);
krajcevski6c354882014-07-22 07:44:00 -070021}
22
23#endif // SkTextureCompressor_LATC_DEFINED