Home
last modified time | relevance | path

Searched refs:SkTextureCompressor (Results 1 – 23 of 23) sorted by relevance

/external/skia/tests/
DTextureCompressionTest.cpp19 static bool decompresses_a8(SkTextureCompressor::Format fmt) { in decompresses_a8()
21 case SkTextureCompressor::kLATC_Format: in decompresses_a8()
22 case SkTextureCompressor::kR11_EAC_Format: in decompresses_a8()
30 static bool compresses_a8(SkTextureCompressor::Format fmt) { in compresses_a8()
32 case SkTextureCompressor::kLATC_Format: in compresses_a8()
33 case SkTextureCompressor::kR11_EAC_Format: in compresses_a8()
34 case SkTextureCompressor::kASTC_12x12_Format: in compresses_a8()
61 for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { in DEF_TEST()
62 const SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i); in DEF_TEST()
66 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(pixmap, fmt)); in DEF_TEST()
[all …]
/external/skia/src/images/
DSkImageDecoder_astc.cpp70 SkTextureCompressor::Format astcFormat; in onDecode()
72 astcFormat = SkTextureCompressor::kASTC_4x4_Format; in onDecode()
74 astcFormat = SkTextureCompressor::kASTC_5x4_Format; in onDecode()
76 astcFormat = SkTextureCompressor::kASTC_5x5_Format; in onDecode()
78 astcFormat = SkTextureCompressor::kASTC_6x5_Format; in onDecode()
80 astcFormat = SkTextureCompressor::kASTC_6x6_Format; in onDecode()
82 astcFormat = SkTextureCompressor::kASTC_8x5_Format; in onDecode()
84 astcFormat = SkTextureCompressor::kASTC_8x6_Format; in onDecode()
86 astcFormat = SkTextureCompressor::kASTC_8x8_Format; in onDecode()
88 astcFormat = SkTextureCompressor::kASTC_10x5_Format; in onDecode()
[all …]
DSkImageDecoder_ktx.cpp91 SkTextureCompressor::Format ktxCompressedFormat; in onDecode()
92 for (int i = 0; i < SkTextureCompressor::kFormatCnt; ++i) { in onDecode()
93 SkTextureCompressor::Format fmt = static_cast<SkTextureCompressor::Format>(i); in onDecode()
103 ((SkTextureCompressor::kLATC_Format == ktxCompressedFormat) || in onDecode()
104 (SkTextureCompressor::kR11_EAC_Format == ktxCompressedFormat)); in onDecode()
141 if (!SkTextureCompressor::DecompressBufferFromFormat( in onDecode()
158 } else if (ktxFile.isCompressedFormat(SkTextureCompressor::kETC1_Format)) { in onDecode()
170 if (!SkTextureCompressor::DecompressBufferFromFormat( in onDecode()
171 outRGBDataPtr, width*3, buf, width, height, SkTextureCompressor::kETC1_Format)) { in onDecode()
DSkImageDecoder_pkm.cpp80 if (!SkTextureCompressor::DecompressBufferFromFormat( in onDecode()
81 outRGBDataPtr, width*3, buf, width, height, SkTextureCompressor::kETC1_Format)) { in onDecode()
/external/skia/third_party/ktx/
Dktx.cpp19 static inline uint32_t compressed_fmt_to_gl_define(SkTextureCompressor::Format fmt) { in compressed_fmt_to_gl_define()
20 static const uint32_t kGLDefineMap[SkTextureCompressor::kFormatCnt] = { in compressed_fmt_to_gl_define()
40 GR_STATIC_ASSERT(0 == SkTextureCompressor::kLATC_Format); in compressed_fmt_to_gl_define()
41 GR_STATIC_ASSERT(1 == SkTextureCompressor::kR11_EAC_Format); in compressed_fmt_to_gl_define()
42 GR_STATIC_ASSERT(2 == SkTextureCompressor::kETC1_Format); in compressed_fmt_to_gl_define()
43 GR_STATIC_ASSERT(3 == SkTextureCompressor::kASTC_4x4_Format); in compressed_fmt_to_gl_define()
44 GR_STATIC_ASSERT(4 == SkTextureCompressor::kASTC_5x4_Format); in compressed_fmt_to_gl_define()
45 GR_STATIC_ASSERT(5 == SkTextureCompressor::kASTC_5x5_Format); in compressed_fmt_to_gl_define()
46 GR_STATIC_ASSERT(6 == SkTextureCompressor::kASTC_6x5_Format); in compressed_fmt_to_gl_define()
47 GR_STATIC_ASSERT(7 == SkTextureCompressor::kASTC_6x6_Format); in compressed_fmt_to_gl_define()
[all …]
Dktx.h62 bool isCompressedFormat(SkTextureCompressor::Format fmt) const;
/external/skia/src/gpu/
DGrSWMaskHelper.cpp40 static inline GrPixelConfig fmt_to_config(SkTextureCompressor::Format fmt) { in fmt_to_config()
44 case SkTextureCompressor::kLATC_Format: in fmt_to_config()
48 case SkTextureCompressor::kR11_EAC_Format: in fmt_to_config()
52 case SkTextureCompressor::kASTC_12x12_Format: in fmt_to_config()
56 case SkTextureCompressor::kETC1_Format: in fmt_to_config()
71 SkTextureCompressor::Format *fmt) { in choose_compressed_fmt()
86 *fmt = SkTextureCompressor::kASTC_12x12_Format; in choose_compressed_fmt()
89 *fmt = SkTextureCompressor::kLATC_Format; in choose_compressed_fmt()
92 *fmt = SkTextureCompressor::kR11_EAC_Format; in choose_compressed_fmt()
147 blitter = SkTextureCompressor::CreateBlitterForFormat( in draw()
[all …]
DGrSWMaskHelper.h128 SkTextureCompressor::Format fCompressedFormat;
DSkGr.cpp90 if (!ktx.isCompressedFormat(SkTextureCompressor::kETC1_Format)) { in GrIsCompressedTextureDataSupported()
/external/skia/src/opts/
DSkTextureCompressor_opts.h240 SkTextureCompressor::Format fmt) { in texture_compressor()
241 if (ct == kAlpha_8_SkColorType && fmt == SkTextureCompressor::kR11_EAC_Format) { in texture_compressor()
246 static bool fill_block_dimensions(SkTextureCompressor::Format fmt, int* x, int* y) { in fill_block_dimensions()
247 if (fmt == SkTextureCompressor::kR11_EAC_Format) { in fill_block_dimensions()
256 static SkOpts::TextureCompressor texture_compressor(SkColorType, SkTextureCompressor::Format) {
259 static bool fill_block_dimensions(SkTextureCompressor::Format, int*, int*) {
/external/skia/src/core/
DSkOpts.h37 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompressor::Format);
38 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, int* y);
/external/skia/src/utils/
DSkTextureCompressor_LATC.h15 namespace SkTextureCompressor {
DSkTextureCompressor_R11EAC.h15 namespace SkTextureCompressor {
DSkTextureCompressor_ASTC.h15 namespace SkTextureCompressor {
DSkTextureCompressor_Utils.h11 namespace SkTextureCompressor {
DSkTextureCompressor.h18 namespace SkTextureCompressor {
DSkTextureCompressor_LATC.cpp333 x = 0x07070707 - SkTextureCompressor::ConvertToThreeBitIndex(x); in convert_index()
473 namespace SkTextureCompressor { namespace
DSkTextureCompressor_R11EAC.cpp324 x = SkTextureCompressor::ConvertToThreeBitIndex(x); in convert_indices()
620 namespace SkTextureCompressor { namespace
DSkTextureCompressor.cpp35 namespace SkTextureCompressor { namespace
DSkTextureCompressor_Blitter.h14 namespace SkTextureCompressor {
DSkTextureCompressor_ASTC.cpp2039 namespace SkTextureCompressor { namespace
/external/skia/gyp/
Dutils.gypi78 '<(skia_src_path)/utils/SkTextureCompressor.cpp',
79 '<(skia_src_path)/utils/SkTextureCompressor.h',
/external/skia/
DAndroid.mk648 src/utils/SkTextureCompressor.cpp \