Home
last modified time | relevance | path

Searched refs:pixels (Results 1 – 25 of 182) sorted by relevance

12345678

/hardware/google/gfxstream/host/gl/gl-host-common/opengl/
DGpuFrameBridge.cpp46 void* pixels; member
49 Frame(int w, int h, const void* pixels) in Frame()
50 : width(w), height(h), pixels(NULL), isValid(true) { in Frame()
51 this->pixels = ::malloc(w * 4 * h); in Frame()
54 ~Frame() { ::free(pixels); } in ~Frame()
123 const void* pixels) override { in postRecordFrame() argument
124 postFrame(width, height, pixels, true); in postRecordFrame()
129 const void* pixels) override { in postRecordFrameAsync() argument
130 postFrame(width, height, pixels, false); in postRecordFrameAsync()
136 memcpy(mRecFrame->pixels, mRecTmpFrame->pixels, in getRecordFrame()
[all …]
/hardware/google/gfxstream/host/tests/
DTextureDraw_unittest.cpp47 std::vector<unsigned char> pixels(bytes); in TestTextureDrawBasic() local
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()
61 format, type, pixels.data()); in TestTextureDrawBasic()
86 pixels.data() + i * rowBytes, in TestTextureDrawBasic()
112 std::vector<unsigned char> pixels(bytes); in TestTextureDrawLayer() local
116 pixels[i * width * bpp + j * bpp + 0] = 0xff; in TestTextureDrawLayer()
117 pixels[i * width * bpp + j * bpp + 1] = 0x0; in TestTextureDrawLayer()
[all …]
/hardware/google/gfxstream/codegen/renderControl/
DrenderControl.attrib38 dir pixels out
39 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
42 dir pixels out
43 len pixels pixels_size
46 dir pixels in
47 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
48 var_flag pixels isLarge
51 dir pixels in
52 len pixels pixels_size
53 var_flag pixels DMA
[all …]
/hardware/google/gfxstream/guest/GLESv2_enc/
DIOStream2.cpp14 …ixels(void* context, int width, int height, unsigned int format, unsigned int type, void* pixels) { in readbackPixels() argument
38 readback(pixels, pixelDataSize); in readbackPixels()
43 readback((char*)pixels + startOffset, pixelDataSize - startOffset); in readbackPixels()
54 char* start = (char*)pixels + startOffset; in readbackPixels()
73 …xt, int width, int height, int depth, unsigned int format, unsigned int type, const void* pixels) { in uploadPixels() argument
98 writeFully(pixels, pixelDataSize); in uploadPixels()
103 writeFully((char*)pixels + startOffset, pixelDataSize - startOffset); in uploadPixels()
114 char* start = (char*)pixels + startOffset; in uploadPixels()
160 writeFully(pixels, pixelDataSize); in uploadPixels()
167 writeFully((char*)pixels + startOffset, pixelDataSize - startOffset); in uploadPixels()
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/GLcommon/
Drgtc.cpp107 uint8_t pixels[kBlockSize * kBlockSize * 2]; in rgtc_decode_image() local
120 rgtc_decode_subblock<uint8_t>((const uint32_t*)data_in, pixels, 1, 0, 1); in rgtc_decode_image()
123 rgtc_decode_subblock<int8_t>((const uint32_t*)data_in, (int8_t*)pixels, 1, -1, 1); in rgtc_decode_image()
126 rgtc_decode_subblock<uint8_t>((const uint32_t*)data_in, pixels, 2, 0, 1); in rgtc_decode_image()
127 rgtc_decode_subblock<uint8_t>((const uint32_t*)data_in + 2, pixels + 1, 2, 0, 1); in rgtc_decode_image()
130 rgtc_decode_subblock<int8_t>((const uint32_t*)data_in, (int8_t*)pixels, 2, -1, 1); in rgtc_decode_image()
131 rgtc_decode_subblock<int8_t>((const uint32_t*)data_in + 2, (int8_t*)(pixels + 1), in rgtc_decode_image()
137 std::memcpy(data_out, pixels + kBlockSize * texel_size * cy, texel_size * xEnd); in rgtc_decode_image()
/hardware/google/gfxstream/guest/renderControl_enc/
DrenderControl.attrib35 dir pixels out
36 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
39 dir pixels in
40 len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height)
41 var_flag pixels isLarge
DrenderControl_entry.cpp31 …olorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels);
32 …olorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels);
42 …x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels, uint32_t pixels_s…
54 …uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, void* pixels, uint32_t pixels_s…
72 …x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels, uint32_t pixels_s…
224 …colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) in rcReadColorBuffer() argument
227 ctx->rcReadColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); in rcReadColorBuffer()
230 …colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels) in rcUpdateColorBuffer() argument
233 return ctx->rcUpdateColorBuffer(ctx, colorbuffer, x, y, width, height, format, type, pixels); in rcUpdateColorBuffer()
290 …x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels, uint32_t pixels_s… in rcUpdateColorBufferDMA() argument
[all …]
/hardware/google/gfxstream/common/detector/
DImage.cpp73 out.pixels.reserve(w * h * 4); in LoadRGBAFromBitmapFile()
105 out.pixels.push_back(r); in LoadRGBAFromBitmapFile()
106 out.pixels.push_back(g); in LoadRGBAFromBitmapFile()
107 out.pixels.push_back(b); in LoadRGBAFromBitmapFile()
108 out.pixels.push_back(a); in LoadRGBAFromBitmapFile()
211 out.pixels.reserve(width * height * 4); in FillWithColor()
214 out.pixels.push_back(red); in FillWithColor()
215 out.pixels.push_back(green); in FillWithColor()
216 out.pixels.push_back(blue); in FillWithColor()
217 out.pixels.push_back(alpha); in FillWithColor()
[all …]
/hardware/interfaces/automotive/evs/1.0/default/
DEvsDisplay.cpp258 uint32_t* pixels = nullptr; in returnTargetBufferForDisplay() local
263 (void **)&pixels); in returnTargetBufferForDisplay()
266 if (!pixels) { in returnTargetBufferForDisplay()
288 uint32_t receivedPixel = pixels[col]; in returnTargetBufferForDisplay()
301 pixels = pixels + mBuffer.stride; in returnTargetBufferForDisplay()
306 uint32_t signature = pixels[0] & 0xFF; in returnTargetBufferForDisplay()
DEvsCamera.cpp479 uint32_t *pixels = nullptr; in fillTestFrame() local
484 (void **) &pixels); in fillTestFrame()
487 if (!pixels) { in fillTestFrame()
508 pixels[col] = expectedPixel; in fillTestFrame()
512 pixels = pixels + buff.stride; in fillTestFrame()
/hardware/google/gfxstream/host/gl/
DColorBufferGl.h119 void* pixels);
124 Rect rect, void* pixels);
131 void* pixels,
142 const void* pixels, void* metadata = nullptr);
145 const void* pixels, void* metadata = nullptr);
149 bool replaceContents(const void* pixels, size_t numBytes);
153 bool readContents(size_t* numBytes, void* pixels);
DYUVConverter.cpp471 YUVPlane plane, void* pixels, uint32_t pixelsStride) { in readYUVTex() argument
472 YUV_DEBUG_LOG("format%d plane:%d pixels:%p", format, plane, pixels); in readYUVTex()
487 s_gles2.glGetTexImage(GL_TEXTURE_2D, 0, pixelFormat, pixelType, pixels); in readYUVTex()
510 const void* pixels) { in subUpdateYUVGLTex() argument
521 s_gles2.glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, pixelFormat, pixelType, pixels); in subUpdateYUVGLTex()
937 void YUVConverter::readPixels(uint8_t* pixels, uint32_t pixels_size) { in readPixels() argument
938 …YUV_DEBUG_LOG("w:%d h:%d format:%d pixels:%p pixels-size:%d", mWidth, mHeight, mFormat, pixels, pi… in readPixels()
949 …readYUVTex(mTextureV, mFormat, mYuv420888ToNv21, YUVPlane::UV, pixels + std::min(uOffsetBytes, vOf… in readPixels()
952 …readYUVTex(mTextureU, mFormat, mYuv420888ToNv21, YUVPlane::U, pixels + uOffsetBytes, uStridePixels… in readPixels()
953 …readYUVTex(mTextureV, mFormat, mYuv420888ToNv21, YUVPlane::V, pixels + vOffsetBytes, vStridePixels… in readPixels()
[all …]
DYUVConverter.h69 void drawConvert(int x, int y, int width, int height, const char* pixels);
71 const char* pixels, void* metadata = nullptr);
76 void readPixels(uint8_t* pixels, uint32_t pixels_size);
DColorBufferGl.cpp390 void* pixels) { in readPixels() argument
412 convertRgbaToRgbPixels(pixels, tmpPixels, width, height); in readPixels()
414 s_gles2.glReadPixels(x, y, width, height, p_format, p_type, pixels); in readPixels()
425 int rotation, Rect rect, void* pixels) { in readPixelsScaled() argument
457 void* readPixelsDst = pixels; in readPixelsScaled()
474 uint8_t* dst = static_cast<uint8_t*>(pixels); in readPixelsScaled()
491 bool ColorBufferGl::readPixelsYUVCached(int x, int y, int width, int height, void* pixels, in readPixelsYUVCached() argument
503 memset(pixels, 0x00, pixels_size); in readPixelsYUVCached()
507 m_yuv_converter->readPixels((uint8_t*)pixels, pixels_size); in readPixelsYUVCached()
585 const void* pixels, void* metadata) { in subUpdate() argument
[all …]
/hardware/interfaces/automotive/evs/1.1/default/
DEvsDisplay.cpp301 uint32_t* pixels = nullptr; in returnTargetBufferForDisplayImpl()
304 android::Rect(mBuffer.width, mBuffer.height), (void**)&pixels); in returnTargetBufferForDisplayImpl()
307 if (!pixels) { in returnTargetBufferForDisplayImpl()
329 uint32_t receivedPixel = pixels[col]; in returnTargetBufferForDisplayImpl()
342 pixels = pixels + mBuffer.stride; in returnTargetBufferForDisplayImpl()
347 uint32_t signature = pixels[0] & 0xFF; in returnTargetBufferForDisplayImpl()
/hardware/google/gfxstream/host/gl/gl-host-common/include/host-common/opengl/
DGpuFrameBridge.h42 virtual void postRecordFrame(int width, int height, const void* pixels) = 0;
48 const void* pixels) = 0;
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenccli_error_metrics.cpp292 double pixels = static_cast<double>(dim_x * dim_y * dim_z); in compute_error_metrics() local
306 samples += pixels; in compute_error_metrics()
315 samples += pixels; in compute_error_metrics()
324 samples += pixels; in compute_error_metrics()
331 samples += pixels; in compute_error_metrics()
336 double mpsnr_denom = pixels * 3.0 * stopcount * 255.0 * 255.0; in compute_error_metrics()
375 rgb_psnr = 10.0 * log10(pixels * 3.0 / rgb_num); in compute_error_metrics()
402 double logrmse = sqrt(log_num / pixels); in compute_error_metrics()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/appendices/
DVK_NV_shading_rate_image.adoc35 shader invocation for a 4x4 block of pixels.
41 the framebuffer, covering 16x16 pixels in the initial implementation of this
56 pixels processed by the fragment shader.
72 multiple pixels, we will generate a combined coverage mask that combines
73 the coverage masks of all pixels covered by the fragment.
83 some pixels in a coarse fragment.
120 intersection of the primitive and the *set* of pixels corresponding to the
125 default, regardless of the set of pixels/samples covered by the fragment.
126 For fragments with a size of 4x4 pixels, this center location will be more
127 than two pixels (1.5 * sqrt(2)) away from the center of the pixels at the
[all …]
/hardware/google/gfxstream/include/render-utils/
Dvirtio_gpu_ops.h78 uint32_t format, uint32_t type, void* pixels);
82 uint32_t format, uint32_t type, void* pixels);
85 void* pixels, uint32_t pixels_size);
108 void* pixels,
/hardware/google/gfxstream/common/image/
DImageUtils.cpp53 bool SaveRGBAToPng(uint32_t width, uint32_t height, const uint32_t* pixels, in SaveRGBAToPng() argument
56 /*channels=*/4, pixels, width * 4) == 0) { in SaveRGBAToPng()
/hardware/google/gfxstream/include/OpenGLESDispatch/
Dgles_common_functions.h54 …et, GLint level, GLenum format, GLenum type, GLvoid * pixels), (target, level, format, type, pixel…
66 …sizei height, GLenum format, GLenum type, GLvoid * pixels), (x, y, width, height, format, type, pi…
73 …rmat, GLenum type, const GLvoid * pixels), (target, level, internalformat, width, height, border, …
76 … format, GLenum type, const GLvoid * pixels), (target, level, xoffset, yoffset, width, height, for…
/hardware/google/gfxstream/host/gl/OpenGLESDispatch/
Dgles_common_dispatch_logging_wrappers.impl219 …e_dispatchLoggingWrapper(GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels) {
220 …mage(target:0x%X, level:%d, format:0x%X, type:0x%X, pixels:%p)", target, level, format, type, pixe…
221 GLDispatch::glGetTexImage_underlying(target, level, format, type, pixels);
279 …per(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels) {
280 …%d, width:%d, height:%d, format:0x%X, type:0x%X, pixels:%p)", x, y, width, height, format, type, p…
281 GLDispatch::glReadPixels_underlying(x, y, width, height, format, type, pixels);
314 …, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels) {
315 …rder:%d, format:0x%X, type:0x%X, pixels:%p)", target, level, internalformat, width, height, border…
316 …lTexImage2D_underlying(target, level, internalformat, width, height, border, format, type, pixels);
329 … GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels) {
[all …]
/hardware/interfaces/biometrics/fingerprint/2.3/
DIBiometricsFingerprint.hal50 * display pixels.
52 * display pixels.
54 * touch area, in display pixels.
56 * touch area, in display pixels.
/hardware/interfaces/automotive/evs/aidl/impl/default/src/
DEvsMockCamera.cpp281 uint32_t* pixels = nullptr; in fillMockFrame() local
284 ::android::Rect(pDesc->width, pDesc->height), (void**)&pixels); in fillMockFrame()
287 if (!pixels) { in fillMockFrame()
296 pixels[col] = kColors[index]; in fillMockFrame()
300 pixels = pixels + pDesc->stride; in fillMockFrame()
/hardware/google/gfxstream/host/
DRendererImpl.cpp411 uint8_t* pixels, size_t* cPixels, int displayId = 0, in getScreenshot() argument
416 return fb->getScreenshot(nChannels, width, height, pixels, cPixels,
574 void* pixels) { in __anonf315e04f0a02() argument
576 pixels); in __anonf315e04f0a02()
584 void* pixels) { in __anonf315e04f0c02() argument
586 pixels); in __anonf315e04f0c02()
589 [](uint32_t handle, int x, int y, int width, int height, void* pixels,
591 FrameBuffer::getFB()->readColorBufferYUV(handle, x, y, width, height, pixels, in __anonf315e04f0d02()
654 uint32_t format, uint32_t type, void* pixels, void* pMetadata) { in __anonf315e04f1f02() argument
656 handle, x, y, width, height, (FrameworkFormat)fwkFormat, format, type, pixels, in __anonf315e04f1f02()

12345678