Home
last modified time | relevance | path

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

12

/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/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/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/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
DGraphicBufferAllocator.cpp118 const uint32_t bpp = bytesPerPixel(format); in allocate()
/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/native/libs/ui/include_vndk/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/base/libs/input/
DSpriteIcon.cpp38 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in draw()
/frameworks/base/libs/hwui/tests/common/scenes/
DHwBitmapInCompositeShader.cpp44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp159 ssize_t bytesCount = buffer.stride * bytesPerPixel(buffer.format); in android_view_TextureView_lockCanvas()
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()
Dandroid_view_Surface.cpp264 ssize_t bpr = outBuffer.stride * bytesPerPixel(outBuffer.format); in nativeLockCanvas()
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp512 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/
DBitmapFactory.cpp110 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local
111 const int requestedSize = bytesPerPixel * in allocPixelRef()
DGraphicBuffer.cpp194 ssize_t bytesCount = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in android_graphics_GraphicBuffer_lockCanvas()
DBitmap.cpp1066 const size_t size = bm0.width() * bm0.bytesPerPixel(); in Bitmap_sameAs()
/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.cpp219bytesPerPixel(buffer->getPixelFormat()) * (buffer->getStride() > 0 ? buffer->getStride() : buffer-… in Bitmap()
/frameworks/native/libs/gui/
DSurface.cpp1768 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt11265 field public int bytesPerPixel;
/frameworks/base/non-updatable-api/
Dcurrent.txt14801 field public int bytesPerPixel;

12