Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: src/utils/SkTextureCompressor.h

Issue 440783004: Add support for all compressed formats in KTX file format (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix boolean stuff Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/images/SkImageDecoder_ktx.cpp ('k') | third_party/ktx/ktx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTextureCompressor_DEFINED 8 #ifndef SkTextureCompressor_DEFINED
9 #define SkTextureCompressor_DEFINED 9 #define SkTextureCompressor_DEFINED
10 10
11 #include "SkImageInfo.h" 11 #include "SkImageInfo.h"
12 #include "SkBlitter.h"
13 12
14 class SkBitmap; 13 class SkBitmap;
14 class SkBlitter;
15 class SkData; 15 class SkData;
16 16
17 namespace SkTextureCompressor { 17 namespace SkTextureCompressor {
18 // Various texture compression formats that we support. 18 // Various texture compression formats that we support.
19 enum Format { 19 enum Format {
20 // Alpha only formats. 20 // Alpha only formats.
21 kLATC_Format, // 4x4 blocks, (de)compresses A8 21 kLATC_Format, // 4x4 blocks, (de)compresses A8
22 kR11_EAC_Format, // 4x4 blocks, (de)compresses A8 22 kR11_EAC_Format, // 4x4 blocks, (de)compresses A8
23 23
24 // RGB only formats 24 // RGB only formats
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Returns the desired dimensions of the block size for the given format. Th ese dimensions 82 // Returns the desired dimensions of the block size for the given format. Th ese dimensions
83 // don't necessarily correspond to the specification's dimensions, since the re may 83 // don't necessarily correspond to the specification's dimensions, since the re may
84 // be specialized algorithms that operate on multiple blocks at once. If the 84 // be specialized algorithms that operate on multiple blocks at once. If the
85 // flag 'matchSpec' is true, then the actual dimensions from the specificati on are 85 // flag 'matchSpec' is true, then the actual dimensions from the specificati on are
86 // returned. If the flag is false, then these dimensions reflect the appropr iate operable 86 // returned. If the flag is false, then these dimensions reflect the appropr iate operable
87 // dimensions of the compression functions. 87 // dimensions of the compression functions.
88 void GetBlockDimensions(Format format, int* dimX, int* dimY, bool matchSpec = false); 88 void GetBlockDimensions(Format format, int* dimX, int* dimY, bool matchSpec = false);
89 } 89 }
90 90
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_ktx.cpp ('k') | third_party/ktx/ktx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698