Home
last modified time | relevance | path

Searched refs:bytesPerPixel (Results 1 – 25 of 25) 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.cpp135 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/
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/native/libs/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
DGraphicBufferAllocator.cpp122 const uint32_t bpp = bytesPerPixel(format); in allocateHelper()
/frameworks/native/libs/ui/include_vndk/ui/
DPixelFormat.h69 uint32_t bytesPerPixel(PixelFormat format);
/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/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/cmds/screencap/
Dscreencap.cpp219 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in main()
247 size_t Bpp = bytesPerPixel(f); in main()
/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.cpp102 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local
103 const int requestedSize = bytesPerPixel * in allocPixelRef()
DBitmap.cpp1130 const size_t size = bm0.width() * bm0.bytesPerPixel(); in Bitmap_sameAs()
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp172 uint32_t bpp = bytesPerPixel(buffer->getPixelFormat()); in android_hardware_HardwareBuffer_estimateSize()
Dandroid_hardware_camera2_DngCreator.cpp2556 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/
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.cpp162 const size_t rowBytes = info.bytesPerPixel() * bufferStride; in createFrom()
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp1406 const float SURFACE_SIZE_MULTIPLIER = 3.5f * bytesPerPixel(mDefaultPixelFormat); in onPrimaryDisplaySizeChanged()
/frameworks/native/libs/gui/
DSurface.cpp2359 const size_t bpp = bytesPerPixel(src->format); in copyBlt()
/frameworks/base/core/api/
Dcurrent.txt15900 field public int bytesPerPixel;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt11265 field public int bytesPerPixel;