Home
last modified time | relevance | path

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

/hardware/google/gfxstream/host/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()
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 …]
DGLTestUtils.h31 testing::AssertionResult ImageMatches(int width, int height, int bpp, int rowLength,
/hardware/google/gfxstream/guest/GLESv2_enc/
DIOStream2.cpp18 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/google/gfxstream/host/
DVirtioGpuFormatUtils.h226 uint32_t bpp = 4; in virgl_format_to_linear_base() local
230 bpp = 8; in virgl_format_to_linear_base()
240 bpp = 4; in virgl_format_to_linear_base()
243 bpp = 3; in virgl_format_to_linear_base()
249 bpp = 2; in virgl_format_to_linear_base()
252 bpp = 1; in virgl_format_to_linear_base()
259 uint32_t stride = totalWidth * bpp; in virgl_format_to_linear_base()
260 return y * stride + x * bpp; in virgl_format_to_linear_base()
273 uint32_t bpp = format == VIRGL_FORMAT_P010 ? 2 : 1; in virgl_format_to_total_xfer_len() local
288 uint32_t yStrideBytes = yStridePixels * bpp; in virgl_format_to_total_xfer_len()
[all …]
DVirtioGpuResource.cpp73 int bpp; member
465 outInfo->stride = AlignUp(mCreateArgs->width * formatInfo->bpp, 16U); in GetInfo()
/hardware/google/aemu/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()
DVpxPingInfoParser.cpp84 param.bpp = *(size_t*)(xptr + 5 * 8); in parseGetImageParams()
DMediaVpxDecoderGeneric.cpp267 (int)param.bpp); in getImage()
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DGLESTextureUtils.h59 int* bpp,
74 int* bpp,
DGLESTextureUtils.cpp344 int* bpp, in computePackingOffsets2D() argument
357 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets2D()
372 int* bpp, in computePackingOffsets3D() argument
393 if (bpp) *bpp = computePixelSize(format, type); in computePackingOffsets3D()
DGLClientState.cpp1225 …gOffsets2D(GLsizei width, GLsizei height, GLenum format, GLenum type, int* bpp, int* startOffset, … in getPackingOffsets2D() argument
1241 bpp, in getPackingOffsets2D()
1249 …gOffsets2D(GLsizei width, GLsizei height, GLenum format, GLenum type, int* bpp, int* startOffset, … in getUnpackingOffsets2D() argument
1265 bpp, in getUnpackingOffsets2D()
1273 …zei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, int* bpp, int* startOffset, … in getUnpackingOffsets3D() argument
1291 bpp, in getUnpackingOffsets3D()
/hardware/google/gfxstream/host/vulkan/
DVkFormatUtils.cpp106 #define ADD_SINGLE_PLANE_FORMAT_INFO(format, bpp) \ in getFormatPlaneLayoutsMap() argument
114 .sampleIncrementBytes = bpp, \ in getFormatPlaneLayoutsMap()
DVkAndroidNativeBuffer.cpp887 uint32_t bpp = 4; /* format always rgba8...not */ in on_vkQueueSignalReleaseImageANDROID() local
890 bpp = 2; in on_vkQueueSignalReleaseImageANDROID()
893 bpp = 3; in on_vkQueueSignalReleaseImageANDROID()
898 bpp = 4; in on_vkQueueSignalReleaseImageANDROID()
902 const size_t bytesSize = bpp * mExtent.width * mExtent.height; in on_vkQueueSignalReleaseImageANDROID()
/hardware/google/aemu/host-common/include/host-common/
DMediaVpxVideoHelper.h77 int32_t bpp,
DVpxPingInfoParser.h59 size_t bpp; member
/hardware/google/gfxstream/guest/OpenglSystemCommon/
DFormatConversions.h47 int bpp);
DFormatConversions.cpp364 int bpp) { in copy_rgb_buffer_from_unlocked() argument
365 int dst_line_len = width * bpp; in copy_rgb_buffer_from_unlocked()
366 int src_line_len = unlockedWidth * bpp; in copy_rgb_buffer_from_unlocked()
367 const char *src = raw_data + top*src_line_len + left*bpp; in copy_rgb_buffer_from_unlocked()
/hardware/google/gfxstream/common/detector/
DImage.cpp60 uint32_t bpp = ReadUint16AtByte(28); in LoadRGBAFromBitmapFile() local
61 if (bpp != 32) { in LoadRGBAFromBitmapFile()
/hardware/google/gfxstream/third-party/stb/include/stb/
Dstb_image.h5353 int bpp, offset, hsz; member
5365 if (info->bpp == 16) { in stbi__bmp_set_mask_defaults()
5369 } else if (info->bpp == 32) { in stbi__bmp_set_mask_defaults()
5407 info->bpp = stbi__get16le(s); in stbi__bmp_parse_header()
5412 …if (compress == 3 && info->bpp != 16 && info->bpp != 32) return stbi__errpuc("bad BMP", "bad BMP")… in stbi__bmp_parse_header()
5425 if (info->bpp == 16 || info->bpp == 32) { in stbi__bmp_parse_header()
5494 if (info.bpp < 24) in stbi__bmp_load()
5497 if (info.bpp < 16) in stbi__bmp_load()
5506 if (info.bpp == 24 && ma == 0xff000000) in stbi__bmp_load()
5521 if (info.bpp < 16) { in stbi__bmp_load()
[all …]
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dstb_image.h5346 int bpp, offset, hsz; member
5358 if (info->bpp == 16) { in stbi__bmp_set_mask_defaults()
5362 } else if (info->bpp == 32) { in stbi__bmp_set_mask_defaults()
5400 info->bpp = stbi__get16le(s); in stbi__bmp_parse_header()
5405 …if (compress == 3 && info->bpp != 16 && info->bpp != 32) return stbi__errpuc("bad BMP", "bad BMP")… in stbi__bmp_parse_header()
5418 if (info->bpp == 16 || info->bpp == 32) { in stbi__bmp_parse_header()
5487 if (info.bpp < 24) in stbi__bmp_load()
5490 if (info.bpp < 16) in stbi__bmp_load()
5499 if (info.bpp == 24 && ma == 0xff000000) in stbi__bmp_load()
5514 if (info.bpp < 16) { in stbi__bmp_load()
[all …]
/hardware/google/gfxstream/guest/OpenglCodecCommon/include/gfxstream/guest/
DGLClientState.h329 …void getPackingOffsets2D(GLsizei width, GLsizei height, GLenum format, GLenum type, int* bpp, int*…
330 …void getUnpackingOffsets2D(GLsizei width, GLsizei height, GLenum format, GLenum type, int* bpp, in…
331 …zei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, int* bpp, int* startOffset, …
/hardware/google/gfxstream/host/gl/
DColorBufferGl.cpp585 int bpp = 4; in reformat() local
587 if (!sGetFormatParameters(&internalformat, &texFormat, &pixelType, &bpp, in reformat()
640 m_numBytes = bpp * m_width * m_height; in reformat()