Home
last modified time | relevance | path

Searched refs:gBuf (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, in hwcTestSetPixel() argument
619 if (gBuf->getPixelFormat() == HAL_PIXEL_FORMAT_YV12) { in hwcTestSetPixel()
621 uint32_t yPlaneStride = gBuf->getStride(); in hwcTestSetPixel()
622 uint32_t uPlaneStride = ((gBuf->getStride() / 2) + 0xf) & ~0xf; in hwcTestSetPixel()
625 vPlaneOffset = yPlaneOffset + yPlaneStride * gBuf->getHeight(); in hwcTestSetPixel()
627 + vPlaneStride * (gBuf->getHeight() / 2); in hwcTestSetPixel()
640 if (attrib->format == gBuf->getPixelFormat()) { break; } in hwcTestSetPixel()
644 gBuf->getPixelFormat()); in hwcTestSetPixel()
648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) in hwcTestSetPixel()
653 void hwcTestFillColor(GraphicBuffer *gBuf, ColorFract color, float alpha) in hwcTestFillColor() argument
[all …]
DhwcStress.cpp430 sp<GraphicBuffer> gBuf = selectedFrames[n1][idx]; in main() local
432 layer->handle = gBuf->handle; in main()
441 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); in main()
442 layer->sourceCrop.top = testRandMod(gBuf->getHeight()); in main()
444 + testRandMod(gBuf->getWidth() - layer->sourceCrop.left) + 1; in main()
446 + testRandMod(gBuf->getHeight() - layer->sourceCrop.top) + 1; in main()
501 sp<GraphicBuffer> gBuf = selectedFrames[n1][idx]; in main() local
503 layer->handle = (native_handle_t *) gBuf->handle; in main()
DhwcTestLib.h122 void hwcTestSetPixel(android::GraphicBuffer *gBuf, unsigned char *buf,
124 void hwcTestFillColor(android::GraphicBuffer *gBuf, ColorFract color,
126 void hwcTestFillColorHBlend(android::GraphicBuffer *gBuf,
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/
Dlaunchtest.rscript21 rs_allocation gBuf;
25 rsSetElementAt_uchar(gBuf, 1, i, x);
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.cpp1240 sp<GraphicBuffer> gBuf = layer.source.buffer.buffer->getBuffer(); in drawLayersInternal() local
1241 validateInputBufferUsage(gBuf); in drawLayersInternal()
1242 bindExternalTextureBuffer(layer.source.buffer.textureName, gBuf, in drawLayersInternal()
1252 texture.setDimensions(gBuf->getWidth(), gBuf->getHeight()); in drawLayersInternal()
1263 if (gBuf->getUsage() & GRALLOC_USAGE_PROTECTED) { in drawLayersInternal()
1264 unmapExternalTextureBuffer(gBuf); in drawLayersInternal()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.cpp1168 sp<GraphicBuffer> gBuf = layer->source.buffer.buffer; in drawLayers() local
1169 bindExternalTextureBuffer(layer->source.buffer.textureName, gBuf, in drawLayers()
1179 texture.setDimensions(gBuf->getWidth(), gBuf->getHeight()); in drawLayers()