Lines Matching refs:rowBytes
88 int width, int height, size_t rowBytes, in compress_4x4_a8_to_64bit() argument
104 memcpy(block + k*4, src + k*rowBytes + 4*x, 4); in compress_4x4_a8_to_64bit()
111 src += 4 * rowBytes; in compress_4x4_a8_to_64bit()
353 typedef uint64_t (*PackIndicesProc)(const uint8_t* alpha, size_t rowBytes);
355 static void compress_a8_latc_block(uint8_t** dstPtr, const uint8_t* src, size_t rowBytes) { in compress_a8_latc_block() argument
357 SkEndian_SwapLE64(0xFF | (packIndicesProc(src, rowBytes) << 16)); in compress_a8_latc_block()
361 inline uint64_t PackRowMajor(const uint8_t *indices, size_t rowBytes) { in PackRowMajor() argument
364 const uint32_t idx = *(reinterpret_cast<const uint32_t*>(indices + i*rowBytes)); in PackRowMajor()
370 inline uint64_t PackColumnMajor(const uint8_t *indices, size_t rowBytes) { in PackColumnMajor() argument
376 transposed[j*4+i] = indices[i*rowBytes + j]; in PackColumnMajor()
384 int width, int height, size_t rowBytes) { in compress_4x4_a8_latc() argument
393 compress_a8_latc_block<PackRowMajor>(dstPtr, src + y*rowBytes + x, rowBytes); in compress_4x4_a8_latc()
475 bool CompressA8ToLATC(uint8_t* dst, const uint8_t* src, int width, int height, size_t rowBytes) { in CompressA8ToLATC() argument
477 return compress_4x4_a8_latc(dst, src, width, height, rowBytes); in CompressA8ToLATC()
479 return compress_4x4_a8_to_64bit(dst, src, width, height, rowBytes, compress_latc_block); in CompressA8ToLATC()