Home
last modified time | relevance | path

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

/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, in hwcTestSetPixel() argument
621 if (gBuf->getPixelFormat() == HAL_PIXEL_FORMAT_YV12) { in hwcTestSetPixel()
623 uint32_t yPlaneStride = gBuf->getStride(); in hwcTestSetPixel()
624 uint32_t uPlaneStride = ((gBuf->getStride() / 2) + 0xf) & ~0xf; in hwcTestSetPixel()
627 vPlaneOffset = yPlaneOffset + yPlaneStride * gBuf->getHeight(); in hwcTestSetPixel()
629 + vPlaneStride * (gBuf->getHeight() / 2); in hwcTestSetPixel()
642 if (attrib->format == gBuf->getPixelFormat()) { break; } in hwcTestSetPixel()
646 gBuf->getPixelFormat()); in hwcTestSetPixel()
650 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) in hwcTestSetPixel()
655 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.h125 void hwcTestSetPixel(android::GraphicBuffer *gBuf, unsigned char *buf,
127 void hwcTestFillColor(android::GraphicBuffer *gBuf, ColorFract color,
129 void hwcTestFillColorHBlend(android::GraphicBuffer *gBuf,