/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 94 int bytesPerPixel; in getBytesPerPixel() local 97 bytesPerPixel = 1; in getBytesPerPixel() 101 bytesPerPixel = 2; in getBytesPerPixel() 105 bytesPerPixel = 4; in getBytesPerPixel() 107 return bytesPerPixel; in getBytesPerPixel()
|
/external/skia/src/codec/ |
D | SkMasks.cpp | 127 SkMasks* SkMasks::CreateMasks(InputMasks masks, int bytesPerPixel) { in CreateMasks() argument 128 SkASSERT(0 < bytesPerPixel && bytesPerPixel <= 4); in CreateMasks() 131 if (bytesPerPixel < 4) { in CreateMasks() 132 int bitsPerPixel = 8*bytesPerPixel; in CreateMasks()
|
D | SkCodecPriv.h | 121 static inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { in compute_row_bytes_bpp() argument 122 return width * bytesPerPixel; in compute_row_bytes_bpp() 135 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes() local 136 return compute_row_bytes_bpp(width, bytesPerPixel); in compute_row_bytes()
|
D | SkGifCodec.cpp | 524 const size_t bytesPerPixel = this->dstInfo().bytesPerPixel(); in haveDecodedRow() local 525 const size_t bytesToCopy = fSwizzler->swizzleWidth() * bytesPerPixel; in haveDecodedRow()
|
/external/skqp/src/gpu/text/ |
D | GrStrikeCache.cpp | 207 int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat); in addGlyphToAtlas() local 210 int rowBytes = width * bytesPerPixel; in addGlyphToAtlas() 212 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas() 217 rowBytes += 2*bytesPerPixel; in addGlyphToAtlas() 220 size += 2 * (height + 2) * bytesPerPixel; in addGlyphToAtlas() 228 dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel; in addGlyphToAtlas()
|
/external/skia/src/gpu/text/ |
D | GrStrikeCache.cpp | 207 int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat); in addGlyphToAtlas() local 210 int rowBytes = width * bytesPerPixel; in addGlyphToAtlas() 212 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas() 217 rowBytes += 2*bytesPerPixel; in addGlyphToAtlas() 220 size += 2 * (height + 2) * bytesPerPixel; in addGlyphToAtlas() 228 dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel; in addGlyphToAtlas()
|
/external/skqp/src/core/ |
D | SkImageInfo.cpp | 37 int SkImageInfo::bytesPerPixel() const { return SkColorTypeBytesPerPixel(fColorType); } in bytesPerPixel() function in SkImageInfo 53 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize() 126 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim() 163 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
|
D | SkConvertPixels.cpp | 167 SkRasterPipeline_MemoryCtx src = { (void*)srcRow, (int)(srcRB / srcInfo.bytesPerPixel()) }, in convert_with_pipeline() 168 dst = { (void*)dstRow, (int)(dstRB / dstInfo.bytesPerPixel()) }; in convert_with_pipeline() 178 if (srcInfo.bytesPerPixel() > dstInfo.bytesPerPixel()) { in convert_with_pipeline()
|
/external/skia/src/core/ |
D | SkImageInfo.cpp | 38 int SkImageInfo::bytesPerPixel() const { return SkColorTypeBytesPerPixel(fColorType); } in bytesPerPixel() function in SkImageInfo 54 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize() 128 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim() 165 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
|
D | SkConvertPixels.cpp | 168 SkRasterPipeline_MemoryCtx src = { (void*)srcRow, (int)(srcRB / srcInfo.bytesPerPixel()) }, in convert_with_pipeline() 169 dst = { (void*)dstRow, (int)(dstRB / dstInfo.bytesPerPixel()) }; in convert_with_pipeline()
|
/external/skia/include/core/ |
D | SkPixmap.h | 307 SkASSERT(1 == fInfo.bytesPerPixel()); in addr8() 320 SkASSERT(2 == fInfo.bytesPerPixel()); in addr16() 333 SkASSERT(4 == fInfo.bytesPerPixel()); in addr32() 346 SkASSERT(8 == fInfo.bytesPerPixel()); in addr64() 360 SkASSERT(8 == fInfo.bytesPerPixel()); in addrF16()
|
D | SkImageInfo.h | 493 int bytesPerPixel() const; 508 uint64_t minRowBytes64() const { return sk_64_mul(this->width(), this->bytesPerPixel()); } in minRowBytes64()
|
/external/skqp/include/core/ |
D | SkPixmap.h | 297 SkASSERT(1 == fInfo.bytesPerPixel()); in addr8() 310 SkASSERT(2 == fInfo.bytesPerPixel()); in addr16() 323 SkASSERT(4 == fInfo.bytesPerPixel()); in addr32() 336 SkASSERT(8 == fInfo.bytesPerPixel()); in addr64() 350 SkASSERT(8 == fInfo.bytesPerPixel()); in addrF16()
|
D | SkImageInfo.h | 487 int bytesPerPixel() const; 502 uint64_t minRowBytes64() const { return sk_64_mul(this->width(), this->bytesPerPixel()); } in minRowBytes64()
|
/external/skqp/src/codec/ |
D | SkCodecPriv.h | 121 static inline size_t compute_row_bytes_bpp(int width, uint32_t bytesPerPixel) { in compute_row_bytes_bpp() argument 122 return width * bytesPerPixel; in compute_row_bytes_bpp() 135 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes() local 136 return compute_row_bytes_bpp(width, bytesPerPixel); in compute_row_bytes()
|
/external/mesa3d/src/gallium/targets/haiku-softpipe/ |
D | SoftwareRenderer.cpp | 177 uint8 bytesPerPixel = bytesPerRow / fBitmap->Bounds().IntegerWidth(); in SwapBuffers() local 183 = (clip->right - clip->left + 1) * bytesPerPixel; in SwapBuffers() 184 bytesWidth -= bytesPerPixel; in SwapBuffers() 186 * fInfo->bytes_per_row + clip->left * bytesPerPixel; in SwapBuffers() 189 + (clip->left - fInfo->window_bounds.left) * bytesPerPixel; in SwapBuffers()
|
/external/mesa3d/src/mesa/main/ |
D | image.c | 312 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); in _mesa_image_row_stride() local 313 if (bytesPerPixel <= 0) in _mesa_image_row_stride() 316 bytesPerRow = bytesPerPixel * width; in _mesa_image_row_stride() 319 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_row_stride() 359 const GLint bytesPerPixel = _mesa_bytes_per_pixel(format, type); in _mesa_image_image_stride() local 361 if (bytesPerPixel <= 0) in _mesa_image_image_stride() 364 bytesPerRow = bytesPerPixel * width; in _mesa_image_image_stride() 367 bytesPerRow = bytesPerPixel * packing->RowLength; in _mesa_image_image_stride()
|
/external/skqp/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() 80 image.bytes_per_line = pm.rowBytes() - pm.width() * pm.info().bytesPerPixel(); in swapBuffers()
|
/external/skia/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() 80 image.bytes_per_line = pm.rowBytes() - pm.width() * pm.info().bytesPerPixel(); in swapBuffers()
|
/external/skqp/tests/ |
D | GrAHardwareBufferTest.cpp | 66 pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); in make_src_bitmap() 151 int bbp = srcBitmap.bytesPerPixel(); in basic_draw_test_helper()
|
/external/skia/docs/ |
D | SkBitmap_Reference.bmh | 392 #Formula # rowBytes() / info().bytesPerPixel() ##. 538 #Method int bytesPerPixel() const 551 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d\n", 553 bitmap.bytesPerPixel()); 556 color: kUnknown_SkColorType bytesPerPixel: 0 557 color: kAlpha_8_SkColorType bytesPerPixel: 1 558 color: kRGB_565_SkColorType bytesPerPixel: 2 559 color: kARGB_4444_SkColorType bytesPerPixel: 2 560 color: kRGBA_8888_SkColorType bytesPerPixel: 4 561 color: kRGB_888x_SkColorType bytesPerPixel: 4 [all …]
|
D | SkPixmap_Reference.bmh | 253 is at least as large as: #Formula # width() * info().bytesPerPixel() ##. 316 #Formula # rowBytes() / info().bytesPerPixel() ##. 517 #SeeAlso rowBytes shiftPerPixel width SkImageInfo::bytesPerPixel 538 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d shiftPerPixel: %d\n", 540 pixmap.info().bytesPerPixel(), pixmap.shiftPerPixel()); 543 color: kUnknown_SkColorType bytesPerPixel: 0 shiftPerPixel: 0 544 color: kAlpha_8_SkColorType bytesPerPixel: 1 shiftPerPixel: 0 545 color: kRGB_565_SkColorType bytesPerPixel: 2 shiftPerPixel: 1 546 color: kARGB_4444_SkColorType bytesPerPixel: 2 shiftPerPixel: 1 547 color: kRGBA_8888_SkColorType bytesPerPixel: 4 shiftPerPixel: 2 [all …]
|
/external/skqp/docs/ |
D | SkBitmap_Reference.bmh | 392 #Formula # rowBytes() / info().bytesPerPixel() ##. 538 #Method int bytesPerPixel() const 551 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d\n", 553 bitmap.bytesPerPixel()); 556 color: kUnknown_SkColorType bytesPerPixel: 0 557 color: kAlpha_8_SkColorType bytesPerPixel: 1 558 color: kRGB_565_SkColorType bytesPerPixel: 2 559 color: kARGB_4444_SkColorType bytesPerPixel: 2 560 color: kRGBA_8888_SkColorType bytesPerPixel: 4 561 color: kRGB_888x_SkColorType bytesPerPixel: 4 [all …]
|
D | SkPixmap_Reference.bmh | 253 is at least as large as: #Formula # width() * info().bytesPerPixel() ##. 316 #Formula # rowBytes() / info().bytesPerPixel() ##. 517 #SeeAlso rowBytes shiftPerPixel width SkImageInfo::bytesPerPixel 538 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d shiftPerPixel: %d\n", 540 pixmap.info().bytesPerPixel(), pixmap.shiftPerPixel()); 543 color: kUnknown_SkColorType bytesPerPixel: 0 shiftPerPixel: 0 544 color: kAlpha_8_SkColorType bytesPerPixel: 1 shiftPerPixel: 0 545 color: kRGB_565_SkColorType bytesPerPixel: 2 shiftPerPixel: 1 546 color: kARGB_4444_SkColorType bytesPerPixel: 2 shiftPerPixel: 1 547 color: kRGBA_8888_SkColorType bytesPerPixel: 4 shiftPerPixel: 2 [all …]
|
/external/autotest/client/deps/nvmap_compactor/src/ |
D | nvmap_carveout_compactor.c | 137 int x, y, bytesPerPixel; in CreateTexture() local 143 bytesPerPixel = 4; in CreateTexture() 145 data = (char *)malloc((size_t)(width*height*bytesPerPixel)); in CreateTexture() 151 int idx = (y*width + x)*bytesPerPixel; in CreateTexture()
|