Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 - 25 of 64) sorted by relevance

123

/third_party/skia/src/codec/
H A DSkMasks.cpp127 SkMasks* SkMasks::CreateMasks(InputMasks masks, int bytesPerPixel) { in CreateMasks() argument
128 SkASSERT(0 < bytesPerPixel && bytesPerPixel <= 4); in CreateMasks()
130 // Trim the input masks to match bytesPerPixel. in CreateMasks()
131 if (bytesPerPixel < 4) { in CreateMasks()
132 int bitsPerPixel = 8*bytesPerPixel; in CreateMasks()
H A 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()
H A DSkWuffsCodec.cpp244 size_t bytesPerPixel);
440 size_t bytesPerPixel = 0; in onStartIncrementalDecode() local
445 bytesPerPixel = 2; in onStartIncrementalDecode()
449 bytesPerPixel = 4; in onStartIncrementalDecode()
453 bytesPerPixel = 4; in onStartIncrementalDecode()
470 pixelFormat, bytesPerPixel) in onStartIncrementalDecode()
487 size_t bytesPerPixel) { in onStartIncrementalDecodeOnePass()
494 table.width = static_cast<size_t>(dstInfo.width()) * bytesPerPixel; in onStartIncrementalDecodeOnePass()
482 onStartIncrementalDecodeOnePass(const SkImageInfo& dstInfo, uint8_t* dst, size_t rowBytes, const SkCodec::Options& options, uint32_t pixelFormat, size_t bytesPerPixel) onStartIncrementalDecodeOnePass() argument
H A DSkMasks.h38 static SkMasks* CreateMasks(InputMasks masks, int bytesPerPixel);
/third_party/skia/include/core/
H A DSkPixmap.h46 info.bytesPerPixel(), or larger.
79 info.bytesPerPixel(), or larger.
128 is at least as large as: width() * info().bytesPerPixel().
146 rowBytes() / info().bytesPerPixel().
298 SkASSERT(1 == fInfo.bytesPerPixel()); in addr8()
311 SkASSERT(2 == fInfo.bytesPerPixel()); in addr16()
324 SkASSERT(4 == fInfo.bytesPerPixel()); in addr32()
337 SkASSERT(8 == fInfo.bytesPerPixel()); in addr64()
351 SkASSERT(8 == fInfo.bytesPerPixel()); in addrF16()
H A DSkImageInfo.h258 int bytesPerPixel() const;
583 int bytesPerPixel() const { return fColorInfo.bytesPerPixel(); } in bytesPerPixel() function
593 specifies bytesPerPixel(). SkBitmap maximum value for row bytes must fit
596 @return width() times bytesPerPixel() as unsigned 64-bit integer
599 return (uint64_t)sk_64_mul(this->width(), this->bytesPerPixel()); in minRowBytes64()
603 specifies bytesPerPixel(). SkBitmap maximum value for row bytes must fit
606 @return width() times bytesPerPixel() as size_t
/third_party/skia/src/core/
H A DSkImageInfo.cpp47 int SkColorInfo::bytesPerPixel() const { return SkColorTypeBytesPerPixel(fColorType); } in bytesPerPixel() function in SkColorInfo
65 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize()
170 fPixels = ((char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
207 fPixels = ((const char*)fPixels + -y*fRowBytes + -x*fInfo.bytesPerPixel()); in trim()
H A DSkConvertPixels.cpp227 int srcStride = (int)(srcRB / srcInfo.bytesPerPixel()); in SkConvertPixels()
228 int dstStride = (int)(dstRB / dstInfo.bytesPerPixel()); in SkConvertPixels()
229 if ((size_t)srcStride * srcInfo.bytesPerPixel() != srcRB || in SkConvertPixels()
230 (size_t)dstStride * dstInfo.bytesPerPixel() != dstRB) { in SkConvertPixels()
/third_party/skia/src/gpu/
H A DGrDataUtils.cpp341 size_t GrComputeTightCombinedBufferSize(size_t bytesPerPixel, SkISize baseDimensions, in GrComputeTightCombinedBufferSize() argument
348 size_t combinedBufferSize = baseDimensions.width() * bytesPerPixel * baseDimensions.height(); in GrComputeTightCombinedBufferSize()
353 SkASSERT(bytesPerPixel == 1 || bytesPerPixel == 2 || bytesPerPixel == 3 || in GrComputeTightCombinedBufferSize()
354 bytesPerPixel == 4 || bytesPerPixel == 8 || bytesPerPixel == 16); in GrComputeTightCombinedBufferSize()
355 int desiredAlignment = (bytesPerPixel == 3) ? 12 : (bytesPerPixel > in GrComputeTightCombinedBufferSize()
[all...]
H A DGrDataUtils.h33 size_t GrComputeTightCombinedBufferSize(size_t bytesPerPixel, SkISize baseDimensions,
/third_party/mesa3d/src/mesa/main/
H A 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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DPixelTransfer11.cpp132 unsigned int bytesPerPixel = gl::GetSizedInternalFormatInfo(internalFormat).pixelBytes; in setBufferToTextureCopyParams() local
135 (alignmentBytes <= bytesPerPixel ? 1 : alignmentBytes / bytesPerPixel); in setBufferToTextureCopyParams()
137 parametersOut->FirstPixelOffset = offset / bytesPerPixel; in setBufferToTextureCopyParams()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DTextureUploadFormatTest.cpp31 uint8_t bytesPerPixel() const in bytesPerPixel() function
304 const auto bytesPerPixel = format.bytesPerPixel(); in TEST_P()
309 memcpy(subrectBuffer.data() + bytesPerPixel, srcBuffer.data(), bytesPerPixel); in TEST_P()
H A DImageTest.cpp478 size_t bytesPerPixel; member
509 z * planeHeight * planeWidth * planeData.bytesPerPixel; in writeAHBData()
514 srcDepthSlice + y * planeWidth * planeData.bytesPerPixel; in writeAHBData()
518 const uint8_t *src = srcRow + x * planeData.bytesPerPixel; in writeAHBData()
521 memcpy(dst, src, planeData.bytesPerPixel); in writeAHBData()
539 const size_t stride = aHardwareBufferDescription.stride * data[0].bytesPerPixel; in writeAHBData()
548 size_t srcPtrOffset = (z * height + y) * width * data[0].bytesPerPixel; in writeAHBData()
833 z * planeHeight * (xEnd - xStart) * planeData.bytesPerPixel; in verifyResultAHB()
837 referenceDepthSlice + y * (xEnd - xStart) * planeData.bytesPerPixel; in verifyResultAHB()
841 referenceRow + (x - xStart) * planeData.bytesPerPixel; in verifyResultAHB()
4448 const uint32_t bytesPerPixel = 4; TEST_P() local
[all...]
/third_party/skia/tools/sk_app/unix/
H A 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()
/third_party/skia/src/gpu/text/
H A DGrAtlasManager.cpp154 int bytesPerPixel = GrMaskFormatBytesPerPixel(expectedMaskFormat); local
160 int rowBytes = width * bytesPerPixel;
169 dataPtr = (char*)(dataPtr) + rowBytes + bytesPerPixel;
/third_party/skia/tests/
H A DMallocPixelRefTest.cpp41 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST()
49 size_t rowBytes = info.minRowBytes() + info.bytesPerPixel(); in DEF_TEST()
H A DGrAHardwareBufferTest.cpp67 pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel()); in make_src_bitmap()
152 int bbp = srcBitmap.bytesPerPixel(); in basic_draw_test_helper()
/third_party/skia/docs/examples/
H A DBitmap_getAddr32.cpp9 size_t interval = (row1 - row0) * source.bytesPerPixel(); in REG_FIDDLE()
H A DBitmap_bytesPerPixel.cpp19 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d\n", in REG_FIDDLE()
21 bitmap.bytesPerPixel()); in REG_FIDDLE()
H A DBitmap_allocPixels.cpp9 bitmap.allocPixels(info, info.width() * info.bytesPerPixel() + 64); in REG_FIDDLE()
H A DImageInfo_bytesPerPixel.cpp17 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d\n", in REG_FIDDLE()
19 info.bytesPerPixel()); in REG_FIDDLE()
H A DPixmap_shiftPerPixel.cpp31 SkDebugf("color: k" "%s" "_SkColorType" "%*s" "bytesPerPixel: %d shiftPerPixel: %d\n", in REG_FIDDLE()
33 pixmap.info().bytesPerPixel(), pixmap.shiftPerPixel()); in REG_FIDDLE()
H A DBitmap_getAddr16.cpp14 size_t interval = (row1 - row0) * bitmap16.bytesPerPixel(); in REG_FIDDLE()
/third_party/skia/third_party/externals/libgifcodec/
H A DSkLibGifCodec.cpp529 const size_t bytesPerPixel = this->dstInfo().bytesPerPixel(); in haveDecodedRow() local
530 const size_t bytesToCopy = fSwizzler->swizzleWidth() * bytesPerPixel; in haveDecodedRow()

Completed in 17 milliseconds

123