Flutter Engine
The Flutter Engine
|
#include "src/core/SkCompressedDataUtils.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkData.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkTPin.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkMathPriv.h"
#include "src/core/SkMipmap.h"
#include <algorithm>
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | ETC1Block |
struct | IColor |
struct | BC1Block |
Functions | |
static int | extend_4To8bits (int b) |
static int | extend_5To8bits (int b) |
static int | extend_5plus3To8Bits (int base, int diff) |
static int | num_4x4_blocks (int size) |
static int | xy_to_subblock_index (int x, int y, bool flip) |
static SkPMColor | add_delta_and_clamp (const IColor &col, int delta) |
static bool | decompress_etc1 (SkISize dimensions, const uint8_t *srcData, SkBitmap *dst) |
static SkPMColor | from565 (uint16_t rgb565) |
static SkPMColor | lerp (float t, SkPMColor col0, SkPMColor col1) |
static bool | decompress_bc1 (SkISize dimensions, const uint8_t *srcData, bool isOpaque, SkBitmap *dst) |
bool | SkDecompress (sk_sp< SkData > data, SkISize dimensions, SkTextureCompressionType compressionType, SkBitmap *dst) |
size_t | SkCompressedDataSize (SkTextureCompressionType type, SkISize dimensions, TArray< size_t > *individualMipOffsets, bool mipmapped) |
size_t | SkCompressedBlockSize (SkTextureCompressionType type) |
size_t | SkCompressedFormatDataSize (SkTextureCompressionType compressionType, SkISize dimensions, bool mipmapped) |
Variables | |
constexpr uint32_t | kFlipBit = 0x1 |
constexpr uint32_t | kDiffBit = 0x2 |
static const int | kNumETC1ModifierTables = 8 |
static const int | kNumETC1PixelIndices = 4 |
static const int | kETC1ModifierTables [kNumETC1ModifierTables][kNumETC1PixelIndices] |
Definition at line 87 of file SkCompressedDataUtils.cpp.
|
static |
Definition at line 189 of file SkCompressedDataUtils.cpp.
Definition at line 95 of file SkCompressedDataUtils.cpp.
Definition at line 35 of file SkCompressedDataUtils.cpp.
Definition at line 45 of file SkCompressedDataUtils.cpp.
Definition at line 40 of file SkCompressedDataUtils.cpp.
|
static |
Definition at line 170 of file SkCompressedDataUtils.cpp.
Definition at line 179 of file SkCompressedDataUtils.cpp.
Definition at line 67 of file SkCompressedDataUtils.cpp.
size_t SkCompressedBlockSize | ( | SkTextureCompressionType | type | ) |
Definition at line 290 of file SkCompressedDataUtils.cpp.
size_t SkCompressedDataSize | ( | SkTextureCompressionType | type, |
SkISize | dimensions, | ||
TArray< size_t > * | individualMipOffsets, | ||
bool | mipmapped | ||
) |
Definition at line 254 of file SkCompressedDataUtils.cpp.
size_t SkCompressedFormatDataSize | ( | SkTextureCompressionType | compressionType, |
SkISize | dimensions, | ||
bool | mipmapped | ||
) |
Returns the data size for the given SkTextureCompressionType
Definition at line 303 of file SkCompressedDataUtils.cpp.
bool SkDecompress | ( | sk_sp< SkData > | data, |
SkISize | dimensions, | ||
SkTextureCompressionType | compressionType, | ||
SkBitmap * | dst | ||
) |
Definition at line 237 of file SkCompressedDataUtils.cpp.
|
constexpr |
Definition at line 33 of file SkCompressedDataUtils.cpp.
|
static |
Definition at line 56 of file SkCompressedDataUtils.cpp.
|
constexpr |
Definition at line 32 of file SkCompressedDataUtils.cpp.
|
static |
Definition at line 51 of file SkCompressedDataUtils.cpp.
|
static |
Definition at line 52 of file SkCompressedDataUtils.cpp.