• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef ASTC_CODEC_ASTC_CODEC_H_
16 #define ASTC_CODEC_ASTC_CODEC_H_
17 
18 namespace astc_codec {
19 
20 // These are the valid ASTC footprints according to the specification in
21 // Section C.2.7.
22 enum FootprintType {
23   k4x4,
24   k5x4,
25   k5x5,
26   k6x5,
27   k6x6,
28   k8x5,
29   k8x6,
30   k10x5,
31   k10x6,
32   k8x8,
33   k10x8,
34   k10x10,
35   k12x10,
36   k12x12,
37 
38   kCount
39 };
40 
41 struct AstcFootprint {
42     AstcFootprint(int width, int height);
43 };
44 
45 }  // namespace astc_codec
46 
47 #endif  // ASTC_CODEC_ASTC_CODEC_H_
48