/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A 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()
|
/aosp12/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 135 int bytesPerPixel = 0; in getLockedImageInfo() local 301 bytesPerPixel = 2; in getLockedImageInfo() 307 pStride = bytesPerPixel; in getLockedImageInfo() 330 bytesPerPixel = 2; in getLockedImageInfo() 334 pStride = bytesPerPixel; in getLockedImageInfo() 380 bytesPerPixel = 4; in getLockedImageInfo() 384 pStride = bytesPerPixel; in getLockedImageInfo() 389 bytesPerPixel = 2; in getLockedImageInfo() 393 pStride = bytesPerPixel; in getLockedImageInfo() 398 bytesPerPixel = 3; in getLockedImageInfo() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A 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 373 pad + width * height * bytesPerPixel / bytesPerElement); in testCopyWithDirectIntBuffer() 391 final int bytesPerPixel = 2; in testCopyWithHeapByteBuffer() local 428 final int bytesPerPixel = 2; in testCopyWithHeapShortBuffer() local [all …]
|
/aosp12/hardware/libhardware/modules/gralloc/ |
H A D | gralloc.cpp | 210 int bytesPerPixel = 0; in gralloc_alloc() local 213 bytesPerPixel = 8; in gralloc_alloc() 218 bytesPerPixel = 4; in gralloc_alloc() 221 bytesPerPixel = 3; in gralloc_alloc() 225 bytesPerPixel = 2; in gralloc_alloc() 235 size_t size = align(height, tileHeight) * stride * bytesPerPixel + 4; in gralloc_alloc()
|
/aosp12/frameworks/av/media/ndk/ |
H A 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 …]
|
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/vts/ |
H A D | ReadbackVts.cpp | 113 int32_t bytesPerPixel = GetBytesPerPixel(pixelFormat); in fillBuffer() local 114 ASSERT_NE(-1, bytesPerPixel); in fillBuffer() 120 int offset = (row * stride + col) * bytesPerPixel; in fillBuffer() 126 if (bytesPerPixel == 4) { in fillBuffer() 173 const int32_t bytesPerPixel = ReadbackHelper::GetBytesPerPixel(pixelFormat); in compareColorBuffers() local 174 ASSERT_NE(-1, bytesPerPixel); in compareColorBuffers() 178 int offset = (row * stride + col) * bytesPerPixel; in compareColorBuffers()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/stream_manager/ |
H A D | PixelStreamManager.cpp | 109 int bytesPerPixel = numBytesPerPixel(static_cast<AHardwareBuffer_Format>(mDesc.format)); in setFrameData() local 112 if (mDesc.stride * bytesPerPixel == frameInfo.stride) { in setFrameData() 113 memcpy(mappedBuffer, inputFrame.getFramePtr(), mDesc.stride * mDesc.height * bytesPerPixel); in setFrameData() 116 memcpy((uint8_t*)mappedBuffer + mDesc.stride * y * bytesPerPixel, in setFrameData() 118 std::min(frameInfo.stride, mDesc.stride * bytesPerPixel)); in setFrameData()
|
/aosp12/hardware/interfaces/graphics/mapper/3.0/vts/functional/ |
H A D | VtsHalGraphicsMapperV3_0TargetTest.cpp | 285 int32_t bytesPerPixel = -1; in TEST_P() local 289 &bytesPerPixel, &bytesPerStride))); in TEST_P() 292 EXPECT_GT(bytesPerPixel, -1); in TEST_P() 306 bytesPerPixel = -1; in TEST_P() 312 &bytesPerPixel, &bytesPerStride))); in TEST_P() 320 EXPECT_GT(bytesPerPixel, -1); in TEST_P()
|
/aosp12/frameworks/native/libs/ui/tests/ |
H A D | GraphicBuffer_test.cpp | 46 bytesPerPixel(format) >= in TEST_F() 56 const size_t targetArea = std::numeric_limits<size_t>::max() / bytesPerPixel(format); in TEST_F()
|
/aosp12/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_adreno_info.cpp | 137 int bytesPerPixel = 0; in AlignCompressedRGB() local 144 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_adreno_info.cpp | 136 int bytesPerPixel = 0; in AlignCompressedRGB() local 143 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
H A D | gr_adreno_info.cpp | 146 int bytesPerPixel = 0; in AlignCompressedRGB() local 153 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/hardware/qcom/display/msm8909/gralloc/ |
H A D | gr_adreno_info.cpp | 146 int bytesPerPixel = 0; in AlignCompressedRGB() local 153 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/frameworks/native/libs/nativewindow/ |
H A 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()
|
/aosp12/frameworks/native/libs/gui/tests/ |
H A 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()
|
/aosp12/hardware/qcom/sdm845/display/gralloc/ |
H A D | gr_adreno_info.cpp | 157 int bytesPerPixel = 0; in AlignCompressedRGB() local 164 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 219 info.stride = buffer->getStride() * bytesPerPixel(buffer->getPixelFormat()); in main() 247 size_t Bpp = bytesPerPixel(f); in main()
|
/aosp12/frameworks/native/libs/ui/ |
H A D | PixelFormat.cpp | 23 uint32_t bytesPerPixel(PixelFormat format) { in bytesPerPixel() function
|
/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/aosp12/frameworks/native/include/ui/ |
H A D | PixelFormat.h | 69 uint32_t bytesPerPixel(PixelFormat format);
|
/aosp12/hardware/qcom/sm8150/display/gralloc/ |
H A D | gr_adreno_info.cpp | 152 int bytesPerPixel = 0; in AlignCompressedRGB() local 159 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/hardware/qcom/sm7250/display/gralloc/ |
H A D | gr_adreno_info.cpp | 153 int bytesPerPixel = 0; in AlignCompressedRGB() local 159 reinterpret_cast<int *>(aligned_w), reinterpret_cast<int *>(aligned_h), &bytesPerPixel); in AlignCompressedRGB()
|
/aosp12/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/ |
H A D | PixelStreamManagerTest.cpp | 81 int bytesPerPixel = numBytesPerPixel(expectedFormat); variable 83 uint8_t* mappedRow = (uint8_t*)mappedBuffer + y * desc.stride * bytesPerPixel; 85 std::min(info.stride, desc.stride * bytesPerPixel))) {
|
/aosp12/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | HwBitmapInCompositeShader.cpp | 44 bytesPerPixel(buffer->getPixelFormat()) * buffer->getStride() * buffer->getHeight(); in createContent()
|