blob: 85647eafcc428ad275950ac26c77f3b6b610d624 [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
krajcevskib8ccc2f2014-08-07 08:15:14 -070011#include "SkBitmapProcShader.h"
12
13class SkBlitter;
krajcevski6c354882014-07-22 07:44:00 -070014
15namespace SkTextureCompressor {
16
17 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src,
bsalomon98806072014-12-12 15:11:17 -080018 int width, int height, size_t rowBytes);
krajcevski6c354882014-07-22 07:44:00 -070019
krajcevskib8ccc2f2014-08-07 08:15:14 -070020 SkBlitter* CreateLATCBlitter(int width, int height, void* outputBuffer,
21 SkTBlitterAllocator *allocator);
krajcevski4ad76e32014-07-31 14:12:50 -070022
23 void DecompressLATC(uint8_t* dst, int dstRowBytes, const uint8_t* src, int width, int height);
krajcevski6c354882014-07-22 07:44:00 -070024}
25
26#endif // SkTextureCompressor_LATC_DEFINED