Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 61) sorted by relevance

123

/device/generic/vulkan-cereal/stream-servers/tests/
DGLTestUtils.cpp36 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 …]
DTextureDraw_unittest.cpp34 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()
54 pixels[i * width * bpp + j * bpp + 3] = (0xff + j) % 0x100; in TestTextureDrawBasic()
83 size_t rowBytes = width * bpp; in TestTextureDrawBasic()
84 EXPECT_TRUE(RowMatches(i, width * bpp, in TestTextureDrawBasic()
98 const int bpp = 4; in TestTextureDrawLayer() local
99 const int bytes = width * height * bpp; in TestTextureDrawLayer()
[all …]
/device/generic/goldfish-opengl/system/GLESv2_enc/
DIOStream2.cpp15 int bpp = 0; in readbackPixels() local
22 &bpp, in readbackPixels()
36 } else if (pixelRowSize == totalRowSize && (pixelRowSize == width * bpp)) { in readbackPixels()
56 if (pixelRowSize != width * bpp) { in readbackPixels()
57 size_t rowSlack = pixelRowSize - width * bpp; in readbackPixels()
59 readback(start, width * bpp); in readbackPixels()
81 int bpp = 0; in uploadPixels() local
88 &bpp, in uploadPixels()
102 } else if (pixelRowSize == totalRowSize && (pixelRowSize == width * bpp)) { in uploadPixels()
122 if (pixelRowSize != width * bpp) { in uploadPixels()
[all …]
/device/generic/goldfish-opengl/system/hals/
Dallocator3.cpp99 int bpp = 1; in allocateImpl() local
119 bpp = 4; in allocateImpl()
131 bpp = 3; in allocateImpl()
138 bpp = 2; in allocateImpl()
144 bpp = 8; in allocateImpl()
150 bpp = 4; in allocateImpl()
157 bpp = 2; in allocateImpl()
158 align = 16 * bpp; in allocateImpl()
208 bpp = 2; in allocateImpl()
224 const size_t yStride = (width * bpp + align1) & ~align1; in allocateImpl()
[all …]
/device/generic/vulkan-cereal/host-common/
DMediaVpxVideoHelper.cpp96 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()
/device/generic/opengl-transport/host/libs/virglrenderer/
DGralloc1.cpp75 uint32_t bpp; in gralloc1_lock() local
78 bpp = 1U; in gralloc1_lock()
81 bpp = 2U; in gralloc1_lock()
84 bpp = 4U; in gralloc1_lock()
87 uint32_t stride = ALIGN(res->args.width * bpp, 16U); in gralloc1_lock()
88 *outData = (char*)res->linear + rect->top * stride + rect->left * bpp; in gralloc1_lock()
DAVDVirglRenderer.cpp181 uint32_t bpp; in sync_linear_to_iovec() local
184 bpp = 1U; in sync_linear_to_iovec()
187 bpp = 2U; in sync_linear_to_iovec()
190 bpp = 4U; in sync_linear_to_iovec()
200 uint32_t stride = ALIGN(res->args.width * bpp, 16U); in sync_linear_to_iovec()
201 offset += box->y * stride + box->x * bpp; in sync_linear_to_iovec()
202 size_t length = (h - 1U) * stride + w * bpp; in sync_linear_to_iovec()
225 uint32_t bpp; in sync_iovec_to_linear() local
228 bpp = 1U; in sync_iovec_to_linear()
231 bpp = 2U; in sync_iovec_to_linear()
[all …]
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp485 int bpp = glUtilsPixelBitSize(cb->glFormat, cb->glType) >> 3; in updateHostColorBuffer() local
492 uint32_t rgbSz = width * height * bpp; in updateHostColorBuffer()
506 width, height, top, left, bpp); in updateHostColorBuffer()
661 int bpp = 0; in gralloc_alloc() local
667 bpp = 4; in gralloc_alloc()
675 bpp = 3; in gralloc_alloc()
681 bpp = 2; in gralloc_alloc()
690 bpp = 8; in gralloc_alloc()
695 bpp = 4; in gralloc_alloc()
706 bpp = 2; in gralloc_alloc()
[all …]
Dgralloc_30.cpp382 const int bpp = glUtilsPixelBitSize(handle.glFormat, handle.glType) >> 3; in unlock_impl() local
387 const uint32_t rgbSize = width * height * bpp; in unlock_impl()
412 width, height, top, left, bpp); in unlock_impl()
531 int bpp = 1; in gralloc_alloc() local
549 bpp = 4; in gralloc_alloc()
558 bpp = 3; in gralloc_alloc()
565 bpp = 2; in gralloc_alloc()
571 bpp = 8; in gralloc_alloc()
577 bpp = 4; in gralloc_alloc()
584 bpp = 2; in gralloc_alloc()
[all …]
/device/generic/vulkan-cereal/stream-servers/
Dvirtio-gpu-gfxstream-renderer.cpp323 uint32_t bpp = 4; in virgl_format_to_linear_base() local
326 bpp = 8; in virgl_format_to_linear_base()
333 bpp = 4; in virgl_format_to_linear_base()
338 bpp = 2; in virgl_format_to_linear_base()
341 bpp = 1; in virgl_format_to_linear_base()
347 uint32_t stride = totalWidth * bpp; in virgl_format_to_linear_base()
348 return y * stride + x * bpp; in virgl_format_to_linear_base()
358 uint32_t bpp = format == VIRGL_FORMAT_P010 ? 2 : 1; in virgl_format_to_total_xfer_len() local
362 uint32_t yStride = align_up_power_of_2(yWidth, yAlign) * bpp; in virgl_format_to_total_xfer_len()
381 uint32_t uvStride = align_up_power_of_2(uvWidth, uvAlign) * bpp; in virgl_format_to_total_xfer_len()
[all …]
/device/linaro/hikey/gralloc/
Dalloc_device.cpp487 int bpp = 1; in alloc_device_alloc() local
545 bpp = 4; in alloc_device_alloc()
549 bpp = 3; in alloc_device_alloc()
557 bpp = 2; in alloc_device_alloc()
576 size_t bpr = GRALLOC_ALIGN(w * bpp, 64); in alloc_device_alloc()
578 stride = bpr / bpp; in alloc_device_alloc()
639 hnd->byte_stride = GRALLOC_ALIGN(w*bpp,64); in alloc_device_alloc()
/device/generic/goldfish-opengl/system/codecs/omx/vpxdec/
DGoldfishVPX.cpp143 int32_t bpp = (outDef->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar16) ? 2 : 1; in setup_ctx_parameters() local
144 ctx->bpp = bpp; in setup_ctx_parameters()
191 int32_t bpp = 1; in outputBuffers() local
194 bpp = 2; in outputBuffers()
203 outHeader->nFilledLen = (outputBufferWidth() * outputBufferHeight() * bpp * 3) / 2; in outputBuffers()
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DGoldfishVideoDecoderOMXComponent.cpp159 int32_t bpp = (mOutputFormat == OMX_COLOR_FormatYUV420Planar16) ? 2 : 1; in updatePortDefinitions() local
160 outDef->format.video.nStride = outDef->format.video.nFrameWidth * bpp; in updatePortDefinitions()
319 int32_t bpp = (outDef->format.video.eColorFormat == OMX_COLOR_FormatYUV420Planar16) ? 2 : 1; in copyYV12FrameToOutputBuffer() local
321 size_t dstYStride = outputBufferWidth() * bpp; in copyYV12FrameToOutputBuffer()
327 memcpy(dst, srcY, mWidth * bpp); in copyYV12FrameToOutputBuffer()
334 memcpy(dst, srcU, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer()
341 memcpy(dst, srcV, mWidth / 2 * bpp); in copyYV12FrameToOutputBuffer()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.cpp348 int* bpp, in computePackingOffsets2D() argument
361 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets2D()
376 int* bpp, in computePackingOffsets3D() argument
397 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets3D()
DGLESTextureUtils.h59 int* bpp,
74 int* bpp,
/device/google/coral-kernel/sm8150/kernel-headers/media/
Dmsm_media_info.h1213 unsigned int alignment = 0, stride = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1224 bpp = 2; in VENUS_RGB_STRIDE()
1232 bpp = 8; in VENUS_RGB_STRIDE()
1238 stride = MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()
/device/google/sunfish-kernel/sm7150/original-kernel-headers/media/
Dmsm_media_info.h1213 unsigned int alignment = 0, stride = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1224 bpp = 2; in VENUS_RGB_STRIDE()
1232 bpp = 8; in VENUS_RGB_STRIDE()
1238 stride = MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()
/device/google/sunfish-kernel/sm7150/kernel-headers/media/
Dmsm_media_info.h1213 unsigned int alignment = 0, stride = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1224 bpp = 2; in VENUS_RGB_STRIDE()
1232 bpp = 8; in VENUS_RGB_STRIDE()
1238 stride = MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()
/device/google/coral-kernel/sm8150/original-kernel-headers/media/
Dmsm_media_info.h1213 unsigned int alignment = 0, stride = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1224 bpp = 2; in VENUS_RGB_STRIDE()
1232 bpp = 8; in VENUS_RGB_STRIDE()
1238 stride = MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp368 int bpp) { in copy_rgb_buffer_from_unlocked() argument
369 int dst_line_len = width * bpp; in copy_rgb_buffer_from_unlocked()
370 int src_line_len = unlockedWidth * bpp; in copy_rgb_buffer_from_unlocked()
371 const char *src = raw_data + top*src_line_len + left*bpp; in copy_rgb_buffer_from_unlocked()
DHostConnection.cpp201 uint32_t bpp = 0; in createColorBuffer() local
206 bpp = 4; in createColorBuffer()
210 bpp = 4; in createColorBuffer()
215 bpp = 4; in createColorBuffer()
231 res_create.stride = bpp * width; in createColorBuffer()
232 res_create.size = align_up(bpp * width * height, PAGE_SIZE); in createColorBuffer()
/device/generic/vulkan-cereal/stream-servers/vulkan/
DVkAndroidNativeBuffer.cpp821 uint32_t bpp = 4; /* format always rgba8...not */ in syncImageToColorBuffer() local
824 bpp = 2; in syncImageToColorBuffer()
827 bpp = 3; in syncImageToColorBuffer()
832 bpp = 4; in syncImageToColorBuffer()
840 bpp * anbInfo->extent.width * anbInfo->extent.height); in syncImageToColorBuffer()
/device/generic/vulkan-cereal/third-party/angle/scripts/
Dbmp_to_nv12.py36 bpp, = struct.unpack("H", bmp_file.read(2)) variable
40 if (bpp != 24 or compression != 0):
/device/generic/vulkan-cereal/fake-android-guest/androidImpl/
DGraphicBufferAllocator.cpp106 uint32_t bpp = bytesPerPixel(format); in allocate() local
114 rec.size = static_cast<size_t>(height * (*stride) * bpp); in allocate()
/device/google/redbull-kernel/sm7250/original-kernel-headers/media/
Dmsm_media_info.h1068 unsigned int alignment = 0, stride = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1079 bpp = 2; in VENUS_RGB_STRIDE()
1089 stride = MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()

123