/hardware/google/gfxstream/host/tests/ |
D | GLTestUtils.cpp | 36 testing::AssertionResult ImageMatches(int width, int height, int bpp, int rowLength, in ImageMatches() argument 43 size_t rowBytes = width * bpp; in ImageMatches() 45 i / rowLength, rowBytes, expected + i * bpp, actual + i * bpp); in ImageMatches() 70 int bpp = 3; in createTestPatternRGB888() local 72 TestTexture res(bpp * width * height); in createTestPatternRGB888() 76 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGB888() 77 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGB888() 78 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGB888() 86 int bpp = 4; in createTestPatternRGBA8888() local 88 TestTexture res(bpp * width * height); in createTestPatternRGBA8888() [all …]
|
D | TextureDraw_unittest.cpp | 34 const int bpp = 4; in TestTextureDrawBasic() local 35 const int bytes = width * height * bpp; in TestTextureDrawBasic() 51 pixels[i * width * bpp + j * bpp + 0] = (0xaa + i) % 0x100; in TestTextureDrawBasic() 52 pixels[i * width * bpp + j * bpp + 1] = (0x00 + j) % 0x100; in TestTextureDrawBasic() 53 pixels[i * width * bpp + j * bpp + 2] = (0x11 + i) % 0x100; in TestTextureDrawBasic() 55 pixels[i * width * bpp + j * bpp + 3] = 0xff; in TestTextureDrawBasic() 84 size_t rowBytes = width * bpp; in TestTextureDrawBasic() 85 EXPECT_TRUE(RowMatches(i, width * bpp, in TestTextureDrawBasic() 99 const int bpp = 4; in TestTextureDrawLayer() local 100 const int bytes = width * height * bpp; in TestTextureDrawLayer() [all …]
|
/hardware/google/gfxstream/guest/GLESv2_enc/ |
D | IOStream2.cpp | 18 int bpp = 0; in readbackPixels() local 25 &bpp, in readbackPixels() 39 } else if (pixelRowSize == totalRowSize && (pixelRowSize == width * bpp)) { in readbackPixels() 57 if (pixelRowSize > width * bpp) { in readbackPixels() 58 size_t rowSlack = pixelRowSize - width * bpp; in readbackPixels() 60 readback(start, width * bpp); in readbackPixels() 78 int bpp = 0; in uploadPixels() local 85 &bpp, in uploadPixels() 99 } else if (pixelRowSize == totalRowSize && (pixelRowSize == width * bpp)) { in uploadPixels() 117 if (pixelRowSize > width * bpp) { in uploadPixels() [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_utils.cpp | 103 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 106 bpp = 8; in GetBppForUncompressedRGB() 120 bpp = 4; in GetBppForUncompressedRGB() 123 bpp = 3; in GetBppForUncompressedRGB() 129 bpp = 2; in GetBppForUncompressedRGB() 136 return bpp; in GetBppForUncompressedRGB()
|
D | gr_adreno_info.cpp | 97 int bpp = 4; in AlignUnCompressedRGB() local 100 bpp = 3; in AlignUnCompressedRGB() 106 bpp = 2; in AlignUnCompressedRGB() 118 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 122 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
D | gr_adreno_info.h | 127 int (*LINK_adreno_compute_padding)(int width, int bpp, int surface_tile_height, 129 void (*LINK_adreno_compute_aligned_width_and_height)(int width, int height, int bpp, 135 int *aligned_w, int *aligned_h, int *bpp) = NULL;
|
D | gr_allocator.cpp | 231 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 232 size = alignedw * alignedh * bpp; in GetSize() 357 void Allocator::GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument 361 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() 367 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 674 void Allocator::GetRgbUBwcBlockSize(uint32_t bpp, int *block_width, int *block_height) { in GetRgbUBwcBlockSize() argument 678 switch (bpp) { in GetRgbUBwcBlockSize() 693 ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp); in GetRgbUBwcBlockSize() 698 unsigned int Allocator::GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument 703 GetRgbUBwcBlockSize(bpp, &block_width, &block_height); in GetRgbUBwcMetaBufferSize() [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_utils.cpp | 103 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 106 bpp = 8; in GetBppForUncompressedRGB() 120 bpp = 4; in GetBppForUncompressedRGB() 123 bpp = 3; in GetBppForUncompressedRGB() 129 bpp = 2; in GetBppForUncompressedRGB() 136 return bpp; in GetBppForUncompressedRGB()
|
D | gr_adreno_info.cpp | 98 int bpp = 4; in AlignUnCompressedRGB() local 101 bpp = 3; in AlignUnCompressedRGB() 107 bpp = 2; in AlignUnCompressedRGB() 119 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 123 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
D | gr_adreno_info.h | 127 int (*LINK_adreno_compute_padding)(int width, int bpp, int surface_tile_height, 129 void (*LINK_adreno_compute_aligned_width_and_height)(int width, int height, int bpp, 135 int *aligned_w, int *aligned_h, int *bpp) = NULL;
|
D | gr_allocator.cpp | 230 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 231 size = alignedw * alignedh * bpp; in GetSize() 356 void Allocator::GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument 360 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() 366 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 672 void Allocator::GetRgbUBwcBlockSize(uint32_t bpp, int *block_width, int *block_height) { in GetRgbUBwcBlockSize() argument 676 switch (bpp) { in GetRgbUBwcBlockSize() 691 ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp); in GetRgbUBwcBlockSize() 696 unsigned int Allocator::GetRgbUBwcMetaBufferSize(int width, int height, uint32_t bpp) { in GetRgbUBwcMetaBufferSize() argument 701 GetRgbUBwcBlockSize(bpp, &block_width, &block_height); in GetRgbUBwcMetaBufferSize() [all …]
|
/hardware/google/gchips/libexynosutils/ |
D | exynos_format_v4l2.c | 382 int V4L2_PIX_2_YUV_INFO(unsigned int v4l2_pixel_format, unsigned int * bpp, unsigned int * planes) in V4L2_PIX_2_YUV_INFO() argument 392 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 400 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 406 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 416 *bpp = 16; in V4L2_PIX_2_YUV_INFO() 430 unsigned int bpp, planes; in get_yuv_bpp() local 432 if (V4L2_PIX_2_YUV_INFO(v4l2_pixel_format, &bpp, &planes) < 0) in get_yuv_bpp() 433 bpp = -1; in get_yuv_bpp() 435 return bpp; in get_yuv_bpp() 440 unsigned int bpp, planes; in get_yuv_planes() local [all …]
|
/hardware/google/aemu/host-common/ |
D | MediaVpxVideoHelper.cpp | 96 int32_t bpp, in copyYV12FrameToOutputBuffer() argument 104 size_t dstYStride = outputBufferWidth * bpp; in copyYV12FrameToOutputBuffer() 110 memcpy(dst, srcY, imgWidth * bpp); in copyYV12FrameToOutputBuffer() 117 memcpy(dst, srcU, imgWidth / 2 * bpp); in copyYV12FrameToOutputBuffer() 124 memcpy(dst, srcV, imgWidth / 2 * bpp); in copyYV12FrameToOutputBuffer() 138 int32_t bpp = (mImg->fmt == VPX_IMG_FMT_I420) ? 1 : 2; in copyImgToGuest() local 140 byteBuffer.resize(mWidth * mHeight * bpp * 3 / 2); in copyImgToGuest() 144 (int)outputBufferHeight, (int)mWidth, (int)mHeight, (int)bpp); in copyImgToGuest() 154 mImg->d_w, mImg->d_h, bpp, dst, srcY, srcU, in copyImgToGuest()
|
/hardware/google/gchips/gralloc4/src/core/ |
D | format_info.cpp | 41 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 6, .bpp_afbc = { 16, 0, 0 }, .bpp = { 16, 0, 0 }, .h… 42 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 8, .bpp_afbc = { 24, 0, 0 }, .bpp = { 24, 0, 0 }, .h… 43 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 44 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 45 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 46 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 10, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 47 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 16, .bpp_afbc = { 64, 0, 0 }, .bpp = { 64, 0, 0 }, .h… 48 … .npln = 1, .ncmp = { 1, 0, 0 }, .bps = 8, .bpp_afbc = { 8, 0, 0 }, .bpp = { 8, 0, 0 }, .h… 49 … .npln = 1, .ncmp = { 1, 0, 0 }, .bps = 16, .bpp_afbc = { 16, 0, 0 }, .bpp = { 16, 0, 0 }, .h… 51 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 8, .bpp_afbc = { 12, 0, 0 }, .bpp = { 0, 0, 0 }, .h… [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_utils.cpp | 115 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 118 bpp = 8; in GetBppForUncompressedRGB() 132 bpp = 4; in GetBppForUncompressedRGB() 136 bpp = 3; in GetBppForUncompressedRGB() 142 bpp = 2; in GetBppForUncompressedRGB() 149 return bpp; in GetBppForUncompressedRGB() 191 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 192 size = alignedw * alignedh * bpp; in GetSize() 336 void GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument 340 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() [all …]
|
D | gr_adreno_info.cpp | 106 int bpp = 4; in AlignUnCompressedRGB() local 110 bpp = 3; in AlignUnCompressedRGB() 116 bpp = 2; in AlignUnCompressedRGB() 128 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 132 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
D | gr_adreno_info.h | 127 int (*LINK_adreno_compute_padding)(int width, int bpp, int surface_tile_height, 129 void (*LINK_adreno_compute_aligned_width_and_height)(int width, int height, int bpp, 135 int *aligned_w, int *aligned_h, int *bpp) = NULL;
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_utils.cpp | 115 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 118 bpp = 8; in GetBppForUncompressedRGB() 132 bpp = 4; in GetBppForUncompressedRGB() 136 bpp = 3; in GetBppForUncompressedRGB() 142 bpp = 2; in GetBppForUncompressedRGB() 149 return bpp; in GetBppForUncompressedRGB() 191 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 192 size = alignedw * alignedh * bpp; in GetSize() 336 void GetYuvSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, uint32_t bpp, in GetYuvSPPlaneInfo() argument 340 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() [all …]
|
D | gr_adreno_info.cpp | 106 int bpp = 4; in AlignUnCompressedRGB() local 110 bpp = 3; in AlignUnCompressedRGB() 116 bpp = 2; in AlignUnCompressedRGB() 128 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 132 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
D | gr_adreno_info.h | 127 int (*LINK_adreno_compute_padding)(int width, int bpp, int surface_tile_height, 129 void (*LINK_adreno_compute_aligned_width_and_height)(int width, int height, int bpp, 135 int *aligned_w, int *aligned_h, int *bpp) = NULL;
|
/hardware/qcom/media/msm8998/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 502 int32_t bpp = 0; in calcSize() local 506 bpp = 2; in calcSize() 507 … mAdrenoComputeAlignedWidthAndHeight(width, height, bpp, tile_mode, raster_mode, padding_threshold, in calcSize() 509 size = alignedw * alignedh * bpp; in calcSize() 513 bpp = 4; in calcSize() 514 … mAdrenoComputeAlignedWidthAndHeight(width, height, bpp, tile_mode, raster_mode, padding_threshold, in calcSize() 517 size = mSrcStride * alignedh * bpp; in calcSize() 519 size = alignedw * alignedh * bpp; in calcSize() 605 req->bpp = calcBytesPerPixel(mSrcFormat); in getBuffReq() 615 req->bpp = calcBytesPerPixel(mDstFormat); in getBuffReq() [all …]
|
/hardware/qcom/media/msm8996/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 499 int32_t bpp = 0; in calcSize() local 503 bpp = 2; in calcSize() 504 … mAdrenoComputeAlignedWidthAndHeight(width, height, bpp, tile_mode, raster_mode, padding_threshold, in calcSize() 506 size = alignedw * alignedh * bpp; in calcSize() 510 bpp = 4; in calcSize() 511 … mAdrenoComputeAlignedWidthAndHeight(width, height, bpp, tile_mode, raster_mode, padding_threshold, in calcSize() 514 size = mSrcStride * alignedh * bpp; in calcSize() 516 size = alignedw * alignedh * bpp; in calcSize() 602 req->bpp = calcBytesPerPixel(mSrcFormat); in getBuffReq() 612 req->bpp = calcBytesPerPixel(mDstFormat); in getBuffReq() [all …]
|
/hardware/qcom/sm8150/media/libc2dcolorconvert/ |
D | C2DColorConverter.cpp | 600 int32_t bpp = 0; local 604 bpp = 2; 611 size = alignedw * alignedh * bpp; 615 bpp = 4; 623 size = mSrcStride * alignedh * bpp; 625 size = alignedw * alignedh * bpp; 733 if (ret && req.bpp.denominator > 0) { 734 filled_length = (req.stride * req.sliceHeight * req.bpp.numerator); 735 filled_length /= req.bpp.denominator; 756 req->bpp = calcBytesPerPixel(mSrcFormat); [all …]
|
/hardware/google/gfxstream/guest/android/ |
D | GrallocMinigbm.cpp | 119 uint32_t bpp = 0; in createColorBuffer() local 124 bpp = 4; in createColorBuffer() 128 bpp = 4; in createColorBuffer() 133 bpp = 4; in createColorBuffer() 149 res_create.stride = bpp * width; in createColorBuffer() 150 res_create.size = align_up(bpp * width * height, kPageSize); in createColorBuffer()
|
/hardware/google/gfxstream/guest/mesa/src/util/u_gralloc/ |
D | u_gralloc_fallback.c | 83 int bpp; in get_format_bpp() local 87 bpp = 8; in get_format_bpp() 99 bpp = 4; in get_format_bpp() 102 bpp = 2; in get_format_bpp() 105 bpp = 0; in get_format_bpp() 109 return bpp; in get_format_bpp()
|