Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 – 25 of 92) sorted by relevance

1234

/external/glide/library/src/main/java/com/bumptech/glide/util/
DUtil.java94 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/
DSkMasks.cpp127 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()
DSkCodecPriv.h121 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()
DSkGifCodec.cpp524 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/
DGrStrikeCache.cpp207 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/
DGrStrikeCache.cpp207 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/
DSkImageInfo.cpp37 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()
DSkConvertPixels.cpp167 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/
DSkImageInfo.cpp38 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()
DSkConvertPixels.cpp168 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/
DSkPixmap.h307 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()
DSkImageInfo.h493 int bytesPerPixel() const;
508 uint64_t minRowBytes64() const { return sk_64_mul(this->width(), this->bytesPerPixel()); } in minRowBytes64()
/external/skqp/include/core/
DSkPixmap.h297 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()
DSkImageInfo.h487 int bytesPerPixel() const;
502 uint64_t minRowBytes64() const { return sk_64_mul(this->width(), this->bytesPerPixel()); } in minRowBytes64()
/external/skqp/src/codec/
DSkCodecPriv.h121 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/
DSoftwareRenderer.cpp177 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/
Dimage.c312 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/
DRasterWindowContext_unix.cpp68 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/
DRasterWindowContext_unix.cpp68 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/
DGrAHardwareBufferTest.cpp66 pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); in make_src_bitmap()
151 int bbp = srcBitmap.bytesPerPixel(); in basic_draw_test_helper()
/external/skia/docs/
DSkBitmap_Reference.bmh392 #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 …]
DSkPixmap_Reference.bmh253 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/
DSkBitmap_Reference.bmh392 #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 …]
DSkPixmap_Reference.bmh253 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/
Dnvmap_carveout_compactor.c137 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()

1234