Home
last modified time | relevance | path

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

12

/frameworks/base/graphics/java/android/graphics/
DPixelFormat.java106 public int bytesPerPixel; field in PixelFormat
115 info.bytesPerPixel = 4; in getPixelFormatInfo()
120 info.bytesPerPixel = 3; in getPixelFormatInfo()
127 info.bytesPerPixel = 2; in getPixelFormatInfo()
133 info.bytesPerPixel = 1; in getPixelFormatInfo()
138 info.bytesPerPixel = 1; in getPixelFormatInfo()
142 info.bytesPerPixel = 1; in getPixelFormatInfo()
146 info.bytesPerPixel = 8; in getPixelFormatInfo()
150 info.bytesPerPixel = 1; in getPixelFormatInfo()
/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/base/media/jni/
Dandroid_media_Utils.cpp170 int bytesPerPixel = 0; in getLockedImageInfo() local
357 bytesPerPixel = 2; in getLockedImageInfo()
362 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
363 pStride = bytesPerPixel; in getLockedImageInfo()
386 bytesPerPixel = 2; in getLockedImageInfo()
389 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
390 pStride = bytesPerPixel; in getLockedImageInfo()
436 bytesPerPixel = 4; in getLockedImageInfo()
439 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
440 pStride = bytesPerPixel; in getLockedImageInfo()
[all …]
/frameworks/av/media/ndk/
DNdkImage.cpp455 int bytesPerPixel = 0; in getPlaneData() local
531 bytesPerPixel = mLockedBuffer->chromaStep; in getPlaneData()
534 bytesPerPixel * (mLockedBuffer->width / 2); in getPlaneData()
555 bytesPerPixel = 2; in getPlaneData()
559 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
574 bytesPerPixel = 2; in getPlaneData()
577 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
628 bytesPerPixel = 4; in getPlaneData()
631 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
635 bytesPerPixel = 2; 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/nativewindow/
DAHardwareBuffer.cpp228 int32_t bytesPerPixel; in AHardwareBuffer_lockAndGetInfo() local
230 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo()
234 if (bytesPerPixel == -1 || bytesPerStride == -1) { in AHardwareBuffer_lockAndGetInfo()
239 if (outBytesPerPixel) *outBytesPerPixel = bytesPerPixel; in AHardwareBuffer_lockAndGetInfo()
246 int32_t bytesPerPixel; in AHardwareBuffer_lock() local
273 …return gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &bytesPe… in AHardwareBuffer_lock()
322 int32_t bytesPerPixel; in AHardwareBuffer_lockPlanes() local
325 &bytesPerPixel, &bytesPerStride); in AHardwareBuffer_lockPlanes()
327 outPlanes->planes[0].pixelStride = bytesPerPixel; in AHardwareBuffer_lockPlanes()
/frameworks/native/libs/ui/
DPixelFormat.cpp23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
DGraphicBufferAllocator.cpp125 const uint32_t bpp = bytesPerPixel(request.format); in allocate()
200 const uint32_t bpp = bytesPerPixel(format); in allocateHelper()
DGraphicBuffer.cpp378 legacyBpp = bytesPerPixel(format); in lockAsync()
403 *outBytesPerPixel = legacyBpp != -1 ? legacyBpp : value.bytesPerPixel; in lockAsync()
/frameworks/native/libs/ui/include/ui/
DPixelFormat.h73 uint32_t bytesPerPixel(PixelFormat format);
DGraphicBufferMapper.h83 int32_t bytesPerPixel = -1; member
/frameworks/native/include/ui/
DPixelFormat.h73 uint32_t bytesPerPixel(PixelFormat format);
/frameworks/native/libs/ui/include_vndk/ui/
DPixelFormat.h73 uint32_t bytesPerPixel(PixelFormat format);
DGraphicBufferMapper.h83 int32_t bytesPerPixel = -1; member
/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/rs/toolkit/
DJniEntryPoints.cpp112 int bytesPerPixel; member in BitmapGuard
128 bytesPerPixel = info.stride / info.width;
129 if (bytesPerPixel != 1 && bytesPerPixel != 4) {
132 bytesPerPixel);
152 int vectorSize() const { return bytesPerPixel; } in vectorSize()
/frameworks/base/libs/hwui/tests/common/scenes/
DHwBitmapInCompositeShader.cpp46 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
/frameworks/base/cmds/screencap/
Dscreencap.cpp210 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in saveImage()
238 size_t Bpp = bytesPerPixel(f); in saveImage()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp46 size_t rowBytes = buffer->stride * imageInfo.bytesPerPixel(); in convert()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaCpuPipeline.cpp121 size_t widthBytes = width * imageInfo.bytesPerPixel(); in setSurface()
/frameworks/native/services/surfaceflinger/
DHdrSdrRatioOverlay.cpp92 const size_t dstRowBytes = buffer->getStride() * static_cast<size_t>(imageInfo.bytesPerPixel()); in draw()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp84 size *= std::max(1u, bytesPerPixel(buffer->format)); in AHardwareBuffer_getAllocationSize()
206 const size_t rowBytes = info.bytesPerPixel() * bufferStride; in createFrom()
/frameworks/base/core/jni/
Dandroid_hardware_HardwareBuffer.cpp172 uint32_t bpp = bytesPerPixel(buffer->getPixelFormat()); in android_hardware_HardwareBuffer_estimateSize()
Dandroid_hardware_camera2_DngCreator.cpp2499 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteImage() local
2502 thumbWidth, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteImage()
2503 bytesPerPixel * thumbWidth, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteImage()
2618 uint32_t bytesPerPixel = SAMPLES_PER_RGB_PIXEL * BYTES_PER_RGB_SAMPLE; in DngCreator_nativeWriteInputStream() local
2621 width, context->getThumbnailHeight(), bytesPerPixel, in DngCreator_nativeWriteInputStream()
2622 bytesPerPixel * width, /*offset*/0, BYTES_PER_RGB_SAMPLE, in DngCreator_nativeWriteInputStream()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp112 const int bytesPerPixel = SkColorTypeBytesPerPixel(bitmap->colorType()); in allocPixelRef() local
113 const int requestedSize = bytesPerPixel * in allocPixelRef()

12