/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 | 134 int bytesPerPixel = 0; in getLockedImageInfo() local 211 bytesPerPixel = 2; in getLockedImageInfo() 216 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 217 pStride = bytesPerPixel; in getLockedImageInfo() 240 bytesPerPixel = 2; in getLockedImageInfo() 243 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 244 pStride = bytesPerPixel; in getLockedImageInfo() 290 bytesPerPixel = 4; in getLockedImageInfo() 293 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo() 294 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/base/cmds/screencap/ |
D | screencap.cpp | 232 size = s * h * bytesPerPixel(f); in main() 238 SkPixmap pixmap(info, base, s * bytesPerPixel(f)); in main() 259 size_t Bpp = bytesPerPixel(f); in main()
|
/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/ui/ |
D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
|
D | GraphicBufferAllocator.cpp | 118 const uint32_t bpp = bytesPerPixel(format); in allocate()
|
/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/native/libs/ui/include_vndk/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/base/libs/input/ |
D | SpriteIcon.cpp | 38 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in draw()
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | HwBitmapInCompositeShader.cpp | 44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
|
/frameworks/base/core/jni/ |
D | android_view_TextureView.cpp | 159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format); in android_view_TextureView_lockCanvas()
|
D | android_hardware_camera2_DngCreator.cpp | 2456 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteImage() local 2459 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteImage() 2460 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteImage() 2562 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteInputStream() local 2565 width, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteInputStream() 2566 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteInputStream()
|
D | android_view_Surface.cpp | 264 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 512 int32_t bytesPerPixel, int32_t bytesPerStride) { in map() argument 517 (void)bytesPerPixel; in map() 625 int32_t bytesPerPixel, int32_t bytesPerStride) { in map() argument 630 (void)bytesPerPixel; in map()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapFactory.cpp | 110 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local 111 const int requestedSize = bytesPerPixel * in allocPixelRef()
|
D | GraphicBuffer.cpp | 194 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in android_graphics_GraphicBuffer_lockCanvas()
|
D | Bitmap.cpp | 1066 const size_t size = bm0.width() * bm0.bytesPerPixel(); in Bitmap_sameAs()
|
/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 | 219 …bytesPerPixel(buffer->getPixelFormat()) * (buffer->getStride() > 0 ? buffer->getStride() : buffer-… in Bitmap()
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 1768 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 11265 field public int bytesPerPixel;
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 14801 field public int bytesPerPixel;
|