Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java103 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/
Dandroid_media_Utils.cpp134 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/
DBitmapTest.java275 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/
DNdkImage.cpp425 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/
DGraphicBuffer_test.cpp46 bytesPerPixel(format) >= in TEST_F()
56 const size_t targetArea = std::numeric_limits<size_t>::max() / bytesPerPixel(format); in TEST_F()
/frameworks/base/cmds/screencap/
Dscreencap.cpp232 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/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
DGraphicBufferAllocator.cpp125 const uint32_t bpp = bytesPerPixel(format); in allocateHelper()
/frameworks/native/include/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include_vndk/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp135 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/
DCpuConsumer_test.cpp206 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/libs/hwui/tests/common/scenes/
DHwBitmapInCompositeShader.cpp44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp44 size_t rowBytes = buffer->stride * imageInfo.bytesPerPixel(); in convert()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp99 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local
100 const int requestedSize = bytesPerPixel * in allocPixelRef()
DBitmap.cpp999 const size_t size = bm0.width() * bm0.bytesPerPixel(); in Bitmap_sameAs()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp2456 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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java898 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/
DBitmap.cpp170 const size_t rowBytes = info.bytesPerPixel() * bufferStride; in createFrom()
/frameworks/native/libs/gui/
DSurface.cpp2006 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt11265 field public int bytesPerPixel;
/frameworks/base/api/
Dcurrent.txt15262 field public int bytesPerPixel;