• Home
  • Raw
  • Download

Lines Matching refs:gBuf

604 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
659 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, alpha); in hwcTestFillColor()
661 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); in hwcTestFillColor()
667 for (unsigned int x = 0; x < gBuf->getStride(); x++) { in hwcTestFillColor()
668 for (unsigned int y = 0; y < gBuf->getHeight(); y++) { in hwcTestFillColor()
669 hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth()) in hwcTestFillColor()
674 err = gBuf->unlock(); in hwcTestFillColor()
689 void hwcTestFillColorHBlend(GraphicBuffer *gBuf, uint32_t colorFormat, in hwcTestFillColorHBlend() argument
694 const uint32_t width = gBuf->getWidth(); in hwcTestFillColorHBlend()
695 const uint32_t height = gBuf->getHeight(); in hwcTestFillColorHBlend()
696 const uint32_t stride = gBuf->getStride(); in hwcTestFillColorHBlend()
698 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); in hwcTestFillColorHBlend()
717 if (colorFormat != (uint32_t) gBuf->getPixelFormat()) { in hwcTestFillColorHBlend()
718 hwcTestColorConvert(colorFormat, gBuf->getPixelFormat(), color); in hwcTestFillColorHBlend()
720 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, 1.0); in hwcTestFillColorHBlend()
727 hwcTestSetPixel(gBuf, buf, x, y, pixel); in hwcTestFillColorHBlend()
731 err = gBuf->unlock(); in hwcTestFillColorHBlend()