/frameworks/base/graphics/java/android/graphics/ |
D | PixelFormat.java | 106 public int bytesPerPixel; field in PixelFormat 115 info.bytesPerPixel = 4; in getPixelFormatInfo() 120 info.bytesPerPixel = 3; in getPixelFormatInfo() 127 info.bytesPerPixel = 2; in getPixelFormatInfo() 133 info.bytesPerPixel = 1; in getPixelFormatInfo() 138 info.bytesPerPixel = 1; in getPixelFormatInfo() 142 info.bytesPerPixel = 1; in getPixelFormatInfo() 146 info.bytesPerPixel = 8; in getPixelFormatInfo() 150 info.bytesPerPixel = 1; in getPixelFormatInfo()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 275 final int bytesPerPixel = 2; in testCopyWithDirectByteBuffer() local 284 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectByteBuffer() 295 pad + width * height * bytesPerPixel / bytesPerElement); in testCopyWithDirectByteBuffer() 313 final int bytesPerPixel = 2; in testCopyWithDirectShortBuffer() local 322 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectShortBuffer() 334 pad + width * height * bytesPerPixel / bytesPerElement); in testCopyWithDirectShortBuffer() 352 final int bytesPerPixel = 2; in testCopyWithDirectIntBuffer() local 361 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectIntBuffer() 373 pad + width * height * bytesPerPixel / bytesPerElement); in testCopyWithDirectIntBuffer() 391 final int bytesPerPixel = 2; in testCopyWithHeapByteBuffer() local [all …]
|
/frameworks/base/media/jni/ |
D | android_media_Utils.cpp | 170 int bytesPerPixel = 0; in getLockedImageInfo() local 357 bytesPerPixel = 2; in getLockedImageInfo() 362 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 363 pStride = bytesPerPixel; in getLockedImageInfo() 386 bytesPerPixel = 2; in getLockedImageInfo() 389 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 390 pStride = bytesPerPixel; in getLockedImageInfo() 436 bytesPerPixel = 4; in getLockedImageInfo() 439 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 440 pStride = bytesPerPixel; in getLockedImageInfo() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 455 int bytesPerPixel = 0; in getPlaneData() local 531 bytesPerPixel = mLockedBuffer->chromaStep; in getPlaneData() 534 bytesPerPixel * (mLockedBuffer->width / 2); in getPlaneData() 555 bytesPerPixel = 2; in getPlaneData() 559 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 574 bytesPerPixel = 2; in getPlaneData() 577 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 628 bytesPerPixel = 4; in getPlaneData() 631 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 635 bytesPerPixel = 2; in getPlaneData() [all …]
|
/frameworks/native/libs/ui/tests/ |
D | GraphicBuffer_test.cpp | 46 bytesPerPixel(format) >= in TEST_F() 56 const size_t targetArea = std::numeric_limits<size_t>::max() / bytesPerPixel(format); in TEST_F()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 228 int32_t bytesPerPixel; in AHardwareBuffer_lockAndGetInfo() local 230 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo() 234 if (bytesPerPixel == -1 || bytesPerStride == -1) { in AHardwareBuffer_lockAndGetInfo() 239 if (outBytesPerPixel) *outBytesPerPixel = bytesPerPixel; in AHardwareBuffer_lockAndGetInfo() 246 int32_t bytesPerPixel; in AHardwareBuffer_lock() local 273 …return gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &bytesPe… in AHardwareBuffer_lock() 322 int32_t bytesPerPixel; in AHardwareBuffer_lockPlanes() local 325 &bytesPerPixel, &bytesPerStride); in AHardwareBuffer_lockPlanes() 327 outPlanes->planes[0].pixelStride = bytesPerPixel; in AHardwareBuffer_lockPlanes()
|
/frameworks/native/libs/ui/ |
D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
|
D | GraphicBufferAllocator.cpp | 125 const uint32_t bpp = bytesPerPixel(request.format); in allocate() 200 const uint32_t bpp = bytesPerPixel(format); in allocateHelper()
|
D | GraphicBuffer.cpp | 378 legacyBpp = bytesPerPixel(format); in lockAsync() 403 *outBytesPerPixel = legacyBpp != -1 ? legacyBpp : value.bytesPerPixel; in lockAsync()
|
/frameworks/native/libs/ui/include/ui/ |
D | PixelFormat.h | 73 uint32_t bytesPerPixel(PixelFormat format);
|
D | GraphicBufferMapper.h | 83 int32_t bytesPerPixel = -1; member
|
/frameworks/native/include/ui/ |
D | PixelFormat.h | 73 uint32_t bytesPerPixel(PixelFormat format);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | PixelFormat.h | 73 uint32_t bytesPerPixel(PixelFormat format);
|
D | GraphicBufferMapper.h | 83 int32_t bytesPerPixel = -1; member
|
/frameworks/native/libs/gui/tests/ |
D | CpuConsumer_test.cpp | 206 const int bytesPerPixel = 4; in checkPixel() local 208 bPtr += (y * buf.stride + x) * bytesPerPixel; in checkPixel() 260 const int bytesPerPixel = 4; in fillRgba8888Buffer() local 272 buf[(y*stride + x)*bytesPerPixel + 0] = r; in fillRgba8888Buffer() 273 buf[(y*stride + x)*bytesPerPixel + 1] = g; in fillRgba8888Buffer() 274 buf[(y*stride + x)*bytesPerPixel + 2] = b; in fillRgba8888Buffer() 275 buf[(y*stride + x)*bytesPerPixel + 3] = 255; in fillRgba8888Buffer()
|
/frameworks/rs/toolkit/ |
D | JniEntryPoints.cpp | 112 int bytesPerPixel; member in BitmapGuard 128 bytesPerPixel = info.stride / info.width; 129 if (bytesPerPixel != 1 && bytesPerPixel != 4) { 132 bytesPerPixel); 152 int vectorSize() const { return bytesPerPixel; } in vectorSize()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 46 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 210 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in saveImage() 238 size_t Bpp = bytesPerPixel(f); in saveImage()
|
/frameworks/base/libs/hwui/apex/ |
D | android_canvas.cpp | 46 size_t rowBytes = buffer->stride * imageInfo.bytesPerPixel(); in convert()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaCpuPipeline.cpp | 121 size_t widthBytes = width * imageInfo.bytesPerPixel(); in setSurface()
|
/frameworks/native/services/surfaceflinger/ |
D | HdrSdrRatioOverlay.cpp | 92 const size_t dstRowBytes = buffer->getStride() * static_cast<size_t>(imageInfo.bytesPerPixel()); in draw()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 84 size *= std::max(1u, bytesPerPixel(buffer->format)); in AHardwareBuffer_getAllocationSize() 206 const size_t rowBytes = info.bytesPerPixel() * bufferStride; in createFrom()
|
/frameworks/base/core/jni/ |
D | android_hardware_HardwareBuffer.cpp | 172 uint32_t bpp = bytesPerPixel(buffer->getPixelFormat()); in android_hardware_HardwareBuffer_estimateSize()
|
D | android_hardware_camera2_DngCreator.cpp | 2499 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteImage() local 2502 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteImage() 2503 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteImage() 2618 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteInputStream() local 2621 width, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteInputStream() 2622 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteInputStream()
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapFactory.cpp | 112 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local 113 const int requestedSize = bytesPerPixel * in allocPixelRef()
|