Lines Matching defs:block
70 // Create an ETC1 compressed block that is filled with 'col'
71 static void create_etc1_block(SkColor col, ETC1Block* block) {
115 block->fHigh = SkBSwap32(high);
116 block->fLow = SkBSwap32(low);
154 // Create a BC1 compressed block that has two colors but is initialized to 'col0'
155 static void create_BC1_block(SkColor col0, SkColor col1, BC1Block* block) {
156 block->fColor0 = to565(col0);
157 block->fColor1 = to565(col1);
158 SkASSERT(block->fColor0 <= block->fColor1); // we always assume transparent blocks
164 block->fIndices = 0xFFFFFFFF;
167 block->fIndices = 0;
215 // The evil number 16 here is the constant size of ASTC 4x4 block
221 // The evil number 16 here is the constant size of ASTC 6x6 block
227 // The evil number 16 here is the constant size of ASTC 8x8 block
245 // Each BC1_RGB8_UNORM and ETC1 block and ASTC 4x4 block has 16 pixels
252 // Each ASTC 6x6 block has 36 pixels
259 // Each ASTC 8x8 block has 64 pixels
270 ETC1Block block;
271 create_etc1_block(color, &block);
276 memcpy(dest, &block, sizeof(ETC1Block));
285 BC1Block block;
286 create_BC1_block(color, color, &block);
291 memcpy(dest, &block, sizeof(BC1Block));
303 BC1Block block;
306 create_BC1_block(SK_ColorBLACK, otherColor, &block);
315 block.fIndices = 0; // init all the pixels to color0 (i.e., opaque black)
327 block.fIndices |= 3 << shift;
329 block.fIndices |= 1 << shift; // color1
334 dstBlocks[y*numXBlocks + x] = block;
779 char block[64];
780 SkArenaAlloc alloc(block, sizeof(block), 1024);