/external/skia/tests/ |
D | TextureCompressionTest.cpp | 19 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/ |
D | SkImageDecoder_astc.cpp | 70 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 …]
|
D | SkImageDecoder_ktx.cpp | 91 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()
|
D | SkImageDecoder_pkm.cpp | 80 if (!SkTextureCompressor::DecompressBufferFromFormat( in onDecode() 81 outRGBDataPtr, width*3, buf, width, height, SkTextureCompressor::kETC1_Format)) { in onDecode()
|
/external/skia/third_party/ktx/ |
D | ktx.cpp | 19 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 …]
|
D | ktx.h | 62 bool isCompressedFormat(SkTextureCompressor::Format fmt) const;
|
/external/skia/src/gpu/ |
D | GrSWMaskHelper.cpp | 40 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 …]
|
D | GrSWMaskHelper.h | 128 SkTextureCompressor::Format fCompressedFormat;
|
D | SkGr.cpp | 90 if (!ktx.isCompressedFormat(SkTextureCompressor::kETC1_Format)) { in GrIsCompressedTextureDataSupported()
|
/external/skia/src/opts/ |
D | SkTextureCompressor_opts.h | 240 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/ |
D | SkOpts.h | 37 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompressor::Format); 38 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, int* y);
|
/external/skia/src/utils/ |
D | SkTextureCompressor_LATC.h | 15 namespace SkTextureCompressor {
|
D | SkTextureCompressor_R11EAC.h | 15 namespace SkTextureCompressor {
|
D | SkTextureCompressor_ASTC.h | 15 namespace SkTextureCompressor {
|
D | SkTextureCompressor_Utils.h | 11 namespace SkTextureCompressor {
|
D | SkTextureCompressor.h | 18 namespace SkTextureCompressor {
|
D | SkTextureCompressor_LATC.cpp | 333 x = 0x07070707 - SkTextureCompressor::ConvertToThreeBitIndex(x); in convert_index() 473 namespace SkTextureCompressor { namespace
|
D | SkTextureCompressor_R11EAC.cpp | 324 x = SkTextureCompressor::ConvertToThreeBitIndex(x); in convert_indices() 620 namespace SkTextureCompressor { namespace
|
D | SkTextureCompressor.cpp | 35 namespace SkTextureCompressor { namespace
|
D | SkTextureCompressor_Blitter.h | 14 namespace SkTextureCompressor {
|
D | SkTextureCompressor_ASTC.cpp | 2039 namespace SkTextureCompressor { namespace
|
/external/skia/gyp/ |
D | utils.gypi | 78 '<(skia_src_path)/utils/SkTextureCompressor.cpp', 79 '<(skia_src_path)/utils/SkTextureCompressor.h',
|
/external/skia/ |
D | Android.mk | 648 src/utils/SkTextureCompressor.cpp \
|