Lines Matching refs:pixel
576 uint32_t pixel; in hwcTestColor2Pixel() local
577 pixel = htonl((uint32_t) round((((1 << attrib->c1Size) - 1) * color.c1())) in hwcTestColor2Pixel()
578 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
580 pixel |= htonl((uint32_t) round((((1 << attrib->c2Size) - 1) * color.c2())) in hwcTestColor2Pixel()
581 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
583 pixel |= htonl((uint32_t) round((((1 << attrib->c3Size) - 1) * color.c3())) in hwcTestColor2Pixel()
584 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
587 pixel |= htonl((uint32_t) round((((1 << attrib->aSize) - 1) * alpha)) in hwcTestColor2Pixel()
588 << ((sizeof(pixel) * BITSPERBYTE) in hwcTestColor2Pixel()
592 pixel = ntohl(pixel); in hwcTestColor2Pixel()
593 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; in hwcTestColor2Pixel()
596 return pixel; in hwcTestColor2Pixel()
603 uint32_t x, uint32_t y, uint32_t pixel) in hwcTestSetPixel() argument
626 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; in hwcTestSetPixel()
628 = (pixel & 0xff00) >> 8; in hwcTestSetPixel()
630 = (pixel & 0xff0000) >> 16; in hwcTestSetPixel()
647 + (attrib->bytes * x), &pixel, attrib->bytes); in hwcTestSetPixel()
655 uint32_t pixel; in hwcTestFillColor() local
657 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, alpha); in hwcTestFillColor()
667 uint32_t val = pixel; in hwcTestFillColor()
669 ? pixel : testRand()); in hwcTestFillColor()
704 uint32_t pixel; in hwcTestFillColorHBlend() local
719 pixel = hwcTestColor2Pixel(gBuf->getPixelFormat(), color, 1.0); in hwcTestFillColorHBlend()
722 pixel = testRand(); in hwcTestFillColorHBlend()
726 hwcTestSetPixel(gBuf, buf, x, y, pixel); in hwcTestFillColorHBlend()