/frameworks/base/graphics/java/android/graphics/ |
D | PixelFormat.java | 103 public int bytesPerPixel; field in PixelFormat 112 info.bytesPerPixel = 4; in getPixelFormatInfo() 117 info.bytesPerPixel = 3; in getPixelFormatInfo() 124 info.bytesPerPixel = 2; in getPixelFormatInfo() 130 info.bytesPerPixel = 1; in getPixelFormatInfo() 135 info.bytesPerPixel = 1; in getPixelFormatInfo() 139 info.bytesPerPixel = 1; in getPixelFormatInfo() 143 info.bytesPerPixel = 8; in getPixelFormatInfo()
|
/frameworks/base/media/jni/ |
D | android_media_Utils.cpp | 135 int bytesPerPixel = 0; in getLockedImageInfo() local 301 bytesPerPixel = 2; in getLockedImageInfo() 306 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 307 pStride = bytesPerPixel; in getLockedImageInfo() 330 bytesPerPixel = 2; in getLockedImageInfo() 333 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 334 pStride = bytesPerPixel; in getLockedImageInfo() 380 bytesPerPixel = 4; in getLockedImageInfo() 383 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 384 pStride = bytesPerPixel; in getLockedImageInfo() [all …]
|
/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/av/media/ndk/ |
D | NdkImage.cpp | 425 int bytesPerPixel = 0; in getPlaneData() local 484 bytesPerPixel = 2; in getPlaneData() 488 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 503 bytesPerPixel = 2; in getPlaneData() 506 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 557 bytesPerPixel = 4; in getPlaneData() 560 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 564 bytesPerPixel = 2; in getPlaneData() 567 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData() 571 bytesPerPixel = 3; 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/ui/ |
D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
|
D | GraphicBufferAllocator.cpp | 122 const uint32_t bpp = bytesPerPixel(format); in allocateHelper()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/frameworks/native/include/ui/ |
D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/frameworks/native/libs/ui/include/ui/ |
D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 135 int32_t bytesPerPixel; in AHardwareBuffer_lockAndGetInfo() local 137 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo() 141 if (bytesPerPixel == -1 || bytesPerStride == -1) { in AHardwareBuffer_lockAndGetInfo() 146 if (outBytesPerPixel) *outBytesPerPixel = bytesPerPixel; in AHardwareBuffer_lockAndGetInfo() 153 int32_t bytesPerPixel; in AHardwareBuffer_lock() local 180 …return gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &bytesPe… in AHardwareBuffer_lock()
|
/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/base/cmds/screencap/ |
D | screencap.cpp | 219 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in main() 247 size_t Bpp = bytesPerPixel(f); in main()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
|
/frameworks/base/libs/hwui/apex/ |
D | android_canvas.cpp | 44 size_t rowBytes = buffer->stride * imageInfo.bytesPerPixel(); in convert()
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapFactory.cpp | 102 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local 103 const int requestedSize = bytesPerPixel * in allocPixelRef()
|
D | Bitmap.cpp | 1130 const size_t size = bm0.width() * bm0.bytesPerPixel(); in Bitmap_sameAs()
|
/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 | 2556 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteImage() local 2559 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteImage() 2560 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteImage() 2662 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteInputStream() local 2665 width, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteInputStream() 2666 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteInputStream()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraTestUtils.java | 898 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local 900 if (pixelStride == bytesPerPixel) { in getDataFromImage() 902 length = w * bytesPerPixel; in getDataFromImage() 909 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
|
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 162 const size_t rowBytes = info.bytesPerPixel() * bufferStride; in createFrom()
|
/frameworks/native/libs/renderengine/skia/ |
D | SkiaGLRenderEngine.cpp | 1406 const float SURFACE_SIZE_MULTIPLIER = 3.5f * bytesPerPixel(mDefaultPixelFormat); in onPrimaryDisplaySizeChanged()
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 2359 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
|
/frameworks/base/core/api/ |
D | current.txt | 15900 field public int bytesPerPixel;
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 11265 field public int bytesPerPixel;
|