Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
DataUtils.cpp File Reference
#include "src/gpu/DataUtils.h"
#include "include/core/SkTextureCompressionType.h"
#include "include/gpu/GpuTypes.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkMath.h"
#include "include/private/base/SkTPin.h"
#include "include/private/base/SkTemplates.h"
#include "src/base/SkMathPriv.h"
#include "src/core/SkCompressedDataUtils.h"
#include "src/core/SkMipmap.h"
#include "src/core/SkTraceEvent.h"
#include <algorithm>
#include <cstdint>
#include <cstring>

Go to the source code of this file.

Classes

struct  skgpu::ETC1Block
 
struct  skgpu::BC1Block
 

Namespaces

namespace  skgpu
 

Functions

static int skgpu::extend_5To8bits (int b)
 
static int skgpu::test_table_entry (int rOrig, int gOrig, int bOrig, int r8, int g8, int b8, int table, int offset)
 
static void skgpu::create_etc1_block (SkColor col, ETC1Block *block)
 
static int skgpu::num_4x4_blocks (int size)
 
static int skgpu::num_ETC1_blocks (int w, int h)
 
static uint16_t skgpu::to565 (SkColor col)
 
static void skgpu::create_BC1_block (SkColor col0, SkColor col1, BC1Block *block)
 
size_t skgpu::NumCompressedBlocks (SkTextureCompressionType type, SkISize baseDimensions)
 
size_t skgpu::CompressedRowBytes (SkTextureCompressionType type, int width)
 
SkISize skgpu::CompressedDimensions (SkTextureCompressionType type, SkISize baseDimensions)
 
SkISize skgpu::CompressedDimensionsInBlocks (SkTextureCompressionType type, SkISize baseDimensions)
 
static void skgpu::fillin_ETC1_with_color (SkISize dimensions, const SkColor4f &colorf, char *dest)
 
static void skgpu::fillin_BC1_with_color (SkISize dimensions, const SkColor4f &colorf, char *dest)
 
void skgpu::FillInCompressedData (SkTextureCompressionType type, SkISize dimensions, skgpu::Mipmapped mipmapped, char *dstPixels, const SkColor4f &colorf)
 

Variables

constexpr uint32_t skgpu::kDiffBit = 0x2
 
static const int skgpu::kNumETC1ModifierTables = 8
 
static const int skgpu::kNumETC1PixelIndices = 4
 
static const int skgpu::kETC1ModifierTables [kNumETC1ModifierTables][kNumETC1PixelIndices]